mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-02 11:40:58 +00:00
PEP fixes
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
Plugin mixin classes for action plugin
|
||||
"""
|
||||
|
||||
|
||||
class ActionMixin:
|
||||
"""
|
||||
Mixin that enables custom actions
|
||||
|
@ -63,7 +63,6 @@ class BarcodeMixin:
|
||||
|
||||
self.data = barcode_data
|
||||
|
||||
|
||||
def getStockItem(self):
|
||||
"""
|
||||
Attempt to retrieve a StockItem associated with this barcode.
|
||||
|
@ -185,6 +185,7 @@ class PluginsRegistry:
|
||||
logger.info(f'Collected {len(self.plugin_modules)} plugins!')
|
||||
logger.info(", ".join([a.__module__ for a in self.plugin_modules]))
|
||||
# endregion
|
||||
|
||||
# region registry functions
|
||||
def with_mixin(self, mixin: str):
|
||||
"""
|
||||
@ -544,4 +545,5 @@ class PluginsRegistry:
|
||||
get_plugin_error(error, do_raise=True)
|
||||
# endregion
|
||||
|
||||
|
||||
plugin_registry = PluginsRegistry()
|
||||
|
Reference in New Issue
Block a user