You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromtypingimportIteratorfromdissect.target.pluginimportexportfromdissect.target.plugins.apps.nsexample.nsexampleimportExampleNamespacePluginclassFooPlugin(ExampleNamespacePlugin):
"""Foo plugin."""__namespace__="foo"@export(output="yield")defhello(self) ->Iterator[str]:
"""hello from foo.example"""yield"hello from foo.example"classBarPlugin(ExampleNamespacePlugin):
"""Bar plugin."""__namespace__="bar"@export(output="yield")defhello(self) ->Iterator[str]:
"""hello from bar.example"""yield"hello from bar.example"
We would expect both foo.hello and bar.hello to be registered as plugins. However it seems only bar.hello is registered. the namespace plugin nsexample.hello does seem to pick up foo.hello.
Given the following setup:
*nsexample/nsexample.py*
*nsexample/foobar.py*
We would expect both
foo.hello
andbar.hello
to be registered as plugins. However it seems onlybar.hello
is registered. the namespace pluginnsexample.hello
does seem to pick upfoo.hello
.The text was updated successfully, but these errors were encountered: