def __call__(
        self,
        *args: typing.Union[typing.Callable[..., typing.Union["typing.Awaitable[typing.Any]", typing.Any]], typing.Any],
        **kwargs: typing.Any,
    ) -> typing.Any:
        """Main decorator getter."""
        l_args: typing.List[typing.Any] = list(args)

        if self._func:
            wrapped: typing.Callable[..., typing.Union["typing.Awaitable[typing.Any]", typing.Any]] = self._func
        else:
            wrapped = l_args.pop(0)

        wrapper: typing.Callable[..., typing.Any] = self._get_function_wrapper(wrapped)
        if self.__func:
            return wrapper(*l_args, **kwargs)
        return wrapper
def __call__ ( self , * args : typing . Union [ typing . Callable [ ... , typing . Union [ "typing.Awaitable[typing.Any]" , typing . Any ] ] , typing . Any ] , ** kwargs : typing . Any , ) -> typing . Any : l_args : typing . List [ typing . Any ] = list ( args ) if self . _func : wrapped : typing . Callable [ ... , typing . Union [ "typing.Awaitable[typing.Any]" , typing . Any ] ] = self . _func else : wrapped = l_args . pop ( 0 ) wrapper : typing . Callable [ ... , typing . Any ] = self . _get_function_wrapper ( wrapped ) if self . __func : return wrapper ( * l_args , ** kwargs ) return wrapper
Main decorator getter.