File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 2
2
from functools import reduce
3
3
from itertools import product
4
4
import operator
5
+ from typing import Dict , Type
5
6
import warnings
6
7
7
8
import numpy as np
19
20
from pandas .core .computation .check import _NUMEXPR_VERSION
20
21
from pandas .core .computation .engines import NumExprClobberingError , _engines
21
22
import pandas .core .computation .expr as expr
22
- from pandas .core .computation .expr import PandasExprVisitor , PythonExprVisitor
23
+ from pandas .core .computation .expr import (
24
+ BaseExprVisitor ,
25
+ PandasExprVisitor ,
26
+ PythonExprVisitor ,
27
+ )
23
28
from pandas .core .computation .expressions import _NUMEXPR_INSTALLED , _USE_NUMEXPR
24
29
from pandas .core .computation .ops import (
25
30
_arith_ops_syms ,
@@ -1884,7 +1889,7 @@ def test_invalid_parser():
1884
1889
"python" : PythonExprVisitor ,
1885
1890
"pytables" : pytables .ExprVisitor ,
1886
1891
"pandas" : PandasExprVisitor ,
1887
- }
1892
+ } # type: Dict[str, Type[BaseExprVisitor]]
1888
1893
1889
1894
1890
1895
@pytest .mark .parametrize ("engine" , _engines )
Original file line number Diff line number Diff line change @@ -145,9 +145,6 @@ ignore_errors=True
145
145
[mypy-pandas.tests.arrays.test_period]
146
146
ignore_errors =True
147
147
148
- [mypy-pandas.tests.computation.test_eval]
149
- ignore_errors =True
150
-
151
148
[mypy-pandas.tests.dtypes.test_common]
152
149
ignore_errors =True
153
150
You can’t perform that action at this time.
0 commit comments