Skip to content

Commit 895cff2

Browse files
committed
Revert "MAINT: Add warning filter for np.long (pandas-dev#55397)"
This reverts commit eb6317a.
1 parent fe07fd5 commit 895cff2

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

pandas/compat/numpy/__init__.py

+2-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
""" support numpy compatibility across versions """
2-
import warnings
3-
42
import numpy as np
53

64
from pandas.util.version import Version
@@ -28,14 +26,8 @@
2826

2927
if _nlv >= Version("2.0.0.dev0"):
3028
try:
31-
with warnings.catch_warnings():
32-
warnings.filterwarnings(
33-
"ignore",
34-
r".*In the future `np\.long` will be defined as.*",
35-
FutureWarning,
36-
)
37-
np_long = np.long # type: ignore[attr-defined]
38-
np_ulong = np.ulong # type: ignore[attr-defined]
29+
np_long = np.long # type: ignore[attr-defined]
30+
np_ulong = np.ulong # type: ignore[attr-defined]
3931
except AttributeError:
4032
np_long = np.int_
4133
np_ulong = np.uint

0 commit comments

Comments
 (0)