diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2021-11-17 14:13:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-17 14:13:34 +0100 |
commit | b91cc8dbb47ce622b73c766b3a53da270bdb24e9 (patch) | |
tree | 72797301578a928011bf9d9c433d9b5482f2aa48 /pylint/checkers/utils.py | |
parent | 7d2b6c9bd807dda7502e739c7b9fb2182d89f457 (diff) | |
download | pylint-git-b91cc8dbb47ce622b73c766b3a53da270bdb24e9.tar.gz |
Add error codes to all ``type: ignore`` (#5329)
Diffstat (limited to 'pylint/checkers/utils.py')
-rw-r--r-- | pylint/checkers/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/checkers/utils.py b/pylint/checkers/utils.py index cff791364..62fd35347 100644 --- a/pylint/checkers/utils.py +++ b/pylint/checkers/utils.py @@ -312,7 +312,7 @@ def is_error(node: nodes.FunctionDef) -> bool: return len(node.body) == 1 and isinstance(node.body[0], nodes.Raise) -builtins = builtins.__dict__.copy() # type: ignore +builtins = builtins.__dict__.copy() # type: ignore[assignment] SPECIAL_BUILTINS = ("__builtins__",) # '__path__', '__file__') @@ -323,7 +323,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 + return name in builtins or name in SPECIAL_BUILTINS # type: ignore[operator] def is_defined_in_scope( |