Loading black.py +3 −3 Changes for black.py: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -170,7 +170,7 @@ def read_pyproject_toml( "--line-length", type=int, default=DEFAULT_LINE_LENGTH, help="How many character per line to allow.", help="How many characters per line to allow.", show_default=True, ) @click.option( Loading Loading @@ -1164,7 +1164,7 @@ def maybe_remove_trailing_comma(self, closing: Leaf) -> bool: self.remove_trailing_comma() return True # Otheriwsse, if the trailing one is the only one, we might mistakenly # Otherwise, if the trailing one is the only one, we might mistakenly # change a tuple into a different type by removing the comma. depth = closing.bracket_depth + 1 commas = 0 Loading Loading @@ -1377,7 +1377,7 @@ def _maybe_empty_lines_for_class_or_def( newlines = 1 elif current_line.is_class or self.previous_line.is_class: if current_line.is_stub_class and self.previous_line.is_stub_class: # No blank line between classes with an emty body # No blank line between classes with an empty body newlines = 0 else: newlines = 1 Loading Loading
black.py +3 −3 Changes for black.py: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -170,7 +170,7 @@ def read_pyproject_toml( "--line-length", type=int, default=DEFAULT_LINE_LENGTH, help="How many character per line to allow.", help="How many characters per line to allow.", show_default=True, ) @click.option( Loading Loading @@ -1164,7 +1164,7 @@ def maybe_remove_trailing_comma(self, closing: Leaf) -> bool: self.remove_trailing_comma() return True # Otheriwsse, if the trailing one is the only one, we might mistakenly # Otherwise, if the trailing one is the only one, we might mistakenly # change a tuple into a different type by removing the comma. depth = closing.bracket_depth + 1 commas = 0 Loading Loading @@ -1377,7 +1377,7 @@ def _maybe_empty_lines_for_class_or_def( newlines = 1 elif current_line.is_class or self.previous_line.is_class: if current_line.is_stub_class and self.previous_line.is_stub_class: # No blank line between classes with an emty body # No blank line between classes with an empty body newlines = 0 else: newlines = 1 Loading