1
0
forked from VimPlug/jedi

Add a temporary api._names, to make it possible to annotate a full script with types.

This commit is contained in:
Dave Halter
2014-09-01 18:10:40 +02:00
parent bbf1070ad9
commit be9e77d7d3
3 changed files with 26 additions and 1 deletions

View File

@@ -191,6 +191,10 @@ def scan_statement_for_calls(stmt, search_name, assignment_details=False):
def get_module_name_parts(module):
"""
Returns a dictionary with name parts as keys and their call paths as
values.
"""
def scope_name_parts(scope):
for s in scope.subscopes:
# Yield the name parts, not names.