diff --git a/pandas/core/computation/expressions.py b/pandas/core/computation/expressions.py index 5bfd2e93a9247..23cf3019df461 100644 --- a/pandas/core/computation/expressions.py +++ b/pandas/core/computation/expressions.py @@ -248,6 +248,7 @@ def where(cond, a, b, use_numexpr=True): use_numexpr : bool, default True Whether to try to use numexpr. """ + assert _where is not None return _where(cond, a, b) if use_numexpr else _where_standard(cond, a, b) diff --git a/setup.cfg b/setup.cfg index e125eea226b10..742bff79a3238 100644 --- a/setup.cfg +++ b/setup.cfg @@ -154,9 +154,6 @@ check_untyped_defs=False [mypy-pandas.core.computation.expr] check_untyped_defs=False -[mypy-pandas.core.computation.expressions] -check_untyped_defs=False - [mypy-pandas.core.computation.ops] check_untyped_defs=False