We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58e99f1 commit 055f2d9Copy full SHA for 055f2d9
pandas-stubs/_libs/missing.pyi
@@ -1,4 +1,5 @@
1
from collections.abc import Callable
2
+import sys
3
from typing import (
4
Any,
5
Literal,
@@ -28,8 +29,12 @@ class NAType:
28
29
def __radd__(self, other: Series, /) -> Series: ...
30
@overload
31
def __radd__(self, other: Index, /) -> Index: ...
- @overload
32
- def __radd__(self, other: Scalar, /) -> NAType: ...
+ if sys.version_info >= (3, 11):
33
+ @overload
34
+ def __radd__(self, other: Scalar, /) -> NAType: ...
35
+ else:
36
+ def __radd__(self, other: Scalar, /) -> NAType: ... # type: ignore[misc]
37
+
38
39
def __sub__(self, other: Series, /) -> Series: ...
40
0 commit comments