We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 871fd8a commit 7f4e266Copy full SHA for 7f4e266
patterns/creational/abstract_factory.py
@@ -91,7 +91,7 @@ def main() -> None:
91
92
if __name__ == "__main__":
93
animals = ['dog', 'cat']
94
- random_animal: Pet = random.choice(animals)
+ random_animal: type[Pet] = random.choice(animals)
95
96
shop = PetShop(random_animal)
97
import doctest
0 commit comments