Loading README.md +2 −0 Changes for README.md: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -964,6 +964,8 @@ More details can be found in [CONTRIBUTING](CONTRIBUTING.md). to be a bad idea (#415) * trailing comma is now added to single imports that don't fit on a line (#250) ### 18.6b4 Loading black.py +4 −1 Changes for black.py: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -2209,7 +2209,7 @@ def left_hand_split(line: Line, py36: bool = False) -> Iterator[Line]: yield result def right_hand_split( def right_hand_split( # noqa C901 line: Line, line_length: int, py36: bool = False, omit: Collection[LeafID] = () ) -> Iterator[Line]: """Split line into many lines, starting with the last matching bracket pair. Loading Loading @@ -2250,6 +2250,9 @@ def right_hand_split( # the matching `opening_bracket` wasn't available on `line` anymore. raise CannotSplit("No brackets found") if line.is_import and len(body_leaves) == 1: body_leaves.append(Leaf(token.COMMA, ",")) # Build the new lines. for result, leaves in (head, head_leaves), (body, body_leaves), (tail, tail_leaves): for leaf in leaves: Loading tests/data/import_spacing.py +1 −1 Changes for tests/data/import_spacing.py: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -86,7 +86,7 @@ Use, ) from name_of_a_company.extremely_long_project_name.component.ttypes import ( CuteLittleServiceHandlerFactoryyy CuteLittleServiceHandlerFactoryyy, ) from name_of_a_company.extremely_long_project_name.extremely_long_component_name.ttypes import * Loading Loading
README.md +2 −0 Changes for README.md: 2 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -964,6 +964,8 @@ More details can be found in [CONTRIBUTING](CONTRIBUTING.md). to be a bad idea (#415) * trailing comma is now added to single imports that don't fit on a line (#250) ### 18.6b4 Loading
black.py +4 −1 Changes for black.py: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -2209,7 +2209,7 @@ def left_hand_split(line: Line, py36: bool = False) -> Iterator[Line]: yield result def right_hand_split( def right_hand_split( # noqa C901 line: Line, line_length: int, py36: bool = False, omit: Collection[LeafID] = () ) -> Iterator[Line]: """Split line into many lines, starting with the last matching bracket pair. Loading Loading @@ -2250,6 +2250,9 @@ def right_hand_split( # the matching `opening_bracket` wasn't available on `line` anymore. raise CannotSplit("No brackets found") if line.is_import and len(body_leaves) == 1: body_leaves.append(Leaf(token.COMMA, ",")) # Build the new lines. for result, leaves in (head, head_leaves), (body, body_leaves), (tail, tail_leaves): for leaf in leaves: Loading
tests/data/import_spacing.py +1 −1 Changes for tests/data/import_spacing.py: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -86,7 +86,7 @@ Use, ) from name_of_a_company.extremely_long_project_name.component.ttypes import ( CuteLittleServiceHandlerFactoryyy CuteLittleServiceHandlerFactoryyy, ) from name_of_a_company.extremely_long_project_name.extremely_long_component_name.ttypes import * Loading