Skip to content

Commit 871fd8a

Browse files
committedMay 4, 2025
Added type to random_animal
1 parent 79a41c7 commit 871fd8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎patterns/creational/abstract_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def main() -> None:
9191

9292
if __name__ == "__main__":
9393
animals = ['dog', 'cat']
94-
random_animal = random.choice(animals)
94+
random_animal: Pet = random.choice(animals)
9595

9696
shop = PetShop(random_animal)
9797
import doctest

0 commit comments

Comments
 (0)
Please sign in to comment.