Skip to content

Commit

Permalink
Readability: reduce boolean nesting
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison authored and ambv committed Feb 20, 2021
1 parent 2470080 commit 22127c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/black/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2712,7 +2712,8 @@ def init_st(ST: Type[StringTransformer]) -> StringTransformer:
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()
Expand Down

0 comments on commit 22127c6

Please sign in to comment.