Skip to content

Commit

Permalink
Better list naming fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Arsen Rudnytskyy committed Dec 16, 2023
1 parent ccbd058 commit 2185cb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ def __init__(self, name: str, age: int) -> None:


def create_person_list(people: list) -> list:
people_instances = [Person(name=person["name"], age=person["age"])
for person in people]
person_instances = [Person(name=person["name"], age=person["age"])
for person in people]

for person in people:
if person.get("wife"):
Expand All @@ -21,4 +21,4 @@ def create_person_list(people: list) -> list:
person_husband = Person.people[person["husband"]]
main_person.husband = person_husband

return people_instances
return person_instances

0 comments on commit 2185cb0

Please sign in to comment.