Skip to content

Commit 6076d8d

Browse files
committed
allow image_type and method to accept str
1 parent a037424 commit 6076d8d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

rustworkx/visualization/graphviz.pyi

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@ def graphviz_draw(
6666
method: _Method | None = ...,
6767
) -> Image: ...
6868
@typing.overload
69+
def graphviz_draw(
70+
graph: PyDiGraph[_S, _T] | PyGraph[_S, _T],
71+
node_attr_fn: typing.Callable[[_S], dict[str, str]] | None = ...,
72+
edge_attr_fn: typing.Callable[[_T], dict[str, str]] | None = ...,
73+
graph_attr: dict[str, str] | None = ...,
74+
filename: None = ...,
75+
image_type: str | None = ...,
76+
method: str | None = ...,
77+
) -> Image: ...
78+
@typing.overload
6979
def graphviz_draw(
7080
graph: PyDiGraph[_S, _T] | PyGraph[_S, _T],
7181
node_attr_fn: typing.Callable[[_S], dict[str, str]] | None = ...,
@@ -75,3 +85,13 @@ def graphviz_draw(
7585
image_type: _ImageType | None = ...,
7686
method: _Method | None = ...,
7787
) -> None: ...
88+
@typing.overload
89+
def graphviz_draw(
90+
graph: PyDiGraph[_S, _T] | PyGraph[_S, _T],
91+
node_attr_fn: typing.Callable[[_S], dict[str, str]] | None = ...,
92+
edge_attr_fn: typing.Callable[[_T], dict[str, str]] | None = ...,
93+
graph_attr: dict[str, str] | None = ...,
94+
filename: str = ...,
95+
image_type: str | None = ...,
96+
method: str | None = ...,
97+
) -> None: ...

0 commit comments

Comments
 (0)