napari_plugin_engine/hooks.py
def call_historic(
        self, result_callback=None, kwargs=None, with_impl=False
    ):
        """Call the hook with given ``kwargs`` for all registered plugins and
        for all plugins which will be registered afterwards.

        If ``result_callback`` is not ``None`` it will be called for for each
        non-``None`` result obtained from a hook implementation.

        If ``with_impl`` is ``True``, the caller is indicating that
        ``result_callback`` has a signature of ``callback(result, hookimpl)``,
        and will be called as such.
        """
        if result_callback is not None:
            result_callback._wants_impl = with_impl
        self._call_history.append((kwargs or {}, result_callback))
        # historizing hooks don't return results
        res = self._hookexec(self, self.get_hookimpls(), kwargs)
        if result_callback is None:
            return
        # XXX: remember firstresult isn't compat with historic
        if with_impl:
            for result, impl in zip(res.result, res.implementation):
                result_callback(result, impl)
        else:
            for x in res.result or []:
                result_callback(x)
Call the hook with given ``kwargs`` for all registered plugins and
        for all plugins which will be registered afterwards.

        If ``result_callback`` is not ``None`` it will be called for for each
        non-``None`` result obtained from a hook implementation.

        If ``with_impl`` is ``True``, the caller is indicating that
        ``result_callback`` has a signature of ``callback(result, hookimpl)``,
        and will be called as such.
        
Call the hook with given ``kwargs`` for all registered plugins and
for all plugins which will be registered afterwards.




Call the hook with given ` ` kwargs ` ` for all registered plugins and for all plugins which will be registered afterwards .
def call_historic(
        self, result_callback=None, kwargs=None, with_impl=False
    ):
        if result_callback is not None:
            result_callback._wants_impl = with_impl
        self._call_history.append((kwargs or {}, result_callback))
        res = self._hookexec(self, self.get_hookimpls(), kwargs)
        if result_callback is None:
            return
        if with_impl:
            for result, impl in zip(res.result, res.implementation):
                result_callback(result, impl)
        else:
            for x in res.result or []:
                result_callback(x)
def call_historic ( self , result_callback = None , kwargs = None , with_impl = False ) : if result_callback is not None : result_callback . _wants_impl = with_impl self . _call_history . append ( ( kwargs or { } , result_callback ) ) res = self . _hookexec ( self , self . get_hookimpls ( ) , kwargs ) if result_callback is None : return if with_impl : for result , impl in zip ( res . result , res . implementation ) : result_callback ( result , impl ) else : for x in res . result or [ ] : result_callback ( x )
Call the hook with given ``kwargs`` for all registered plugins and
for all plugins which will be registered afterwards.
Call the hook with given ` ` kwargs ` ` for all registered plugins and for all plugins which will be registered afterwards .
"""Call the hook with given ``kwargs`` for all registered plugins and
        for all plugins which will be registered afterwards.

        If ``result_callback`` is not ``None`` it will be called for for each
        non-``None`` result obtained from a hook implementation.

        If ``with_impl`` is ``True``, the caller is indicating that
        ``result_callback`` has a signature of ``callback(result, hookimpl)``,
        and will be called as such.
        """ # historizing hooks don't return results # XXX: remember firstresult isn't compat with historic
self
result_callback
kwargs
with_impl