Skip to content

Backport PR #29920 on branch v3.10.x (Allow None in set_prop_cycle (in type hints)) #29932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/matplotlib/axes/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ def set_prop_cycle(self, *args, **kwargs):

Parameters
----------
cycler : `~cycler.Cycler`
cycler : `~cycler.Cycler` or ``None``
Set the given Cycler. *None* resets to the cycle defined by the
current style.

Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/axes/_base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class _AxesBase(martist.Artist):
def get_facecolor(self) -> ColorType: ...
def set_facecolor(self, color: ColorType | None) -> None: ...
@overload
def set_prop_cycle(self, cycler: Cycler) -> None: ...
def set_prop_cycle(self, cycler: Cycler | None) -> None: ...
@overload
def set_prop_cycle(self, label: str, values: Iterable[Any]) -> None: ...
@overload
Expand Down
Loading