[redis] Add CredentialProvider types to __init__.pyi (#9982)

This commit is contained in:
Riley Flynn
2023-03-29 19:43:27 -02:30
committed by GitHub
parent 51cef77ac5
commit 509ba05c27

View File

@@ -1,4 +1,4 @@
from . import client, connection, exceptions, sentinel, utils
from . import client, connection, credentials, exceptions, sentinel, utils
from .cluster import RedisCluster as RedisCluster
__all__ = [
@@ -10,6 +10,7 @@ __all__ = [
"Connection",
"ConnectionError",
"ConnectionPool",
"CredentialProvider",
"DataError",
"from_url",
"InvalidResponse",
@@ -24,6 +25,7 @@ __all__ = [
"SentinelManagedConnection",
"SentinelManagedSSLConnection",
"SSLConnection",
"UsernamePasswordCredentialProvider",
"StrictRedis",
"TimeoutError",
"UnixDomainSocketConnection",
@@ -60,5 +62,8 @@ ResponseError = exceptions.ResponseError
TimeoutError = exceptions.TimeoutError
WatchError = exceptions.WatchError
CredentialProvider = credentials.CredentialProvider
UsernamePasswordCredentialProvider = credentials.UsernamePasswordCredentialProvider
__version__: str
VERSION: tuple[int | str, ...]