This commit is contained in:
hhh
2024-02-02 22:39:03 +02:00
commit 398a55128e
9 changed files with 111 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
"""
Define mixins here
"""

View File

@@ -0,0 +1,22 @@
from abc import ABC, abstractmethod
class FirstAbstractMixin(ABC):
"""
You can force implementation developer to use mixins for logic
"""
@abstractmethod
def first_method(self) -> None:
...
class SecondAbstractMixin(ABC):
@abstractmethod
def second_method(self) -> None:
...
"""
Or just leave one abstractclass, that can be split into mixins by implementation
developer
"""