def get_requests_auth(auth: Optional[RawAuth], auth_type: Optional[str]) -> Optional[Union[(HTTPDigestAuth, RawAuth)]]:
    if (auth and (auth_type == 'digest')):
        return HTTPDigestAuth(*auth)
    return auth
def get_requests_auth(auth: Optional[RawAuth], auth_type: Optional[str]) -> Optional[Union[(HTTPDigestAuth, RawAuth)]]:
    if (auth and (auth_type == 'digest')):
        return HTTPDigestAuth(*auth)
    return auth