Skip to content

Commit

Permalink
CLN: Fix mypy error in pandas/tests/computation/test_eval.py (#29007)
Browse files Browse the repository at this point in the history
  • Loading branch information
immaxchen authored and WillAyd committed Oct 16, 2019
1 parent 5ad908e commit fdc322a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 7 additions & 2 deletions pandas/tests/computation/test_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from functools import reduce
from itertools import product
import operator
from typing import Dict, Type
import warnings

import numpy as np
Expand All @@ -19,7 +20,11 @@
from pandas.core.computation.check import _NUMEXPR_VERSION
from pandas.core.computation.engines import NumExprClobberingError, _engines
import pandas.core.computation.expr as expr
from pandas.core.computation.expr import PandasExprVisitor, PythonExprVisitor
from pandas.core.computation.expr import (
BaseExprVisitor,
PandasExprVisitor,
PythonExprVisitor,
)
from pandas.core.computation.expressions import _NUMEXPR_INSTALLED, _USE_NUMEXPR
from pandas.core.computation.ops import (
_arith_ops_syms,
Expand Down Expand Up @@ -1884,7 +1889,7 @@ def test_invalid_parser():
"python": PythonExprVisitor,
"pytables": pytables.ExprVisitor,
"pandas": PandasExprVisitor,
}
} # type: Dict[str, Type[BaseExprVisitor]]


@pytest.mark.parametrize("engine", _engines)
Expand Down
3 changes: 0 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@ ignore_errors=True
[mypy-pandas.tests.arrays.test_period]
ignore_errors=True

[mypy-pandas.tests.computation.test_eval]
ignore_errors=True

[mypy-pandas.tests.dtypes.test_common]
ignore_errors=True

Expand Down

0 comments on commit fdc322a

Please sign in to comment.