Skip to content

Commit

Permalink
solution py-feed-animals
Browse files Browse the repository at this point in the history
  • Loading branch information
Idyriv11 committed Aug 19, 2023
1 parent a163ea4 commit ea7fb12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def bring_slippers() -> None:
print("The slippers delivered!")


def feed_animals(animals: list) -> int:
def feed_animals(animals: list[Animal]) -> int:
return sum(
animal.feed() for animal in animals if animal.is_hungry
)

0 comments on commit ea7fb12

Please sign in to comment.