Skip to content

Commit

Permalink
Fix a typo where 'msg =' was repeated twice
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Mar 28, 2021
1 parent 14f20e2 commit 12acc43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylint/checkers/typecheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -1697,7 +1697,7 @@ def _detect_unsupported_alternative_union_syntax(self, node: astroid.BinOp) -> N

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):
Expand Down

0 comments on commit 12acc43

Please sign in to comment.