diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-28 16:23:54 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-03-28 16:30:10 +0200 |
commit | 12acc439bdbece347334b9e1efbdc7245da5001d (patch) | |
tree | f86cf003dc93ad6c515a62c8cd475df909de0e91 | |
parent | 14f20e2d50b71d92893edda67c00054a840ee05f (diff) | |
download | pylint-git-12acc439bdbece347334b9e1efbdc7245da5001d.tar.gz |
Fix a typo where 'msg =' was repeated twice
-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 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): |