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 22:48:56 +0200
commit59f7c9d1b7700ed1e64356d5aae4f02a0770e2a0 (patch)
treed3e38a695bd6fc95eb2f3ea0179652da3f9a2b9f
parent78fdba1c674ada4552a06e1f2fd1dfe5747f57da (diff)
downloadpylint-git-59f7c9d1b7700ed1e64356d5aae4f02a0770e2a0.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 040f5b355..d239c0c57 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):