Skip to content

Commit 86943de

Browse files
committed
allow image_type and method to accept str
1 parent a037424 commit 86943de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rustworkx/visualization/graphviz.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def graphviz_draw(
6262
edge_attr_fn: typing.Callable[[_T], dict[str, str]] | None = ...,
6363
graph_attr: dict[str, str] | None = ...,
6464
filename: None = ...,
65-
image_type: _ImageType | None = ...,
66-
method: _Method | None = ...,
65+
image_type: _ImageType | str | None = ...,
66+
method: _Method | str | None = ...,
6767
) -> Image: ...
6868
@typing.overload
6969
def graphviz_draw(
@@ -72,6 +72,6 @@ def graphviz_draw(
7272
edge_attr_fn: typing.Callable[[_T], dict[str, str]] | None = ...,
7373
graph_attr: dict[str, str] | None = ...,
7474
filename: str = ...,
75-
image_type: _ImageType | None = ...,
76-
method: _Method | None = ...,
75+
image_type: _ImageType | str | None = ...,
76+
method: _Method | str | None = ...,
7777
) -> None: ...

0 commit comments

Comments
 (0)