napari_plugin_engine/hooks.py
def call_with_result_obj(
        self, *, _skip_impls: List[HookImplementation] = list(), **kwargs
    ) -> HookResult:
        """Call hook implementation(s) for this spec and return HookResult.

        The :class:`HookResult` object carries the result (in its ``result``
        property) but also additional information about the hook call, such
        as the implementation that returned each result and any call errors.

        Parameters
        ----------
        _skip_impls : List[HookImplementation], optional
            A list of HookImplementation instances that should be *skipped* when calling
            hook implementations, by default None
        **kwargs
            keys should match the names of arguments in the corresponding hook
            specification, values will be passed as arguments to the hook
            implementations.

        Returns
        -------
        result : HookResult
            A :class:`HookResult` object that contains the results returned by
            plugins along with other metadata about the call.

        Raises
        ------
        HookCallError
            If one or more of the keys in ``kwargs`` is not present in
            one of the ``hook_impl.argnames``.
        PluginCallError
            If ``firstresult == True`` and a plugin raises an Exception.
        """
        # if not self.get_hookimpls():
        #     warnings.warn(
        #         'No hook implementations registered for this hook caller!'
        #     )
        self._check_call_kwargs(kwargs)
        impls = [imp for imp in self.get_hookimpls() if imp not in _skip_impls]
        return self._hookexec(self, impls, kwargs)
Call hook implementation(s) for this spec and return HookResult.

        The :class:`HookResult` object carries the result (in its ``result``
        property) but also additional information about the hook call, such
        as the implementation that returned each result and any call errors.

        Parameters
        ----------
        _skip_impls : List[HookImplementation], optional
            A list of HookImplementation instances that should be *skipped* when calling
            hook implementations, by default None
        **kwargs
            keys should match the names of arguments in the corresponding hook
            specification, values will be passed as arguments to the hook
            implementations.

        Returns
        -------
        result : HookResult
            A :class:`HookResult` object that contains the results returned by
            plugins along with other metadata about the call.

        Raises
        ------
        HookCallError
            If one or more of the keys in ``kwargs`` is not present in
            one of the ``hook_impl.argnames``.
        PluginCallError
            If ``firstresult == True`` and a plugin raises an Exception.
        
Call hook implementation(s) for this spec and return HookResult.

Parameters

_skip_impls : List[HookImplementation], optional
A list of HookImplementation instances that should be *skipped* when calling
hook implementations, by default None
kwargs
keys should match the names of arguments in the corresponding hook
specification, values will be passed as arguments to the hook
implementations.

Returns

result : HookResult
A :class:`HookResult` object that contains the results returned by
plugins along with other metadata about the call.

Raises


Call hook implementation ( s ) for this spec and return HookResult . Parameters _skip_impls : List [ HookImplementation ] optional A list of HookImplementation instances that should be * skipped * when calling hook implementations by default None kwargs keys should match the names of arguments in the corresponding hook specification values will be passed as arguments to the hook implementations . Returns result : HookResult A : class : ` HookResult ` object that contains the results returned by plugins along with other metadata about the call . Raises
def call_with_result_obj(
        self, *, _skip_impls: List[HookImplementation] = list(), **kwargs
    ) -> HookResult:
        self._check_call_kwargs(kwargs)
        impls = [imp for imp in self.get_hookimpls() if imp not in _skip_impls]
        return self._hookexec(self, impls, kwargs)
def call_with_result_obj ( self , * , _skip_impls : List [ HookImplementation ] = list ( ) , ** kwargs ) -> HookResult : self . _check_call_kwargs ( kwargs ) impls = [ imp for imp in self . get_hookimpls ( ) if imp not in _skip_impls ] return self . _hookexec ( self , impls , kwargs )
Call hook implementation(s) for this spec and return HookResult.
Call hook implementation ( s ) for this spec and return HookResult .
"""Call hook implementation(s) for this spec and return HookResult.

        The :class:`HookResult` object carries the result (in its ``result``
        property) but also additional information about the hook call, such
        as the implementation that returned each result and any call errors.

        Parameters
        ----------
        _skip_impls : List[HookImplementation], optional
            A list of HookImplementation instances that should be *skipped* when calling
            hook implementations, by default None
        **kwargs
            keys should match the names of arguments in the corresponding hook
            specification, values will be passed as arguments to the hook
            implementations.

        Returns
        -------
        result : HookResult
            A :class:`HookResult` object that contains the results returned by
            plugins along with other metadata about the call.

        Raises
        ------
        HookCallError
            If one or more of the keys in ``kwargs`` is not present in
            one of the ``hook_impl.argnames``.
        PluginCallError
            If ``firstresult == True`` and a plugin raises an Exception.
        """ # if not self.get_hookimpls(): #     warnings.warn( #         'No hook implementations registered for this hook caller!' #     )
self
_skip_impls
List[HookImplementation]