From 76a70eae96d0390d1f9bbc162f0c039e3c75d884 Mon Sep 17 00:00:00 2001 From: Tomas Stary Date: Thu, 23 Feb 2023 23:22:22 +0100 Subject: [PATCH] Fix return type of functions in AbstractProductB (run 'mypy') --- src/AbstractFactory/Conceptual/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AbstractFactory/Conceptual/main.py b/src/AbstractFactory/Conceptual/main.py index e25a02c..9d1163e 100644 --- a/src/AbstractFactory/Conceptual/main.py +++ b/src/AbstractFactory/Conceptual/main.py @@ -116,7 +116,7 @@ class AbstractProductB(ABC): одной и той же конкретной вариации. """ @abstractmethod - def useful_function_b(self) -> None: + def useful_function_b(self) -> str: """ EN: Product B is able to do its own thing... @@ -125,7 +125,7 @@ def useful_function_b(self) -> None: pass @abstractmethod - def another_useful_function_b(self, collaborator: AbstractProductA) -> None: + def another_useful_function_b(self, collaborator: AbstractProductA) -> str: """ EN: ...but it also can collaborate with the ProductA.