File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 6
6
from __future__ import annotations
7
7
8
8
import warnings
9
- from platform import machine , processor , uname
9
+ from platform import machine , processor
10
10
11
11
import numpy as np
12
12
@@ -275,12 +275,10 @@ def type_info(np_type):
275
275
width = width ,
276
276
)
277
277
# Mitigate warning from WSL1 when checking `np.longdouble` (#1309)
278
- # src for '-Microsoft': https://github.com/microsoft/WSL/issues/4555#issuecomment-536862561
279
278
with warnings .catch_warnings ():
280
- if uname ().release .endswith ('-Microsoft' ):
281
- warnings .filterwarnings (
282
- action = 'ignore' , category = UserWarning , message = 'Signature.*numpy.longdouble'
283
- )
279
+ warnings .filterwarnings (
280
+ action = 'ignore' , category = UserWarning , message = 'Signature.*numpy.longdouble'
281
+ )
284
282
info = np .finfo (dt )
285
283
286
284
# Trust the standard IEEE types
You can’t perform that action at this time.
0 commit comments