Skip to content

Commit 2405f09

Browse files
committed
add a return type to helper function
1 parent 18106de commit 2405f09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

implement-laptop-allocation/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Laptop:
2626
operating_system: OperatingSystem
2727

2828

29-
def sadness(person: Person, laptop: Laptop):
29+
def sadness(person: Person, laptop: Laptop) ->int:
3030
try:
3131
return person.preferred_operating_system.index(laptop.operating_system)
3232
except ValueError:

0 commit comments

Comments
 (0)