summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-03-28 16:23:54 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-03-28 16:30:10 +0200
commit12acc439bdbece347334b9e1efbdc7245da5001d (patch)
treef86cf003dc93ad6c515a62c8cd475df909de0e91
parent14f20e2d50b71d92893edda67c00054a840ee05f (diff)
downloadpylint-git-12acc439bdbece347334b9e1efbdc7245da5001d.tar.gz
Fix a typo where 'msg =' was repeated twice
-rw-r--r--pylint/checkers/typecheck.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/checkers/typecheck.py b/pylint/checkers/typecheck.py
index 476897f28..275d2c52c 100644
--- a/pylint/checkers/typecheck.py
+++ b/pylint/checkers/typecheck.py
@@ -1697,7 +1697,7 @@ accessed. Python regular expressions are accepted.",
def _check_unsupported_alternative_union_syntax(self, node: astroid.BinOp) -> None:
"""Check if left or right node is of type `type`."""
- msg = msg = "unsupported operand type(s) for |"
+ msg = "unsupported operand type(s) for |"
for n in (node.left, node.right):
n = astroid.helpers.object_type(n)
if isinstance(n, astroid.ClassDef) and is_classdef_type(n):