@@ -36,15 +36,15 @@ def test_mul_py_scalar(left: "pd.Index[int]") -> None:
36
36
check (assert_type (left * f , "pd.Index[float]" ), pd .Index , np .floating )
37
37
check (assert_type (left * c , "pd.Index[complex]" ), pd .Index , np .complexfloating )
38
38
if TYPE_CHECKING_INVALID_USAGE :
39
- _05 = left * s # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
39
+ _04 = left * s # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
40
40
check (assert_type (left * d , pd .TimedeltaIndex ), pd .Index , pd .Timedelta )
41
41
42
42
check (assert_type (b * left , "pd.Index[int]" ), pd .Index , np .integer )
43
43
check (assert_type (i * left , "pd.Index[int]" ), pd .Index , np .integer )
44
44
check (assert_type (f * left , "pd.Index[float]" ), pd .Index , np .floating )
45
45
check (assert_type (c * left , "pd.Index[complex]" ), pd .Index , np .complexfloating )
46
46
if TYPE_CHECKING_INVALID_USAGE :
47
- _15 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
47
+ _14 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
48
48
check (assert_type (d * left , pd .TimedeltaIndex ), pd .Index , pd .Timedelta )
49
49
50
50
@@ -59,7 +59,7 @@ def test_mul_py_sequence(left: "pd.Index[int]") -> None:
59
59
check (assert_type (left * f , "pd.Index[float]" ), pd .Index , np .floating )
60
60
check (assert_type (left * c , "pd.Index[complex]" ), pd .Index , np .complexfloating )
61
61
if TYPE_CHECKING_INVALID_USAGE :
62
- _05 = left * s # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
62
+ _04 = left * s # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
63
63
# pandas-dev/pandas#62524: An index of Python native timedeltas can be
64
64
# produced, instead of a TimedeltaIndex, hence the test
65
65
check (assert_type (left * d , "pd.Index[pd.Timedelta]" ), pd .Index , timedelta )
@@ -69,7 +69,7 @@ def test_mul_py_sequence(left: "pd.Index[int]") -> None:
69
69
check (assert_type (f * left , "pd.Index[float]" ), pd .Index , np .floating )
70
70
check (assert_type (c * left , "pd.Index[complex]" ), pd .Index , np .complexfloating )
71
71
if TYPE_CHECKING_INVALID_USAGE :
72
- _15 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
72
+ _14 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
73
73
# pandas-dev/pandas#62524: An index of Python native timedeltas can be
74
74
# produced, instead of a TimedeltaIndex, hence the test
75
75
check (assert_type (d * left , "pd.Index[pd.Timedelta]" ), pd .Index , timedelta )
@@ -122,13 +122,13 @@ def test_mul_pd_index(left: "pd.Index[int]") -> None:
122
122
check (assert_type (left * f , "pd.Index[float]" ), pd .Index , np .floating )
123
123
check (assert_type (left * c , "pd.Index[complex]" ), pd .Index , np .complexfloating )
124
124
if TYPE_CHECKING_INVALID_USAGE :
125
- _05 = left * s # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
125
+ _04 = left * s # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
126
126
check (assert_type (left * d , pd .TimedeltaIndex ), pd .Index , pd .Timedelta )
127
127
128
128
check (assert_type (b * left , "pd.Index[int]" ), pd .Index , np .integer )
129
129
check (assert_type (i * left , "pd.Index[int]" ), pd .Index , np .integer )
130
130
check (assert_type (f * left , "pd.Index[float]" ), pd .Index , np .floating )
131
131
check (assert_type (c * left , "pd.Index[complex]" ), pd .Index , np .complexfloating )
132
132
if TYPE_CHECKING_INVALID_USAGE :
133
- _15 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
133
+ _14 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
134
134
check (assert_type (d * left , pd .TimedeltaIndex ), pd .Index , pd .Timedelta )
0 commit comments