1
0
forked from VimPlug/jedi

A bit better typeshed support

This commit is contained in:
Dave Halter
2018-07-28 14:39:55 +02:00
parent 4e75a35468
commit e6f28b06b5
2 changed files with 36 additions and 41 deletions

View File

@@ -213,6 +213,8 @@ class ModuleContext(TreeContext):
return compiled.get_special_object(self.evaluator, u'MODULE_CLASS')
def __repr__(self):
return "<%s: %s@%s-%s>" % (
return "<%s: %s@%s-%s is_stub=%s>" % (
self.__class__.__name__, self._string_name,
self.tree_node.start_pos[0], self.tree_node.end_pos[0])
self.tree_node.start_pos[0], self.tree_node.end_pos[0],
self._path.endswith('.pyi')
)