Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 27f5b2f

Browse files
committed
Fix type hint for stub file.
1 parent 92a362a commit 27f5b2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/legend.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class Legend(Artist):
118118
def get_texts(self) -> list[Text]: ...
119119
def set_alignment(self, alignment: Literal["center", "left", "right"]) -> None: ...
120120
def get_alignment(self) -> Literal["center", "left", "right"]: ...
121-
def set_loc(self, loc: str | tuple[float, float] | int | None) -> None: ...
121+
def set_loc(self, loc: str | tuple[float, float] | int | None = ...) -> None: ...
122122
def set_title(
123123
self, title: str, prop: FontProperties | str | pathlib.Path | None = ...
124124
) -> None: ...

0 commit comments

Comments
 (0)