Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 17, 2024
1 parent 89a8753 commit 5ec8945
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions client_code/cluegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,12 @@ def __init_subclass__(cls):
def __init__(cls):
clues = all_clues(cls)
args = ", ".join(
f"{name}={getattr(cls,name)!r}"
if hasattr(cls, name)
and not isinstance(getattr(cls, name), MemberDescriptorType)
else name
(
f"{name}={getattr(cls,name)!r}"
if hasattr(cls, name)
and not isinstance(getattr(cls, name), MemberDescriptorType)
else name
)
for name in clues
)
body = "\n".join(f" self.{name} = {name}" for name in clues)
Expand Down

0 comments on commit 5ec8945

Please sign in to comment.