(
    target: Union[str, type, Callable[..., Any]]
)
Resolve target string, type or callable into type or callable.
Resolve target string, type or callable into type or callable.
Resolve target string type or callable into type or callable .
def _resolve_target(
    target: Union[str, type, Callable[..., Any]]
) -> Union[type, Callable[..., Any]]:
    """Resolve target string, type or callable into type or callable."""
    if isinstance(target, str):
        return _locate(target)
    if isinstance(target, type):
        return target
    if callable(target):
        return target
    raise InstantiationException(
        f"Unsupported target type: {type(target).__name__}. value: {target}"
    )
def _resolve_target ( target : Union [ str , type , Callable [ ... , Any ] ] ) -> Union [ type , Callable [ ... , Any ] ] : if isinstance ( target , str ) : return _locate ( target ) if isinstance ( target , type ) : return target if callable ( target ) : return target raise InstantiationException ( f"Unsupported target type: {type(target).__name__}. value: {target}" )