We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a8b93a commit 0710ea4Copy full SHA for 0710ea4
pandas/core/arrays/_utils.py
@@ -34,11 +34,11 @@ def to_numpy_dtype_inference(
34
if arr.dtype.kind in "iu":
35
result_dtype = np.dtype(np.float64)
36
else:
37
- result_dtype = arr.dtype.numpy_dtype
+ result_dtype = arr.dtype.numpy_dtype # type: ignore[union-attr]
38
if na_value is lib.no_default:
39
na_value = np.nan
40
41
42
elif dtype is not None:
43
result_dtype = np.dtype(dtype)
44
0 commit comments