Files
neko-demo-impl/neko_demo_impl/modules/ddd.py
2024-02-02 22:41:44 +02:00

28 lines
523 B
Python

from neko_demo_standard.neko.types import SomeOtherDemoClass
class FirstMixin:
first = 'first'
def first_method(self):
print(self.first)
class SecondMixin:
second = 'second'
def second_method(self):
print(self.second)
class RSomeOtherDemoClass(FirstMixin, SecondMixin, SomeOtherDemoClass):
"""
Original SomeOtherDemoClass does not involve implementation with mixins,
but it is possible
"""
SomeOtherDemoClass = RSomeOtherDemoClass
__all__ = ['SomeOtherDemoClass']