1
0
forked from VimPlug/jedi

Document return type of get_names_of_scope

This commit is contained in:
Takafumi Arakaki
2013-02-23 23:49:09 +01:00
parent 87714460a2
commit 71d5b0ac67

View File

@@ -153,6 +153,8 @@ def get_names_of_scope(scope, position=None, star_search=True,
>>> pairs[2] #doctest: +ELLIPSIS
(<Module: ...builtin...>, [<Name: ...>, ...])
:rtype: [(pr.Scope, [pr.Name])]
:return: Return an generator that yields a pair of scope and names.
"""
in_func_scope = scope
non_flow = scope.get_parent_until(pr.Flow, reverse=True)