init
This commit is contained in:
27
neko_demo_impl/modules/ddd.py
Normal file
27
neko_demo_impl/modules/ddd.py
Normal 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']
|
||||
Reference in New Issue
Block a user