Skip to content

Commit

Permalink
Backport PR matplotlib#26937: Add ArrayLike to scatter c arg type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic authored and meeseeksmachine committed Sep 27, 2023
1 parent 7764c49 commit ea46347
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/matplotlib/axes/_axes.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ class Axes(_AxesBase):
x: float | ArrayLike,
y: float | ArrayLike,
s: float | ArrayLike | None = ...,
c: Sequence[ColorType] | ColorType | None = ...,
c: ArrayLike | Sequence[ColorType] | ColorType | None = ...,
marker: MarkerType | None = ...,
cmap: str | Colormap | None = ...,
norm: str | Normalize | None = ...,
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/pyplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3670,7 +3670,7 @@ def scatter(
x: float | ArrayLike,
y: float | ArrayLike,
s: float | ArrayLike | None = None,
c: Sequence[ColorType] | ColorType | None = None,
c: ArrayLike | Sequence[ColorType] | ColorType | None = None,
marker: MarkerType | None = None,
cmap: str | Colormap | None = None,
norm: str | Normalize | None = None,
Expand Down

0 comments on commit ea46347

Please sign in to comment.