Skip to content

Commit 4940bca

Browse files
committed
collapse return types a bit
1 parent 45eab5a commit 4940bca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

line_profiler/autoprofile/profmod_extractor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ def _ast_get_imports_from_tree(
157157
tree_index (int):
158158
the index of the import as found in the tree
159159
"""
160-
module_dict_list = []
160+
module_dict_list: list[dict[str, str | int | None]] = []
161+
module_dict: dict[str, str | int | None]
161162
modname_list = []
162163
for idx, node in enumerate(tree.body):
163164
if isinstance(node, ast.Import):

0 commit comments

Comments
 (0)