Skip to content

Commit a916a31

Browse files
committed
feat(test): truediv
1 parent 09aeaf7 commit a916a31

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1020
-153
lines changed

pandas-stubs/core/indexes/base.pyi

Lines changed: 10 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -770,47 +770,23 @@ class Index(IndexOpsMixin[S1]):
770770
self: Index[int] | Index[float], other: timedelta
771771
) -> TimedeltaIndex: ...
772772
@overload
773-
def __mul__(self, other: S1 | Sequence[S1] | Index[S1]) -> Self: ...
774-
def __rmul__(self, other: S1 | Sequence[S1] | Index[S1]) -> Self: ...
773+
def __mul__(
774+
self, other: float | Sequence[float] | Index[int] | Index[float]
775+
) -> Self: ...
776+
def __rmul__(
777+
self, other: float | Sequence[float] | Index[int] | Index[float]
778+
) -> Self: ...
775779
def __floordiv__(
776-
self,
777-
other: (
778-
float
779-
| IndexOpsMixin[int]
780-
| IndexOpsMixin[float]
781-
| Sequence[int]
782-
| Sequence[float]
783-
),
780+
self, other: float | Sequence[float] | Index[int] | Index[float]
784781
) -> Self: ...
785782
def __rfloordiv__(
786-
self,
787-
other: (
788-
float
789-
| IndexOpsMixin[int]
790-
| IndexOpsMixin[float]
791-
| Sequence[int]
792-
| Sequence[float]
793-
),
783+
self, other: float | Sequence[float] | Index[int] | Index[float]
794784
) -> Self: ...
795785
def __truediv__(
796-
self,
797-
other: (
798-
float
799-
| IndexOpsMixin[int]
800-
| IndexOpsMixin[float]
801-
| Sequence[int]
802-
| Sequence[float]
803-
),
786+
self, other: float | Sequence[float] | Index[int] | Index[float]
804787
) -> Self: ...
805788
def __rtruediv__(
806-
self,
807-
other: (
808-
float
809-
| IndexOpsMixin[int]
810-
| IndexOpsMixin[float]
811-
| Sequence[int]
812-
| Sequence[float]
813-
),
789+
self, other: float | Sequence[float] | Index[int] | Index[float]
814790
) -> Self: ...
815791
def infer_objects(self, copy: bool = True) -> Self: ...
816792

0 commit comments

Comments
 (0)