Skip to content

Commit

Permalink
[crash] Fix crashes on python interpreter < 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Feb 2, 2023
1 parent 5c0084b commit d991cf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -601,3 +601,4 @@ under this name, or we did not manage to find their commits in the history.
- Thomas Snowden: fix missing-docstring for inner functions
- Wolfgang Grafen
- Yannick Brehon
- Marc Schmitzer (MarcSchmitzer): #8161
2 changes: 1 addition & 1 deletion pylint/checkers/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def _make_tree_defs(mod_files_list: ItemsView[str, set[str]]) -> _ImportTree:
assert isinstance(node[0], dict)
node = node[0].setdefault(prefix, ({}, [])) # type: ignore[arg-type,assignment]
assert isinstance(node[1], list)
node[1] += files
node[1].extend(files)
return tree_defs


Expand Down

0 comments on commit d991cf5

Please sign in to comment.