From fca35015c6c3c7772ab9f5fee23483d22a005aac Mon Sep 17 00:00:00 2001 From: Bas ten Berge Date: Wed, 25 Oct 2023 20:51:43 +0200 Subject: [PATCH] Fix typo 'raise_if_result_exits' in render() argument name (#211) * Typo for issue #210 --------- Co-authored-by: bastb --- docs/api.rst | 6 +++--- graphviz/backend/rendering.py | 2 +- graphviz/rendering.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index a532086ea9..bae7ad8317 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -504,7 +504,7 @@ https://github.com/xflr6/graphviz/blob/master/docs/api.rst#graph-1 | outfile: Path for the rendered output file. | engine: Layout engine for rendering | (``'dot'``, ``'neato'``, ...). - | raise_if_result_exits: Raise :exc:`graphviz.FileExistsError` + | raise_if_result_exists: Raise :exc:`graphviz.FileExistsError` | if the result file exists. | overwrite_source: Allow ``dot`` to write to the file it reads from. | Incompatible with ``raise_if_result_exists``. @@ -1016,7 +1016,7 @@ https://github.com/xflr6/graphviz/blob/master/docs/api.rst#digraph-1 | outfile: Path for the rendered output file. | engine: Layout engine for rendering | (``'dot'``, ``'neato'``, ...). - | raise_if_result_exits: Raise :exc:`graphviz.FileExistsError` + | raise_if_result_exists: Raise :exc:`graphviz.FileExistsError` | if the result file exists. | overwrite_source: Allow ``dot`` to write to the file it reads from. | Incompatible with ``raise_if_result_exists``. @@ -1425,7 +1425,7 @@ https://github.com/xflr6/graphviz/blob/master/docs/api.rst#source-1 | outfile: Path for the rendered output file. | engine: Layout engine for rendering | (``'dot'``, ``'neato'``, ...). - | raise_if_result_exits: Raise :exc:`graphviz.FileExistsError` + | raise_if_result_exists: Raise :exc:`graphviz.FileExistsError` | if the result file exists. | overwrite_source: Allow ``dot`` to write to the file it reads from. | Incompatible with ``raise_if_result_exists``. diff --git a/graphviz/backend/rendering.py b/graphviz/backend/rendering.py index 9335062497..b47eca2722 100644 --- a/graphviz/backend/rendering.py +++ b/graphviz/backend/rendering.py @@ -222,7 +222,7 @@ def render(engine: str, neato_no_op: Neato layout engine no-op flag. quiet: Suppress ``stderr`` output from the layout subprocess. outfile: Path for the rendered output file. - raise_if_result_exits: Raise :exc:`graphviz.FileExistsError` + raise_if_result_exists: Raise :exc:`graphviz.FileExistsError` if the result file exists. overwrite_filepath: Allow ``dot`` to write to the file it reads from. Incompatible with ``raise_if_result_exists``. diff --git a/graphviz/rendering.py b/graphviz/rendering.py index 75331e484c..191ce330bb 100644 --- a/graphviz/rendering.py +++ b/graphviz/rendering.py @@ -59,7 +59,7 @@ def render(self, outfile: Path for the rendered output file. engine: Layout engine for rendering (``'dot'``, ``'neato'``, ...). - raise_if_result_exits: Raise :exc:`graphviz.FileExistsError` + raise_if_result_exists: Raise :exc:`graphviz.FileExistsError` if the result file exists. overwrite_source: Allow ``dot`` to write to the file it reads from. Incompatible with ``raise_if_result_exists``.