Skip to content

Commit

Permalink
fix PLC0206
Browse files Browse the repository at this point in the history
  • Loading branch information
RayBB committed Dec 23, 2024
1 parent 0d97928 commit 2cf396f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions openlibrary/accounts/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,8 @@ def authenticate(cls, email, password, test=False):

class InternetArchiveAccount(web.storage):
def __init__(self, **kwargs):
for k in kwargs:
setattr(self, k, kwargs[k])
for k, v in kwargs.items():
setattr(self, k, v)

@classmethod
def create(
Expand Down
4 changes: 2 additions & 2 deletions openlibrary/solr/types_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ def generate():
seen_names.add(name)
python_fields.append(f" {name}: {python_type}")

for key in OVERRIDES:
for key, value in OVERRIDES.items():
if key not in seen_names:
python_fields.append(f" {key}: {OVERRIDES[key]}")
python_fields.append(f" {key}: {value}")

body = '\n'.join(python_fields)
python = f"""# This file is auto-generated by types_generator.py
Expand Down

0 comments on commit 2cf396f

Please sign in to comment.