Skip to content

Commit

Permalink
Fix formatting after black merged lines
Browse files Browse the repository at this point in the history
  • Loading branch information
RazerM committed Jan 23, 2024
1 parent 7f9305d commit 73fcca9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/represent/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,7 @@ def _autorepr_decorate(
repr_args.append(arg)

if arg in kwonly:
raise ValueError(
"keyword only argument '{}' cannot" " be positional".format(arg)
)
raise ValueError(f"keyword only argument '{arg}' cannot be positional")
if keyword_started:
raise ValueError(
"positional argument '{}' cannot follow keyword"
Expand Down
8 changes: 4 additions & 4 deletions src/represent/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ def __init__(self, other):

def positional_from_attr(self, attr_name):
if self.keyword_started:
raise ValueError("positional arguments cannot " "follow keyword arguments")
raise ValueError("positional arguments cannot follow keyword arguments")
self._ensure_comma()
self.repr_parts.append(repr(getattr(self.other, attr_name)))
self.iarg += 1

def positional_with_value(self, value, raw=False):
if self.keyword_started:
raise ValueError("positional arguments cannot " "follow keyword arguments")
raise ValueError("positional arguments cannot follow keyword arguments")
self._ensure_comma()
value = value if raw else repr(value)
self.repr_parts.append(value)
Expand Down Expand Up @@ -166,7 +166,7 @@ def positional_from_attr(self, attr_name):
return

if self.keyword_started:
raise ValueError("positional arguments cannot " "follow keyword arguments")
raise ValueError("positional arguments cannot follow keyword arguments")
self._ensure_comma()
self.p.pretty(getattr(self.other, attr_name))
self.iarg += 1
Expand All @@ -176,7 +176,7 @@ def positional_with_value(self, value, raw=False):
return

if self.keyword_started:
raise ValueError("positional arguments cannot " "follow keyword arguments")
raise ValueError("positional arguments cannot follow keyword arguments")
self._ensure_comma()
if raw:
self.p.text(str(value))
Expand Down

0 comments on commit 73fcca9

Please sign in to comment.