Skip to content

Commit 53687c5

Browse files
author
y-p
committed
Revert "BUG: config.is_one_of_factory is broken"
This reverts commit 8b782c2.
1 parent a31486a commit 53687c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ def inner(x):
709709
def is_one_of_factory(legal_values):
710710
def inner(x):
711711
from pandas.core.common import pprint_thing as pp
712-
if not type(x) in legal_values:
712+
if not x in legal_values:
713713
pp_values = map(pp, legal_values)
714714
raise ValueError("Value must be one of %s" % pp("|".join(pp_values)))
715715

0 commit comments

Comments
 (0)