Skip to content

Commit af6828c

Browse files
authored
Merge pull request #26939 from meeseeksmachine/auto-backport-of-pr-26937-on-v3.8.x
Backport PR #26937 on branch v3.8.x (Add ArrayLike to scatter c arg type hint)
2 parents 153470e + ea46347 commit af6828c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/axes/_axes.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ class Axes(_AxesBase):
402402
x: float | ArrayLike,
403403
y: float | ArrayLike,
404404
s: float | ArrayLike | None = ...,
405-
c: Sequence[ColorType] | ColorType | None = ...,
405+
c: ArrayLike | Sequence[ColorType] | ColorType | None = ...,
406406
marker: MarkerType | None = ...,
407407
cmap: str | Colormap | None = ...,
408408
norm: str | Normalize | None = ...,

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3670,7 +3670,7 @@ def scatter(
36703670
x: float | ArrayLike,
36713671
y: float | ArrayLike,
36723672
s: float | ArrayLike | None = None,
3673-
c: Sequence[ColorType] | ColorType | None = None,
3673+
c: ArrayLike | Sequence[ColorType] | ColorType | None = None,
36743674
marker: MarkerType | None = None,
36753675
cmap: str | Colormap | None = None,
36763676
norm: str | Normalize | None = None,

0 commit comments

Comments
 (0)