forked from VimPlug/jedi
Document return type of get_names_of_scope
This commit is contained in:
@@ -153,6 +153,8 @@ def get_names_of_scope(scope, position=None, star_search=True,
|
|||||||
>>> pairs[2] #doctest: +ELLIPSIS
|
>>> pairs[2] #doctest: +ELLIPSIS
|
||||||
(<Module: ...builtin...>, [<Name: ...>, ...])
|
(<Module: ...builtin...>, [<Name: ...>, ...])
|
||||||
|
|
||||||
|
:rtype: [(pr.Scope, [pr.Name])]
|
||||||
|
:return: Return an generator that yields a pair of scope and names.
|
||||||
"""
|
"""
|
||||||
in_func_scope = scope
|
in_func_scope = scope
|
||||||
non_flow = scope.get_parent_until(pr.Flow, reverse=True)
|
non_flow = scope.get_parent_until(pr.Flow, reverse=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user