@@ -23,8 +23,7 @@ def test_arithmetic() -> None:
23
23
24
24
# __radd__
25
25
check (assert_type (s_int + na , pd .Series ), pd .Series )
26
- # requires orthogonal fix: https://github.com/pandas-dev/pandas-stubs/issues/1347
27
- # check(assert_type(idx_int + na, pd.Index), pd.Index)
26
+ check (assert_type (idx_int + na , pd .Index ), pd .Index )
28
27
check (assert_type (1 + na , NAType ), NAType )
29
28
30
29
# __sub__
@@ -34,8 +33,7 @@ def test_arithmetic() -> None:
34
33
35
34
# __rsub__
36
35
check (assert_type (s_int - na , pd .Series ), pd .Series )
37
- # requires orthogonal fix: https://github.com/pandas-dev/pandas-stubs/issues/1347
38
- # check(assert_type(idx_int - na, pd.Index), pd.Index)
36
+ check (assert_type (idx_int - na , pd .Index ), pd .Index )
39
37
check (assert_type (1 - na , NAType ), NAType )
40
38
41
39
# __mul__
@@ -45,8 +43,7 @@ def test_arithmetic() -> None:
45
43
46
44
# __rmul__
47
45
check (assert_type (s_int * na , pd .Series ), pd .Series )
48
- # requires orthogonal fix: https://github.com/pandas-dev/pandas-stubs/issues/1347
49
- # check(assert_type(idx_int * na, pd.Index), pd.Index)
46
+ check (assert_type (idx_int * na , pd .Index ), pd .Index )
50
47
check (assert_type (1 * na , NAType ), NAType )
51
48
52
49
# __matmul__
@@ -82,8 +79,7 @@ def test_arithmetic() -> None:
82
79
83
80
# __rmod__
84
81
check (assert_type (s_int % na , pd .Series ), pd .Series )
85
- # requires orthogonal fix: https://github.com/pandas-dev/pandas-stubs/issues/1347
86
- # check(assert_type(idx_int % na, pd.Index), pd.Index)
82
+ check (assert_type (idx_int % na , pd .Index ), pd .Index )
87
83
check (assert_type (1 % na , NAType ), NAType )
88
84
89
85
# __divmod__
@@ -104,8 +100,9 @@ def test_arithmetic() -> None:
104
100
# )
105
101
# https://github.com/microsoft/pyright/issues/10899.
106
102
check (
107
- assert_type (divmod (na , 1 ), tuple [NAType , NAType ]), tuple
108
- ) # pyright: ignore[reportArgumentType, reportCallIssue, reportAssertTypeFailure]
103
+ assert_type (divmod (na , 1 ), tuple [NAType , NAType ]),
104
+ tuple , # pyright: ignore[reportArgumentType, reportCallIssue, reportAssertTypeFailure]
105
+ )
109
106
110
107
# __rdivmod__
111
108
# bug upstream: https://github.com/pandas-dev/pandas/issues/62196
0 commit comments