Skip to content

Commit 0710ea4

Browse files
add back ignore for numpy_dtype
1 parent 7a8b93a commit 0710ea4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/arrays/_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ def to_numpy_dtype_inference(
3434
if arr.dtype.kind in "iu":
3535
result_dtype = np.dtype(np.float64)
3636
else:
37-
result_dtype = arr.dtype.numpy_dtype
37+
result_dtype = arr.dtype.numpy_dtype # type: ignore[union-attr]
3838
if na_value is lib.no_default:
3939
na_value = np.nan
4040
else:
41-
result_dtype = arr.dtype.numpy_dtype
41+
result_dtype = arr.dtype.numpy_dtype # type: ignore[union-attr]
4242
elif dtype is not None:
4343
result_dtype = np.dtype(dtype)
4444
else:

0 commit comments

Comments
 (0)