Skip to content

Commit 9f25002

Browse files
committed
refactoring the code
1 parent f4dfc05 commit 9f25002

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎sprint5-prep-exercises/prefOperatingSys.py‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,10 @@ def find_possible_laptops(laptops: List[Laptop], person: Person) -> List[Laptop]
3939

4040
for person in people:
4141
possible_laptops = find_possible_laptops(laptops, person)
42-
print(f"Possible laptops for {person.name}: {possible_laptops}")
42+
print(f"Possible laptops for {person.name}: {possible_laptops}")
43+
44+
45+
46+
# Yes, at first, when I changed str to list[str],
47+
# mypy showed errors as I expected because I was still passing strings instead of lists
48+
# Then I changed the field name to the plural form `preferred_operating_systems` to match the fact that it is now a list.

0 commit comments

Comments
 (0)