Add a temporary api._names, to make it possible to annotate a full script with types.
This commit is contained in:
1 parent
bbf1070ad9
commit
be9e77d7d3
3 files changed
+26
-1
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user