mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
[redis] Add CredentialProvider types to __init__.pyi (#9982)
This commit is contained in:
@@ -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, ...]
|
||||
|
||||
Reference in New Issue
Block a user