Skip to content

Commit

Permalink
WIP refix pydata#198
Browse files Browse the repository at this point in the history
  • Loading branch information
EpigeneMax committed Jan 3, 2024
1 parent f43e282 commit 30e7e49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patsy/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
import warnings
with warnings.catch_warnings(record=True) as w:
_pandas_is_categorical_dtype(int)
if len(w) > 0 and issubclass(w[-1].category, FutureWarning):
if len(w) > 0 and issubclass(w[-1].category, (DeprecationWarning, FutureWarning)):
_pandas_is_categorical_dtype = None
else:
_pandas_is_categorical_dtype = lambda x: isinstance(x, pandas.CategoricalDType)
Expand Down

0 comments on commit 30e7e49

Please sign in to comment.