Files
neko-demo-std/neko_demo_std/__internal/some_internal_logic_mixins.py
2024-02-11 14:57:09 +02:00

23 lines
424 B
Python

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
"""