We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56a9e75 commit 6092dc7Copy full SHA for 6092dc7
pandas/_typing.py
@@ -27,6 +27,8 @@
27
# and use a string literal forward reference to it in subsequent types
28
# https://mypy.readthedocs.io/en/latest/common_issues.html#import-cycles
29
if TYPE_CHECKING:
30
+ from typing import final
31
+
32
from pandas._libs import Period, Timedelta, Timestamp
33
34
from pandas.core.dtypes.dtypes import ExtensionDtype
@@ -42,6 +44,10 @@
42
44
from pandas.core.window.rolling import BaseWindow
43
45
46
from pandas.io.formats.format import EngFormatter
47
+else:
48
+ # typing.final does not exist until py38
49
+ final = lambda x: x
50
51
52
# array-like
53
0 commit comments