Make infer public on classes
This commit is contained in:
1 parent
2fc53045c7
commit
7c56052d58
8 files changed
+41
-18
No files matched your search
+1
-2
@@ -320,8 +320,7 @@ class BaseDefinition(object):
|
||||
names = self._evaluator.goto(self._name.parent_context, self._name.tree_name)
|
||||
return [Definition(self._evaluator, n) for n in names]
|
||||
|
||||
def _goto_definitions(self):
|
||||
# TODO make this function public.
|
||||
def infer(self):
|
||||
return [Definition(self._evaluator, d.name) for d in self._name.infer()]
|
||||
|
||||
@property
|
||||
|
||||
Reference in new issue
Block a user