falcon_auth2/utils/functions.py
def check_backend(backend: Any):
    "Test if input is an AuthBackend"
    from ..backends import AuthBackend

    if not isinstance(backend, AuthBackend):
        raise TypeError(
            f"Invalid authentication backend {backend}. Expected a subclass of AuthBackend"
        )
Test if input is an AuthBackend
Test if input is an AuthBackend
Test if input is an AuthBackend
def check_backend(backend: Any):
    from ..backends import AuthBackend
    if not isinstance(backend, AuthBackend):
        raise TypeError(
            f"Invalid authentication backend {backend}. Expected a subclass of AuthBackend"
        )
def check_backend ( backend : Any ) : from . . backends import AuthBackend if not isinstance ( backend , AuthBackend ) : raise TypeError ( f"Invalid authentication backend {backend}. Expected a subclass of AuthBackend" )
Test if input is an AuthBackend
Test if input is an AuthBackend
"Test if input is an AuthBackend"
backend
Any