Skip to content

Commit f8b4c57

Browse files
AlexTereshenkovjreback
authored andcommitted
Remove redundant check arr_or_dtype is None (pandas-dev#26655)
1 parent 30d9cf3 commit f8b4c57

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pandas/core/dtypes/common.py

-2
Original file line numberDiff line numberDiff line change
@@ -1931,8 +1931,6 @@ def _is_dtype_type(arr_or_dtype, condition):
19311931
if issubclass(arr_or_dtype, ExtensionDtype):
19321932
arr_or_dtype = arr_or_dtype.type
19331933
return condition(np.dtype(arr_or_dtype).type)
1934-
elif arr_or_dtype is None:
1935-
return condition(type(None))
19361934

19371935
# if we have an array-like
19381936
if hasattr(arr_or_dtype, 'dtype'):

0 commit comments

Comments
 (0)