mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
remove debug changes
This commit is contained in:
@@ -32,8 +32,8 @@ def filter_name(filters, name_or_str):
|
|||||||
"""
|
"""
|
||||||
string_name = name_or_str.value if isinstance(name_or_str, Name) else name_or_str
|
string_name = name_or_str.value if isinstance(name_or_str, Name) else name_or_str
|
||||||
names = []
|
names = []
|
||||||
for filter_ in filters:
|
for filter in filters:
|
||||||
names = filter_.get(string_name)
|
names = filter.get(string_name)
|
||||||
if names:
|
if names:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|||||||
@@ -495,9 +495,7 @@ class SelfName(TreeNameDefinition):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def parent_context(self):
|
def parent_context(self):
|
||||||
_instance = self._instance
|
return self._instance.create_instance_context(self.class_context, self.tree_name)
|
||||||
_context = _instance.create_instance_context(self.class_context, self.tree_name)
|
|
||||||
return _context
|
|
||||||
|
|
||||||
def get_defining_qualified_value(self):
|
def get_defining_qualified_value(self):
|
||||||
return self._instance
|
return self._instance
|
||||||
@@ -507,9 +505,9 @@ class SelfName(TreeNameDefinition):
|
|||||||
if stmt is not None:
|
if stmt is not None:
|
||||||
if stmt.children[1].type == "annassign":
|
if stmt.children[1].type == "annassign":
|
||||||
from jedi.inference.gradual.annotation import infer_annotation
|
from jedi.inference.gradual.annotation import infer_annotation
|
||||||
_parent_context = self.parent_context
|
values = infer_annotation(
|
||||||
_infer = infer_annotation(_parent_context, stmt.children[1].children[1])
|
self.parent_context, stmt.children[1].children[1]
|
||||||
values = _infer.execute_annotation()
|
).execute_annotation()
|
||||||
if values:
|
if values:
|
||||||
return values
|
return values
|
||||||
return super().infer()
|
return super().infer()
|
||||||
|
|||||||
Reference in New Issue
Block a user