diff --git a/app/main.py b/app/main.py index a1410484a..8d672123a 100644 --- a/app/main.py +++ b/app/main.py @@ -9,8 +9,11 @@ def __init__(self, name: str, age: int) -> None: def create_person_list(people: list) -> list: - result_list = [Person(name=person["name"], age=person["age"]) - for person in people] + result_list = [Person( + name=person["name"], + age=person["age"] + ) + for person in people] for index, person in enumerate(people): if person.get("wife") is not None: result_list[index].wife = Person.people[person["wife"]]