Skip to content

Commit baad0f4

Browse 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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_base.pyi

Lines 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)