Skip to content

Commit

Permalink
Update mypy to 0.991 (#1872)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Nov 15, 2022
1 parent 241e1ce commit 669b8e0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ repos:
]
exclude: tests/testdata|conf.py
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.990
rev: v0.991
hooks:
- id: mypy
name: mypy
Expand Down
4 changes: 2 additions & 2 deletions astroid/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ def sort_locals(my_list: list[nodes.NodeNG]) -> None:
continue
for name in imported.public_names():
node.parent.set_local(name, node)
sort_locals(node.parent.scope().locals[name]) # type: ignore[assignment]
sort_locals(node.parent.scope().locals[name]) # type: ignore[arg-type]
else:
node.parent.set_local(asname or name, node)
sort_locals(node.parent.scope().locals[asname or name]) # type: ignore[assignment]
sort_locals(node.parent.scope().locals[asname or name]) # type: ignore[arg-type]

def delayed_assattr(self, node: nodes.AssignAttr) -> None:
"""Visit a AssAttr node
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_pre_commit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ pylint==2.15.5
isort==5.10.1
flake8==5.0.4
flake8-typing-imports==1.14.0
mypy==0.982
mypy==0.991

0 comments on commit 669b8e0

Please sign in to comment.