You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [8]: jedi.api.names(textwrap.dedent("""
...: from module import f
...: g = f(f)
...: class C:
...: h = g
...: """), 'example.py', all_scopes=False)
Out[8]:
[<Definition module f>,
<Definition g = f(f)>,
<Definition class C>,
<Definition h = g>]
In [9]: _8[-1].parent()
Out[9]: <Definition class C>
IIUC <Definition h = g> should not be considered a global definition and thus not returned if all_scopes=False is used.
The text was updated successfully, but these errors were encountered:
Here's a repro example:
IIUC
<Definition h = g>
should not be considered a global definition and thus not returned ifall_scopes=False
is used.The text was updated successfully, but these errors were encountered: