Skip to content

Commit f235aa3

Browse files
update typing
1 parent 4b6ced0 commit f235aa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/arrays/masked.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,11 +517,11 @@ def to_numpy(
517517
hasna = self._hasna
518518
dtype, na_value = to_numpy_dtype_inference(self, dtype, na_value, hasna)
519519
if dtype is None:
520-
dtype = object
520+
dtype = np.dtype(object)
521521

522522
if hasna:
523523
if (
524-
dtype != object
524+
dtype != np.dtype(object)
525525
and not is_string_dtype(dtype)
526526
and na_value is libmissing.NA
527527
):

0 commit comments

Comments
 (0)