name refactor

This commit is contained in:
Matthias 2021-09-19 17:34:20 +02:00
parent 7130bacf95
commit 2bb68fadf7
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -35,14 +35,14 @@ class MixinBase:
@property @property
def registered_mixins(self, with_base: bool=False): def registered_mixins(self, with_base: bool=False):
mxins = getattr(self, '_mixinreg', None) mixins = getattr(self, '_mixinreg', None)
if mxins: if mixins:
# filter out base # filter out base
if not with_base and 'base' in mxins: if not with_base and 'base' in mixins:
del mxins['base'] del mixins['base']
# only return dict # only return dict
mxins = [a for a in mxins.values()] mixins = [a for a in mixins.values()]
return mxins return mixins
# region mixins # region mixins
class SettingsMixin: class SettingsMixin: