Skip to content

Commit eba4608

Browse files
committed
chore: naming
1 parent fb97790 commit eba4608

File tree

10 files changed

+126
-126
lines changed

10 files changed

+126
-126
lines changed

tests/indexes/arithmetic/bool/test_mul.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ def test_mul_py_scalar(left: "pd.Index[bool]") -> None:
3737
check(assert_type(left * f, "pd.Index[float]"), pd.Index, np.floating)
3838
check(assert_type(left * c, "pd.Index[complex]"), pd.Index, np.complexfloating)
3939
if TYPE_CHECKING_INVALID_USAGE:
40-
_05 = left * s # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
40+
_04 = left * s # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
4141
check(assert_type(left * d, pd.TimedeltaIndex), pd.TimedeltaIndex, pd.Timedelta)
4242

4343
check(assert_type(b * left, "pd.Index[bool]"), pd.Index, np.bool_)
4444
check(assert_type(i * left, "pd.Index[int]"), pd.Index, np.integer)
4545
check(assert_type(f * left, "pd.Index[float]"), pd.Index, np.floating)
4646
check(assert_type(c * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
4747
if TYPE_CHECKING_INVALID_USAGE:
48-
_15 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
48+
_14 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
4949
check(assert_type(d * left, pd.TimedeltaIndex), pd.TimedeltaIndex, pd.Timedelta)
5050

5151

@@ -60,15 +60,15 @@ def test_mul_py_sequence(left: "pd.Index[bool]") -> None:
6060
check(assert_type(left * f, "pd.Index[float]"), pd.Index, np.floating)
6161
check(assert_type(left * c, "pd.Index[complex]"), pd.Index, np.complexfloating)
6262
if TYPE_CHECKING_INVALID_USAGE:
63-
_05 = left * s # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
63+
_04 = left * s # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
6464
check(assert_type(left * d, "pd.Index[pd.Timedelta]"), pd.Index, timedelta)
6565

6666
check(assert_type(b * left, "pd.Index[bool]"), pd.Index, np.bool_)
6767
check(assert_type(i * left, "pd.Index[int]"), pd.Index, np.integer)
6868
check(assert_type(f * left, "pd.Index[float]"), pd.Index, np.floating)
6969
check(assert_type(c * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
7070
if TYPE_CHECKING_INVALID_USAGE:
71-
_15 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
71+
_14 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
7272
check(assert_type(d * left, "pd.Index[pd.Timedelta]"), pd.Index, timedelta)
7373

7474

@@ -129,7 +129,7 @@ def test_mul_pd_index(left: "pd.Index[bool]") -> None:
129129
check(assert_type(left * f, "pd.Index[float]"), pd.Index, np.floating)
130130
check(assert_type(left * c, "pd.Index[complex]"), pd.Index, np.complexfloating)
131131
if TYPE_CHECKING_INVALID_USAGE:
132-
_05 = left * s # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
132+
_04 = left * s # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
133133
if PD_LTE_23:
134134
# pandas-dev/pandas#62316: both timedelta * bool
135135
# and np.timedelta64 * bool works, so pandas probably also should work
@@ -140,7 +140,7 @@ def test_mul_pd_index(left: "pd.Index[bool]") -> None:
140140
check(assert_type(f * left, "pd.Index[float]"), pd.Index, np.floating)
141141
check(assert_type(c * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
142142
if TYPE_CHECKING_INVALID_USAGE:
143-
_15 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
143+
_14 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
144144
if PD_LTE_23:
145145
# pandas-dev/pandas#62316: both timedelta * bool
146146
# and np.timedelta64 * bool works, so pandas probably also should work

tests/indexes/arithmetic/complex/test_mul.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ def test_mul_py_scalar(left: "pd.Index[complex]") -> None:
3636
check(assert_type(left * f, "pd.Index[complex]"), pd.Index, np.complexfloating)
3737
check(assert_type(left * c, "pd.Index[complex]"), pd.Index, np.complexfloating)
3838
if TYPE_CHECKING_INVALID_USAGE:
39-
_05 = left * s # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
40-
_06 = left * d # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
39+
_04 = left * s # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
40+
_05 = left * d # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
4141

4242
check(assert_type(b * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
4343
check(assert_type(i * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
4444
check(assert_type(f * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
4545
check(assert_type(c * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
4646
if TYPE_CHECKING_INVALID_USAGE:
47-
_15 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
48-
_16 = d * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
47+
_14 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
48+
_15 = d * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
4949

5050

5151
def test_mul_py_sequence(left: "pd.Index[complex]") -> None:
@@ -59,16 +59,16 @@ def test_mul_py_sequence(left: "pd.Index[complex]") -> None:
5959
check(assert_type(left * f, "pd.Index[complex]"), pd.Index, np.complexfloating)
6060
check(assert_type(left * c, "pd.Index[complex]"), pd.Index, np.complexfloating)
6161
if TYPE_CHECKING_INVALID_USAGE:
62-
_05 = left * s # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
63-
_06 = left * d # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
62+
_04 = left * s # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
63+
_05 = left * d # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
6464

6565
check(assert_type(b * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
6666
check(assert_type(i * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
6767
check(assert_type(f * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
6868
check(assert_type(c * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
6969
if TYPE_CHECKING_INVALID_USAGE:
70-
_15 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
71-
_16 = d * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
70+
_14 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
71+
_15 = d * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
7272

7373

7474
def test_mul_numpy_array(left: "pd.Index[complex]") -> None:
@@ -120,13 +120,13 @@ def test_mul_pd_index(left: "pd.Index[complex]") -> None:
120120
check(assert_type(left * f, "pd.Index[complex]"), pd.Index, np.complexfloating)
121121
check(assert_type(left * c, "pd.Index[complex]"), pd.Index, np.complexfloating)
122122
if TYPE_CHECKING_INVALID_USAGE:
123-
_05 = left * s # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
124-
_06 = left * d # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
123+
_04 = left * s # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
124+
_05 = left * d # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
125125

126126
check(assert_type(b * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
127127
check(assert_type(i * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
128128
check(assert_type(f * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
129129
check(assert_type(c * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
130130
if TYPE_CHECKING_INVALID_USAGE:
131-
_15 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
132-
_16 = d * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
131+
_14 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
132+
_15 = d * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]

tests/indexes/arithmetic/float/test_mul.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ def test_mul_py_scalar(left: "pd.Index[float]") -> None:
3636
check(assert_type(left * f, "pd.Index[float]"), pd.Index, np.floating)
3737
check(assert_type(left * c, "pd.Index[complex]"), pd.Index, np.complexfloating)
3838
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]
4040
check(assert_type(left * d, "pd.TimedeltaIndex"), pd.TimedeltaIndex, timedelta)
4141

4242
check(assert_type(b * left, "pd.Index[float]"), pd.Index, np.floating)
4343
check(assert_type(i * left, "pd.Index[float]"), pd.Index, np.floating)
4444
check(assert_type(f * left, "pd.Index[float]"), pd.Index, np.floating)
4545
check(assert_type(c * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
4646
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]
4848
check(assert_type(d * left, "pd.TimedeltaIndex"), pd.TimedeltaIndex, timedelta)
4949

5050

@@ -59,15 +59,15 @@ def test_mul_py_sequence(left: "pd.Index[float]") -> None:
5959
check(assert_type(left * f, "pd.Index[float]"), pd.Index, np.floating)
6060
check(assert_type(left * c, "pd.Index[complex]"), pd.Index, np.complexfloating)
6161
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]
6363
check(assert_type(left * d, "pd.Index[pd.Timedelta]"), pd.Index, timedelta)
6464

6565
check(assert_type(b * left, "pd.Index[float]"), pd.Index, np.floating)
6666
check(assert_type(i * left, "pd.Index[float]"), pd.Index, np.floating)
6767
check(assert_type(f * left, "pd.Index[float]"), pd.Index, np.floating)
6868
check(assert_type(c * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
6969
if TYPE_CHECKING_INVALID_USAGE:
70-
_15 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
70+
_14 = s * left # type: ignore[operator] # pyright: ignore[reportOperatorIssue]
7171
check(assert_type(d * left, "pd.Index[pd.Timedelta]"), pd.Index, timedelta)
7272

7373

@@ -122,13 +122,13 @@ def test_mul_pd_index(left: "pd.Index[float]") -> None:
122122
check(assert_type(left * f, "pd.Index[float]"), pd.Index, np.floating)
123123
check(assert_type(left * c, "pd.Index[complex]"), pd.Index, np.complexfloating)
124124
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]
126126
check(assert_type(left * d, pd.TimedeltaIndex), pd.TimedeltaIndex, pd.Timedelta)
127127

128128
check(assert_type(b * left, "pd.Index[float]"), pd.Index, np.floating)
129129
check(assert_type(i * left, "pd.Index[float]"), pd.Index, np.floating)
130130
check(assert_type(f * left, "pd.Index[float]"), pd.Index, np.floating)
131131
check(assert_type(c * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
132132
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]
134134
check(assert_type(d * left, pd.TimedeltaIndex), pd.TimedeltaIndex, pd.Timedelta)

tests/indexes/arithmetic/int/test_mul.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ def test_mul_py_scalar(left: "pd.Index[int]") -> None:
3636
check(assert_type(left * f, "pd.Index[float]"), pd.Index, np.floating)
3737
check(assert_type(left * c, "pd.Index[complex]"), pd.Index, np.complexfloating)
3838
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]
4040
check(assert_type(left * d, pd.TimedeltaIndex), pd.Index, pd.Timedelta)
4141

4242
check(assert_type(b * left, "pd.Index[int]"), pd.Index, np.integer)
4343
check(assert_type(i * left, "pd.Index[int]"), pd.Index, np.integer)
4444
check(assert_type(f * left, "pd.Index[float]"), pd.Index, np.floating)
4545
check(assert_type(c * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
4646
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]
4848
check(assert_type(d * left, pd.TimedeltaIndex), pd.Index, pd.Timedelta)
4949

5050

@@ -59,7 +59,7 @@ def test_mul_py_sequence(left: "pd.Index[int]") -> None:
5959
check(assert_type(left * f, "pd.Index[float]"), pd.Index, np.floating)
6060
check(assert_type(left * c, "pd.Index[complex]"), pd.Index, np.complexfloating)
6161
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]
6363
# pandas-dev/pandas#62524: An index of Python native timedeltas can be
6464
# produced, instead of a TimedeltaIndex, hence the test
6565
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:
6969
check(assert_type(f * left, "pd.Index[float]"), pd.Index, np.floating)
7070
check(assert_type(c * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
7171
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]
7373
# pandas-dev/pandas#62524: An index of Python native timedeltas can be
7474
# produced, instead of a TimedeltaIndex, hence the test
7575
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:
122122
check(assert_type(left * f, "pd.Index[float]"), pd.Index, np.floating)
123123
check(assert_type(left * c, "pd.Index[complex]"), pd.Index, np.complexfloating)
124124
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]
126126
check(assert_type(left * d, pd.TimedeltaIndex), pd.Index, pd.Timedelta)
127127

128128
check(assert_type(b * left, "pd.Index[int]"), pd.Index, np.integer)
129129
check(assert_type(i * left, "pd.Index[int]"), pd.Index, np.integer)
130130
check(assert_type(f * left, "pd.Index[float]"), pd.Index, np.floating)
131131
check(assert_type(c * left, "pd.Index[complex]"), pd.Index, np.complexfloating)
132132
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]
134134
check(assert_type(d * left, pd.TimedeltaIndex), pd.Index, pd.Timedelta)

0 commit comments

Comments
 (0)