File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 8
8
__all__ = [
9
9
"Block" , # pyright:ignore[reportUnsupportedDunderAll)]
10
10
"BlockManager" ,
11
+ "DatetimeTZBlock" , # pyright:ignore[reportUnsupportedDunderAll)]
11
12
"ExtensionBlock" , # pyright:ignore[reportUnsupportedDunderAll)]
12
13
"SingleBlockManager" ,
13
14
"concatenate_managers" ,
@@ -36,6 +37,7 @@ def __getattr__(name: str):
36
37
if name in [
37
38
"Block" ,
38
39
"ExtensionBlock" ,
40
+ "DatetimeTZBlock" ,
39
41
]:
40
42
warnings .warn (
41
43
f"{ name } is deprecated and will be removed in a future version. "
@@ -45,6 +47,10 @@ def __getattr__(name: str):
45
47
# on hard-coding stacklevel
46
48
stacklevel = 2 ,
47
49
)
50
+ if name == "DatetimeTZBlock" :
51
+ from pandas .core .internals .blocks import DatetimeLikeBlock
52
+
53
+ return DatetimeLikeBlock
48
54
if name == "ExtensionBlock" :
49
55
from pandas .core .internals .blocks import ExtensionBlock
50
56
You can’t perform that action at this time.
0 commit comments