This commit is contained in:
hhh
2024-02-02 22:41:44 +02:00
commit 81f77f8bc3
11 changed files with 108 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
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']