From 22127c633eba10d41519fb562c1252f859e2d7fa Mon Sep 17 00:00:00 2001 From: James Addison Date: Tue, 9 Feb 2021 21:13:57 +0000 Subject: [PATCH] Readability: reduce boolean nesting --- src/black/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/black/__init__.py b/src/black/__init__.py index c2a4bda..c2b0ad4 100644 --- a/src/black/__init__.py +++ b/src/black/__init__.py @@ -2712,7 +2712,8 @@ def transform_line( transformers: List[Transformer] if ( not line.contains_uncollapsable_type_comments() - and not (line.should_split or line.magic_trailing_comma) + and not line.should_split + and not line.magic_trailing_comma and ( is_line_short_enough(line, line_length=mode.line_length, line_str=line_str) or line.contains_unsplittable_type_ignore() -- 2.39.2