File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -496,7 +496,8 @@ def analyze_member_var_access(
496
496
original_type is the type of E in the expression E.var
497
497
"""
498
498
# It was not a method. Try looking up a variable.
499
- v = lookup_member_var_or_accessor (info , name , mx .is_lvalue )
499
+ node = info .get (name )
500
+ v = node .node if node else None
500
501
501
502
mx .chk .warn_deprecated (v , mx .context )
502
503
@@ -898,16 +899,6 @@ def visit_callable_type(self, t: CallableType) -> None:
898
899
super ().visit_callable_type (t )
899
900
900
901
901
- def lookup_member_var_or_accessor (info : TypeInfo , name : str , is_lvalue : bool ) -> SymbolNode | None :
902
- """Find the attribute/accessor node that refers to a member of a type."""
903
- # TODO handle lvalues
904
- node = info .get (name )
905
- if node :
906
- return node .node
907
- else :
908
- return None
909
-
910
-
911
902
def check_self_arg (
912
903
functype : FunctionLike ,
913
904
dispatched_arg_type : Type ,
You can’t perform that action at this time.
0 commit comments