mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
PEP sytle fix
This commit is contained in:
parent
fc9796ae82
commit
0b2631c785
@ -34,8 +34,8 @@ class MixinBase:
|
|||||||
}
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def registered_mixins(self, with_base: bool=False):
|
def registered_mixins(self, with_base: bool = False):
|
||||||
mixins = getattr(self, '_mixinreg', None)
|
mixins = getattr(self, '_mixinreg', None)
|
||||||
if mixins:
|
if mixins:
|
||||||
# filter out base
|
# filter out base
|
||||||
if not with_base and 'base' in mixins:
|
if not with_base and 'base' in mixins:
|
||||||
@ -44,6 +44,7 @@ class MixinBase:
|
|||||||
mixins = [a for a in mixins.values()]
|
mixins = [a for a in mixins.values()]
|
||||||
return mixins
|
return mixins
|
||||||
|
|
||||||
|
|
||||||
# region mixins
|
# region mixins
|
||||||
class SettingsMixin:
|
class SettingsMixin:
|
||||||
"""Mixin that enables settings for the plugin"""
|
"""Mixin that enables settings for the plugin"""
|
||||||
|
Loading…
Reference in New Issue
Block a user