We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45eab5a commit 4940bcaCopy full SHA for 4940bca
1 file changed
line_profiler/autoprofile/profmod_extractor.py
@@ -157,7 +157,8 @@ def _ast_get_imports_from_tree(
157
tree_index (int):
158
the index of the import as found in the tree
159
"""
160
- module_dict_list = []
+ module_dict_list: list[dict[str, str | int | None]] = []
161
+ module_dict: dict[str, str | int | None]
162
modname_list = []
163
for idx, node in enumerate(tree.body):
164
if isinstance(node, ast.Import):
0 commit comments