File tree 2 files changed +17
-6
lines changed
2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change
1
+ from typing import List
2
+
1
3
import numpy as np
2
4
import pytest
3
5
@@ -322,9 +324,13 @@ def test_is_datetimelike():
322
324
assert com .is_datetimelike (s )
323
325
324
326
327
+ integer_dtypes = [] # type: List
328
+
329
+
325
330
@pytest .mark .parametrize (
326
331
"dtype" ,
327
- [pd .Series ([1 , 2 ])]
332
+ integer_dtypes
333
+ + [pd .Series ([1 , 2 ])]
328
334
+ ALL_INT_DTYPES
329
335
+ to_numpy_dtypes (ALL_INT_DTYPES )
330
336
+ ALL_EA_INT_DTYPES
@@ -350,9 +356,13 @@ def test_is_not_integer_dtype(dtype):
350
356
assert not com .is_integer_dtype (dtype )
351
357
352
358
359
+ signed_integer_dtypes = [] # type: List
360
+
361
+
353
362
@pytest .mark .parametrize (
354
363
"dtype" ,
355
- [pd .Series ([1 , 2 ])]
364
+ signed_integer_dtypes
365
+ + [pd .Series ([1 , 2 ])]
356
366
+ SIGNED_INT_DTYPES
357
367
+ to_numpy_dtypes (SIGNED_INT_DTYPES )
358
368
+ SIGNED_EA_INT_DTYPES
@@ -382,9 +392,13 @@ def test_is_not_signed_integer_dtype(dtype):
382
392
assert not com .is_signed_integer_dtype (dtype )
383
393
384
394
395
+ unsigned_integer_dtypes = [] # type: List
396
+
397
+
385
398
@pytest .mark .parametrize (
386
399
"dtype" ,
387
- [pd .Series ([1 , 2 ], dtype = np .uint32 )]
400
+ unsigned_integer_dtypes
401
+ + [pd .Series ([1 , 2 ], dtype = np .uint32 )]
388
402
+ UNSIGNED_INT_DTYPES
389
403
+ to_numpy_dtypes (UNSIGNED_INT_DTYPES )
390
404
+ UNSIGNED_EA_INT_DTYPES
Original file line number Diff line number Diff line change @@ -136,9 +136,6 @@ ignore_errors=True
136
136
[mypy-pandas.tests.arithmetic.test_datetime64]
137
137
ignore_errors =True
138
138
139
- [mypy-pandas.tests.dtypes.test_common]
140
- ignore_errors =True
141
-
142
139
[mypy-pandas.tests.extension.decimal.test_decimal]
143
140
ignore_errors =True
144
141
You can’t perform that action at this time.
0 commit comments