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
Okay. It seems that I need to make some modifications to get_module_names, because async functions are actually functions wrapped in async_stmt.
I also noted there are still top-level function parameters and in-function local variables included in the result even if all_scopes=False, i.e. #1202, and curious about the current situation of that issue and PR #1203 . May I try to fix this as well?
I tried to use
jedi.api.names
to generate document outline for the following codewith the following code (flattened document outline)
It gives me the following output
The result here is satisfactory.
However, if I remove
all_scopes=True
(useFalse
by default), the output becomesThe problem here, is
func_async
, regardless of it being a top-level function, is missing. Is this a bug or by design?The text was updated successfully, but these errors were encountered: