nox/sessions.py
def _run_func(
        self, func: Callable, args: Iterable[Any], kwargs: Mapping[str, Any]
    ) -> Any:
        """Legacy support for running a function through :func`run`."""
        self.log(f"{func}(args={args!r}, kwargs={kwargs!r})")
        try:
            return func(*args, **kwargs)
        except Exception as e:
            logger.exception(f"Function {func!r} raised {e!r}.")
            raise nox.command.CommandFailed()
Legacy support for running a function through :func`run`.
Legacy support for running a function through :func`run`.
Legacy support for running a function through : func ` run ` .
def _run_func(
        self, func: Callable, args: Iterable[Any], kwargs: Mapping[str, Any]
    ) -> Any:
        self.log(f"{func}(args={args!r}, kwargs={kwargs!r})")
        try:
            return func(*args, **kwargs)
        except Exception as e:
            logger.exception(f"Function {func!r} raised {e!r}.")
            raise nox.command.CommandFailed()
def _run_func ( self , func : Callable , args : Iterable [ Any ] , kwargs : Mapping [ str , Any ] ) -> Any : self . log ( f"{func}(args={args!r}, kwargs={kwargs!r})" ) try : return func ( * args , ** kwargs ) except Exception as e : logger . exception ( f"Function {func!r} raised {e!r}." ) raise nox . command . CommandFailed ( )
Legacy support for running a function through :func`run`.
Legacy support for running a function through : func ` run ` .
"""Legacy support for running a function through :func`run`."""
self
func
Callable
args
Iterable[Any]
kwargs
Mapping[str, Any]