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 22:48:56 +0200 |
commit | 59f7c9d1b7700ed1e64356d5aae4f02a0770e2a0 (patch) | |
tree | d3e38a695bd6fc95eb2f3ea0179652da3f9a2b9f | |
parent | 78fdba1c674ada4552a06e1f2fd1dfe5747f57da (diff) | |
download | pylint-git-59f7c9d1b7700ed1e64356d5aae4f02a0770e2a0.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 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): |