Skip to content

Commit

Permalink
fix ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX committed Sep 11, 2024
1 parent cd51074 commit 99fcd98
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/atproto_codegen/models/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,16 +310,12 @@ def _get_model_field_value( # noqa: C901
if value is not_set:
continue

if name != 'default':
only_default = False

if isinstance(value, str):
str_value = f"'{value}'"
else:
str_value = str(value)
str_value = f"'{value}'" if isinstance(value, str) else str(value)

if name == 'default':
default = str_value
else:
only_default = False

values.append(f'{name}={str_value}')

Expand Down

0 comments on commit 99fcd98

Please sign in to comment.