Skip to content

Commit 9ab9040

Browse files
committed
switch to is_bool instead of isinstance
1 parent f2f5c82 commit 9ab9040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def is_bool_indexer(key):
206206

207207

208208
def _enforce_bool_type(value):
209-
if not isinstance(value, bool):
209+
if not is_bool(value):
210210
raise ValueError('Expected type bool, received type %s.' %\
211211
type(value).__name__)
212212
return value

0 commit comments

Comments
 (0)