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
def registered_mixins(self, with_base: bool=False):
mxins = getattr(self, '_mixinreg', None)
if mxins:
mixins = getattr(self, '_mixinreg', None)
if mixins:
# filter out base
if not with_base and 'base' in mxins:
del mxins['base']
if not with_base and 'base' in mixins:
del mixins['base']
# only return dict
mxins = [a for a in mxins.values()]
return mxins
mixins = [a for a in mixins.values()]
return mixins
# region mixins
class SettingsMixin: