Skip to content

Commit 41da961

Browse files
authored
Update main.py
1 parent a0378c7 commit 41da961

File tree

1 file changed

+2
-2
lines changed
  • src/FactoryMethod/Conceptual

1 file changed

+2
-2
lines changed

src/FactoryMethod/Conceptual/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ class ConcreteCreator1(Creator):
8888
классов продуктов.
8989
"""
9090

91-
def factory_method(self) -> ConcreteProduct1:
91+
def factory_method(self) -> Product:
9292
return ConcreteProduct1()
9393

9494

9595
class ConcreteCreator2(Creator):
96-
def factory_method(self) -> ConcreteProduct2:
96+
def factory_method(self) -> Product:
9797
return ConcreteProduct2()
9898

9999

0 commit comments

Comments
 (0)