diff options
Diffstat (limited to 'pylint/checkers/typecheck.py')
-rw-r--r-- | pylint/checkers/typecheck.py | 2 |
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): |