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 fac2274 commit e37bd23Copy full SHA for e37bd23
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,13 @@ 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
37
+ def __radd__(self, other: Scalar, /) -> NAType: ... # type: ignore[misc]
38
+
39
40
def __sub__(self, other: Series, /) -> Series: ...
41
0 commit comments