Readability: reduce boolean nesting
This commit is contained in:
parent
24700806f6
commit
22127c633e
@ -2712,7 +2712,8 @@ def init_st(ST: Type[StringTransformer]) -> StringTransformer:
|
|||||||
transformers: List[Transformer]
|
transformers: List[Transformer]
|
||||||
if (
|
if (
|
||||||
not line.contains_uncollapsable_type_comments()
|
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 (
|
and (
|
||||||
is_line_short_enough(line, line_length=mode.line_length, line_str=line_str)
|
is_line_short_enough(line, line_length=mode.line_length, line_str=line_str)
|
||||||
or line.contains_unsplittable_type_ignore()
|
or line.contains_unsplittable_type_ignore()
|
||||||
|
Loading…
Reference in New Issue
Block a user