napari_plugin_engine/hooks.py
def _maybe_apply_history(self, method):
        """Apply call history to a new hookimpl if it is marked as historic."""
        if self.is_historic():
            for kwargs, result_callback in self._call_history:
                res = self._hookexec(self, [method], kwargs)
                if res.result and result_callback is not None:
                    if getattr(result_callback, '_wants_impl', False):
                        result_callback(res.result[0], res.implementation[0])
                    else:
                        result_callback(res.result[0])
Apply call history to a new hookimpl if it is marked as historic.
Apply call history to a new hookimpl if it is marked as historic.
Apply call history to a new hookimpl if it is marked as historic .
def _maybe_apply_history(self, method):
        if self.is_historic():
            for kwargs, result_callback in self._call_history:
                res = self._hookexec(self, [method], kwargs)
                if res.result and result_callback is not None:
                    if getattr(result_callback, '_wants_impl', False):
                        result_callback(res.result[0], res.implementation[0])
                    else:
                        result_callback(res.result[0])
def _maybe_apply_history ( self , method ) : if self . is_historic ( ) : for kwargs , result_callback in self . _call_history : res = self . _hookexec ( self , [ method ] , kwargs ) if res . result and result_callback is not None : if getattr ( result_callback , '_wants_impl' , False ) : result_callback ( res . result [ 0 ] , res . implementation [ 0 ] ) else : result_callback ( res . result [ 0 ] )
Apply call history to a new hookimpl if it is marked as historic.
Apply call history to a new hookimpl if it is marked as historic .
"""Apply call history to a new hookimpl if it is marked as historic."""
self
method