From 55640911b7dff13c850fe06eccb035a1afc9e274 Mon Sep 17 00:00:00 2001 From: Simon Hawkins Date: Tue, 6 Oct 2020 16:08:37 +0100 Subject: [PATCH] TYP: check_untyped_defs core.computation.expressions --- pandas/core/computation/expressions.py | 1 + setup.cfg | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) 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