1
0
forked from VimPlug/jedi

Get a first typeshed example fully working as intended

This commit is contained in:
Dave Halter
2018-08-02 00:15:54 +02:00
parent c8caa8f4ac
commit 61de28f741
3 changed files with 101 additions and 103 deletions

View File

@@ -64,9 +64,7 @@ class ClassName(TreeNameDefinition):
@iterator_to_context_set
def infer(self):
# TODO this _name_to_types might get refactored and be a part of the
# parent class. Once it is, we can probably just overwrite method to
# achieve this.
# We're using a different context to infer, so we cannot call super().
from jedi.evaluate.syntax_tree import tree_name_to_contexts
inferred = tree_name_to_contexts(
self.parent_context.evaluator, self._name_context, self.tree_name)