Fix minor typos (#443)

This commit is contained in:
ceh 2018-08-19 14:10:06 +02:00 committed by Łukasz Langa
parent 0c77c58722
commit 66b82ced50

View File

@ -170,7 +170,7 @@ def read_pyproject_toml(
"--line-length", "--line-length",
type=int, type=int,
default=DEFAULT_LINE_LENGTH, default=DEFAULT_LINE_LENGTH,
help="How many character per line to allow.", help="How many characters per line to allow.",
show_default=True, show_default=True,
) )
@click.option( @click.option(
@ -1164,7 +1164,7 @@ def maybe_remove_trailing_comma(self, closing: Leaf) -> bool:
self.remove_trailing_comma() self.remove_trailing_comma()
return True 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. # change a tuple into a different type by removing the comma.
depth = closing.bracket_depth + 1 depth = closing.bracket_depth + 1
commas = 0 commas = 0
@ -1377,7 +1377,7 @@ def _maybe_empty_lines_for_class_or_def(
newlines = 1 newlines = 1
elif current_line.is_class or self.previous_line.is_class: elif current_line.is_class or self.previous_line.is_class:
if current_line.is_stub_class and self.previous_line.is_stub_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 newlines = 0
else: else:
newlines = 1 newlines = 1