Skip to content

Commit 5a28b37

Browse files
committed
tuple + space
1 parent 7bd8065 commit 5a28b37

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

pandas-stubs/core/frame.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,8 +1505,8 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
15051505
) -> Self | Series: ...
15061506
def melt(
15071507
self,
1508-
id_vars: tuple | Sequence | np_ndarray | None = ...,
1509-
value_vars: tuple | Sequence | np_ndarray | None = ...,
1508+
id_vars: Sequence[Hashable] | np_ndarray | None = ...,
1509+
value_vars: Sequence[Hashable] | np_ndarray | None = ...,
15101510
var_name: Scalar | None = None,
15111511
value_name: Scalar = "value",
15121512
col_level: int | _str | None = ...,

pandas-stubs/core/series.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,15 +1179,15 @@ class Series(IndexOpsMixin[S1], ElementOpsMixin[S1], NDFrame):
11791179
self,
11801180
func: Callable[..., BaseOffset],
11811181
convertDType: _bool = ...,
1182-
args: tuple = ...,
1182+
args: tuple[Any, ...] = ...,
11831183
**kwargs: Any,
11841184
) -> Series[BaseOffset]: ...
11851185
@overload
11861186
def apply(
11871187
self,
11881188
func: Callable[..., Series],
11891189
convertDType: _bool = ...,
1190-
args: tuple = ...,
1190+
args: tuple[Any, ...] = ...,
11911191
**kwargs: Any,
11921192
) -> DataFrame: ...
11931193
@final

pandas-stubs/core/tools/datetimes.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ from datetime import (
44
datetime,
55
)
66
from typing import (
7+
Any,
78
Literal,
89
TypeAlias,
910
TypedDict,
@@ -31,7 +32,7 @@ from pandas._typing import (
3132
np_ndarray_str,
3233
)
3334

34-
ArrayConvertible: TypeAlias = list | tuple | AnyArrayLike
35+
ArrayConvertible: TypeAlias = list[Any] | tuple[Any, ...] | AnyArrayLike
3536
Scalar: TypeAlias = float | str
3637
DatetimeScalar: TypeAlias = Scalar | datetime | np.datetime64 | date
3738

0 commit comments

Comments
 (0)