10000 Backport PR #29920: Allow `None` in set_prop_cycle (in type hints) · matplotlib/matplotlib@54d6615 · GitHub
[go: up one dir, main page]

Skip to content

Commit 54d6615

Browse files
timhoffmmeeseeksmachine
authored andcommitted
Backport PR #29920: Allow None in set_prop_cycle (in type hints)
1 parent f72525a commit 54d6615

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,7 @@ def set_prop_cycle(self, *args, **kwargs):
16121612
16131613
Parameters
16141614
----------
1615-
cycler : `~cycler.Cycler`
1615+
cycler : `~cycler.Cycler` or ``None``
16161616
Set the given Cycler. *None* resets to the cycle defined by the
16171617
current style.
16181618

lib/matplotlib/axes/_base.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class _AxesBase(martist.Artist):
181181
def get_facecolor(self) -> ColorType: ...
182182
def set_facecolor(self, color: ColorType | None) -> None: ...
183183
@overload
184-
def set_prop_cycle(self, cycler: Cycler) -> None: ...
184+
def set_prop_cycle(self, cycler: Cycler | None) -> None: ...
185185
@overload
186186
def set_prop_cycle(self, label: str, values: Iterable[Any]) -> None: ...
187187
@overload

0 commit comments

Comments
 (0)
0