mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-08 17:01:01 +08:00
Annotations can contain forward references even if they are not a string anymore
Since Python 3.7 this behavior can be imported with from future import __annotations
This commit is contained in:
@@ -216,5 +216,5 @@ class ModuleContext(TreeContext):
|
||||
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._path.endswith('.pyi')
|
||||
self._path is not None and self._path.endswith('.pyi')
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user