Skip to content

Commit a85e387

Browse files
yuanx749mroeschke
andauthored
Update pandas/core/dtypes/cast.py
Co-authored-by: Matthew Roeschke <[email protected]>
1 parent fe37a44 commit a85e387

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pandas/core/dtypes/cast.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1931,7 +1931,6 @@ def np_can_hold_element(dtype: np.dtype, element: Any) -> Any:
19311931
if lib.is_bool_array(element):
19321932
return element.astype("bool")
19331933
raise LossySetitemError
1934-
19351934
if lib.is_bool(element):
19361935
return element
19371936
raise LossySetitemError

0 commit comments

Comments
 (0)