From 1a122dd7c4ace87574440bb78fc9b4ddcbd123d1 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Thu, 23 Dec 2021 14:05:22 +0100 Subject: Upgrade mypy to 0.930 (#5592) --- .pre-commit-config.yaml | 2 +- pylint/checkers/utils.py | 2 +- requirements_test_pre_commit.txt | 2 +- 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 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 -- cgit v1.2.1