diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-05-02 22:29:17 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-05-03 22:01:26 +0200 |
commit | 55504c5926d8159ff73a9c2167f60e3b467765f0 (patch) | |
tree | 522809a42105c13317a5570c60feb70236a5e12a | |
parent | 584f211ac725cbf07153fed7c7d5ae761f3ef913 (diff) | |
download | pylint-git-55504c5926d8159ff73a9c2167f60e3b467765f0.tar.gz |
[use-implicit-booleaness] Remove condition that is always false (outdated typing hint?)
-rw-r--r-- | pylint/checkers/refactoring/implicit_booleaness_checker.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/pylint/checkers/refactoring/implicit_booleaness_checker.py b/pylint/checkers/refactoring/implicit_booleaness_checker.py index 6eb516699..67914c1e6 100644 --- a/pylint/checkers/refactoring/implicit_booleaness_checker.py +++ b/pylint/checkers/refactoring/implicit_booleaness_checker.py @@ -233,8 +233,6 @@ class ImplicitBooleanessChecker(checkers.BaseChecker): if self.linter.is_message_enabled( "use-implicit-booleaness-not-comparison-to-str" ): - if op_1 is None or op_3 is None: - continue node_name = "" # x ?? "" if utils.is_empty_str_literal(op_1): |