Skip to content
Snippets Groups Projects
Commit c6632a5d authored by Stefano Borini's avatar Stefano Borini
Browse files

ditto

parent 32c9cc2d
No related branches found
No related tags found
1 merge request!130Safer plugin import - 2
...@@ -41,7 +41,7 @@ class BaseNotificationListenerFactory(HasStrictTraits): ...@@ -41,7 +41,7 @@ class BaseNotificationListenerFactory(HasStrictTraits):
model_class = Type(BaseNotificationListenerModel, allow_none=False) model_class = Type(BaseNotificationListenerModel, allow_none=False)
#: A reference to the containing plugin #: A reference to the containing plugin
plugin = Instance(Plugin) plugin = Instance(Plugin, allow_none=False)
def __init__(self, plugin, *args, **kwargs): def __init__(self, plugin, *args, **kwargs):
"""Initializes the instance. """Initializes the instance.
......
...@@ -26,7 +26,7 @@ class BaseUIHooksFactory(ABCHasStrictTraits): ...@@ -26,7 +26,7 @@ class BaseUIHooksFactory(ABCHasStrictTraits):
ui_hooks_manager_class = Type(BaseUIHooksManager, allow_none=False) ui_hooks_manager_class = Type(BaseUIHooksManager, allow_none=False)
#: A reference to the containing plugin #: A reference to the containing plugin
plugin = Instance(Plugin) plugin = Instance(Plugin, allow_none=False)
def __init__(self, plugin, *args, **kwargs): def __init__(self, plugin, *args, **kwargs):
"""Initializes the instance. """Initializes the instance.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment