Infer doctests and signatures uniformly, fixes #1466

This commit is contained in:
Dave Halter committed 2020-01-03 00:45:14 +01:00
1 parent 2d31e2e760
commit 3b6bbab556
10 files changed
+89 -20

No files matched your search

+1 -1
View File
@@ -350,7 +350,7 @@ class Script(object):
:rtype: list of :class:`classes.Definition`
"""
definitions = self.goto(line, column)
definitions = self.goto(line, column, follow_imports=True)
if definitions:
return definitions
leaf = self._module_node.get_leaf_for_position((line, column))