Skip to content

Commit 187dd6e

Browse files
committed
fix(comment): #28701 default value, kw-only, typing @timhoffm #28702 (comment)
1 parent 13cad5d commit 187dd6e

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lib/matplotlib/collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ def _f_direction(self):
12761276
raise ValueError(msg)
12771277

12781278
def set_data(
1279-
self, t, f1, f2=0,
1279+
self, t, f1, f2, *,
12801280
where=None, interpolate=False, step=None, **kwargs):
12811281
kwargs = self._normalise_kwargs(self.axes, **kwargs)
12821282
polys = self._make_verts(

lib/matplotlib/collections.pyi

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,20 +121,19 @@ class FillBetweenPolyCollection(PolyCollection):
121121
interpolate: bool = ...,
122122
step: Literal["pre", "post", "mid"] | None = ...,
123123
_axes: "Axes | None" = ...,
124-
kwargs,
124+
**kwargs,
125125
) -> None: ...
126126
@property
127127
def _f_direction(self) -> Literal["x", "y"]: ...
128128
def set_data(
129129
self,
130130
t: ArrayLike,
131131
f1: ArrayLike,
132-
f2: ArrayLike = ...,
132+
f2: ArrayLike,
133+
*,
133134
where: Sequence[bool] | None = ...,
134135
interpolate: bool = ...,
135136
step: Literal["pre", "post", "mid"] | None = ...,
136-
*,
137-
data=...,
138137
**kwargs
139138
) -> None: ...
140139

0 commit comments

Comments
 (0)