Skip to content

Commit f249f65

Browse files
committed
mypy, ty
1 parent f64beef commit f249f65

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

pandas-stubs/_typing.pyi

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -967,9 +967,7 @@ ListLikeExceptSeriesAndStr: TypeAlias = (
967967
MutableSequence[Any] | np_1darray | tuple[Any, ...] | Index
968968
)
969969
ListLikeU: TypeAlias = Sequence[Any] | np_1darray | Series | Index
970-
ListLikeHashable: TypeAlias = (
971-
MutableSequence[HashableT] | np_1darray | tuple[HashableT, ...] | range
972-
)
970+
ListLikeHashable: TypeAlias = SequenceNotStr[HashableT] | np_1darray | range
973971

974972
class SupportsDType(Protocol[GenericT_co]):
975973
@property

pandas-stubs/core/frame.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
11851185
@overload
11861186
def sort_values(
11871187
self,
1188-
by: _str | Sequence[_str],
1188+
by: _str | SequenceNotStr[_str],
11891189
*,
11901190
axis: Axis = 0,
11911191
ascending: _bool | Sequence[_bool] = ...,
@@ -1198,7 +1198,7 @@ class DataFrame(NDFrame, OpsMixin, _GetItemHack):
11981198
@overload
11991199
def sort_values(
12001200
self,
1201-
by: _str | Sequence[_str],
1201+
by: _str | SequenceNotStr[_str],
12021202
*,
12031203
axis: Axis = 0,
12041204
ascending: _bool | Sequence[_bool] = ...,

0 commit comments

Comments
 (0)