File tree 4 files changed +4
-15
lines changed
4 files changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,6 @@ ignore_errors=True
8
8
[mypy-pandas.core.api]
9
9
ignore_errors =True
10
10
11
- [mypy-pandas.core.computation.expr]
12
- ignore_errors =True
13
-
14
- [mypy-pandas.core.computation.ops]
15
- ignore_errors =True
16
-
17
- [mypy-pandas.core.computation.pytables]
18
- ignore_errors =True
19
-
20
11
[mypy-pandas.core.indexes.base]
21
12
ignore_errors =True
22
13
Original file line number Diff line number Diff line change 7
7
import itertools as it
8
8
import operator
9
9
import tokenize
10
+ from typing import Type
10
11
11
12
import numpy as np
12
13
@@ -327,7 +328,7 @@ class BaseExprVisitor(ast.NodeVisitor):
327
328
parser : str
328
329
preparser : callable
329
330
"""
330
- const_type = Constant
331
+ const_type = Constant # type: Type[Term]
331
332
term_type = Term
332
333
333
334
binary_ops = _cmp_ops_syms + _bool_ops_syms + _arith_ops_syms
Original file line number Diff line number Diff line change @@ -149,10 +149,6 @@ def value(self, new_value):
149
149
def name (self ):
150
150
return self ._name
151
151
152
- @name .setter
153
- def name (self , new_name ):
154
- self ._name = new_name
155
-
156
152
@property
157
153
def ndim (self ):
158
154
return self ._value .ndim
Original file line number Diff line number Diff line change @@ -56,7 +56,8 @@ def _resolve_name(self):
56
56
except UndefinedVariableError :
57
57
return self .name
58
58
59
- @property
59
+ # read-only property overwriting read/write property
60
+ @property # type: ignore
60
61
def value (self ):
61
62
return self ._value
62
63
You can’t perform that action at this time.
0 commit comments