summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2021-12-23 14:05:22 +0100
committerGitHub <noreply@github.com>2021-12-23 14:05:22 +0100
commit1a122dd7c4ace87574440bb78fc9b4ddcbd123d1 (patch)
tree0ac793d3feb80c65cc6487fa0a5974eae5d6e661
parent21cb6881846c8ad506bb53970802ba378388f2f1 (diff)
downloadpylint-git-1a122dd7c4ace87574440bb78fc9b4ddcbd123d1.tar.gz
Upgrade mypy to 0.930 (#5592)
-rw-r--r--.pre-commit-config.yaml2
-rw-r--r--pylint/checkers/utils.py2
-rw-r--r--requirements_test_pre_commit.txt2
3 files changed, 3 insertions, 3 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 6c3bd79b4..dbcd90a67 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -77,7 +77,7 @@ repos:
types: [text] # necessary to include ChangeLog file
files: ^(ChangeLog|doc/(.*/)*.*\.rst)
- repo: https://github.com/pre-commit/mirrors-mypy
- rev: v0.920
+ rev: v0.930
hooks:
- id: mypy
name: mypy
diff --git a/pylint/checkers/utils.py b/pylint/checkers/utils.py
index d89b39d9f..cd72e38ee 100644
--- a/pylint/checkers/utils.py
+++ b/pylint/checkers/utils.py
@@ -337,7 +337,7 @@ def is_builtin_object(node: nodes.NodeNG) -> bool:
def is_builtin(name: str) -> bool:
"""return true if <name> could be considered as a builtin defined by python"""
- return name in builtins or name in SPECIAL_BUILTINS # type: ignore[operator]
+ return name in builtins or name in SPECIAL_BUILTINS # type: ignore[attr-defined]
def is_defined_in_scope(
diff --git a/requirements_test_pre_commit.txt b/requirements_test_pre_commit.txt
index e94238771..007e59b4f 100644
--- a/requirements_test_pre_commit.txt
+++ b/requirements_test_pre_commit.txt
@@ -4,4 +4,4 @@ black==21.12b0
flake8==4.0.1
flake8-typing-imports==1.12.0
isort==5.10.1
-mypy==0.920
+mypy==0.930