Skip to content

Commit c23f65b

Browse files
committed
Remove unnecessary test
1 parent 985598b commit c23f65b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pandas/core/algorithms.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,10 +1738,8 @@ def _build_map_infer_methods_params(arr: ArrayLike):
17381738
na_value = None
17391739
mask = isna(arr)
17401740
storage = None
1741-
if (
1742-
isinstance(arr.dtype, (BaseMaskedDtype, ExtensionDtype))
1743-
and hasattr(arr, "_hasna")
1744-
and arr._hasna
1741+
if isinstance(arr.dtype, (BaseMaskedDtype, ExtensionDtype)) and hasattr(
1742+
arr, "_hasna"
17451743
):
17461744
na_value = arr.dtype.na_value
17471745

0 commit comments

Comments
 (0)