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

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

No files matched your search

+4
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.