Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit baad0f4

Browse filesBrowse files
authored
Allow None in set_prop_cycle
`set_prop_cycle` allows to pass `None` for resetting the cycle, but with the current type hints, type checkers give an error for this case.
1 parent b7e7663 commit baad0f4
Copy full SHA for baad0f4

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/axes/_base.pyi

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_base.pyi
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class _AxesBase(martist.Artist):
182182
def get_facecolor(self) -> ColorType: ...
183183
def set_facecolor(self, color: ColorType | None) -> None: ...
184184
@overload
185-
def set_prop_cycle(self, cycler: Cycler) -> None: ...
185+
def set_prop_cycle(self, cycler: Cycler | None) -> None: ...
186186
@overload
187187
def set_prop_cycle(self, label: str, values: Iterable[Any]) -> None: ...
188188
@overload

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.