(self, name)
return decorated_plugin
Decorator to register a plugin.
Decorator to register a plugin.
Decorator to register a plugin .
def register(self, name):
        """Decorator to register a plugin."""
        def decorated_plugin(cls):
            self._plugins[name] = cls
            return cls
        return decorated_plugin
def register ( self , name ) : def decorated_plugin ( cls ) : self . _plugins [ name ] = cls return cls return decorated_plugin