Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
peters-david committed Jan 22, 2025
1 parent 29fc776 commit 97aee67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ async def fetch_id(
registry_id = registry.id
return registry_id


def insert_into_dict(d: dict, parts: [str]) -> None:
"""Takes a dictionary and insert nested objects given as list.
Expand All @@ -131,7 +132,6 @@ def insert_into_dict(d: dict, parts: [str]) -> None:
>>> insert_into_dict(d, ["a", "c", 2])
>>> d
{"a": {"b": 1, c: "2"}}
"""
assert len(parts) >= 2
for part in parts[:-2]:
Expand Down

0 comments on commit 97aee67

Please sign in to comment.