From: James Addison Date: Tue, 9 Feb 2021 21:13:57 +0000 (+0000) Subject: Readability: reduce boolean nesting X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/22127c633eba10d41519fb562c1252f859e2d7fa Readability: reduce boolean nesting --- 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()