basedpyright 1.25.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pyright-langserver.js +1 -1
- package/dist/pyright-langserver.js.map +1 -1
- package/dist/pyright.js +1 -1
- package/dist/pyright.js.map +1 -1
- package/dist/typeshed-fallback/README.md +1 -1
- package/dist/typeshed-fallback/commit.txt +1 -1
- package/dist/typeshed-fallback/stdlib/VERSIONS +1 -0
- package/dist/typeshed-fallback/stdlib/_asyncio.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/_blake2.pyi +12 -12
- package/dist/typeshed-fallback/stdlib/_bz2.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/_collections_abc.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/_contextvars.pyi +5 -3
- package/dist/typeshed-fallback/stdlib/_csv.pyi +4 -4
- package/dist/typeshed-fallback/stdlib/_ctypes.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/_curses.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/_dummy_threading.pyi +19 -127
- package/dist/typeshed-fallback/stdlib/_frozen_importlib.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/_interpqueues.pyi +9 -6
- package/dist/typeshed-fallback/stdlib/_interpreters.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/_io.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/_json.pyi +5 -4
- package/dist/typeshed-fallback/stdlib/_lzma.pyi +16 -5
- package/dist/typeshed-fallback/stdlib/_pickle.pyi +286 -0
- package/dist/typeshed-fallback/stdlib/_sitebuiltins.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/_socket.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/_ssl.pyi +3 -4
- package/dist/typeshed-fallback/stdlib/_thread.pyi +87 -39
- package/dist/typeshed-fallback/stdlib/_tkinter.pyi +35 -20
- package/dist/typeshed-fallback/stdlib/_weakrefset.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/argparse.pyi +27 -20
- package/dist/typeshed-fallback/stdlib/array.pyi +13 -10
- package/dist/typeshed-fallback/stdlib/ast.pyi +24 -7
- package/dist/typeshed-fallback/stdlib/asyncio/__init__.pyi +1300 -0
- package/dist/typeshed-fallback/stdlib/asyncio/base_events.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/asyncio/coroutines.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/events.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/exceptions.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/futures.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/locks.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/proactor_events.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/protocols.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/queues.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/runners.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/selector_events.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/asyncio/streams.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/subprocess.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/taskgroups.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/tasks.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/threads.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/timeouts.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/transports.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/unix_events.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/asyncio/windows_events.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/builtins.pyi +21 -15
- package/dist/typeshed-fallback/stdlib/codecs.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/codeop.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/collections/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/concurrent/futures/process.pyi +12 -2
- package/dist/typeshed-fallback/stdlib/contextlib.pyi +21 -22
- package/dist/typeshed-fallback/stdlib/ctypes/__init__.pyi +69 -18
- package/dist/typeshed-fallback/stdlib/dataclasses.pyi +11 -3
- package/dist/typeshed-fallback/stdlib/datetime.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/decimal.pyi +0 -1
- package/dist/typeshed-fallback/stdlib/email/charset.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/email/header.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/email/headerregistry.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/fractions.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/gzip.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/http/__init__.pyi +15 -6
- package/dist/typeshed-fallback/stdlib/http/client.pyi +80 -58
- package/dist/typeshed-fallback/stdlib/inspect.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/ipaddress.pyi +5 -3
- package/dist/typeshed-fallback/stdlib/itertools.pyi +12 -12
- package/dist/typeshed-fallback/stdlib/json/scanner.pyi +4 -0
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/pgen.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/lib2to3/pytree.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/mmap.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/multiprocessing/managers.pyi +63 -17
- package/dist/typeshed-fallback/stdlib/multiprocessing/pool.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/multiprocessing/reduction.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/multiprocessing/synchronize.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/numbers.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/operator.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/optparse.pyi +89 -32
- package/dist/typeshed-fallback/stdlib/os/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/parser.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/pickle.pyi +51 -266
- package/dist/typeshed-fallback/stdlib/pickletools.pyi +8 -1
- package/dist/typeshed-fallback/stdlib/plistlib.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/sched.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/select.pyi +19 -13
- package/dist/typeshed-fallback/stdlib/selectors.pyi +5 -3
- package/dist/typeshed-fallback/stdlib/signal.pyi +47 -47
- package/dist/typeshed-fallback/stdlib/socket.pyi +8 -6
- package/dist/typeshed-fallback/stdlib/sqlite3/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/ssl.pyi +4 -0
- package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +9 -3
- package/dist/typeshed-fallback/stdlib/tarfile.pyi +24 -10
- package/dist/typeshed-fallback/stdlib/telnetlib.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/threading.pyi +6 -53
- package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +193 -3
- package/dist/typeshed-fallback/stdlib/tkinter/filedialog.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/tkinter/font.pyi +5 -4
- package/dist/typeshed-fallback/stdlib/token.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/tokenize.pyi +3 -4
- package/dist/typeshed-fallback/stdlib/traceback.pyi +17 -4
- package/dist/typeshed-fallback/stdlib/types.pyi +45 -10
- package/dist/typeshed-fallback/stdlib/typing.pyi +45 -47
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +53 -12
- package/dist/typeshed-fallback/stdlib/unittest/mock.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/unittest/runner.pyi +11 -12
- package/dist/typeshed-fallback/stdlib/unittest/suite.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/weakref.pyi +19 -5
- package/dist/typeshed-fallback/stdlib/xml/dom/minidom.pyi +5 -4
- package/dist/typeshed-fallback/stdlib/xml/sax/expatreader.pyi +53 -0
- package/dist/typeshed-fallback/stdlib/xmlrpc/client.pyi +4 -3
- package/dist/typeshed-fallback/stdlib/xxlimited.pyi +4 -2
- package/dist/typeshed-fallback/stdlib/zipfile/_path/glob.pyi +22 -0
- package/dist/typeshed-fallback/stdlib/zoneinfo/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/METADATA.toml +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/common/encoding.pyi +10 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/common/errors.pyi +26 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/common/security.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/common/urls.pyi +19 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/consts.pyi +8 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/deprecate.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/__init__.pyi +29 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/async_app.pyi +16 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/async_openid.pyi +8 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/errors.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/framework_integration.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/registry.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/sync_app.pyi +93 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/sync_openid.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/__init__.pyi +44 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/_jwe_algorithms.pyi +27 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/_jwe_enc_cryptodome.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/_jwe_enc_cryptography.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/errors.pyi +72 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/jwk.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/jws.pyi +14 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/models.pyi +25 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/__init__.pyi +9 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/jwe.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/models.pyi +56 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/__init__.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/_cryptography_key.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/asymmetric_key.pyi +39 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/base_key.pyi +28 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/jwk.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/key_set.pyi +10 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/__init__.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/ec_key.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_algs.pyi +64 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_encs.pyi +27 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_zips.pyi +9 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jws_algs.pyi +63 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/oct_key.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/rsa_key.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/util.pyi +2 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7519/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7519/claims.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7519/jwt.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc8037/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc8037/jws_eddsa.pyi +10 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc8037/okp_key.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/util.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/__init__.pyi +33 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/client.pyi +39 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/errors.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/__init__.pyi +35 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/authorization_server.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/base_server.pyi +12 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/client_auth.pyi +41 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/errors.pyi +56 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/models.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/parameters.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/resource_protector.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/rsa.pyi +2 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/signature.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/util.pyi +2 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/wrapper.pyi +33 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/__init__.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/auth.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/base.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/client.pyi +96 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/__init__.pyi +76 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/authenticate_client.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/authorization_server.pyi +46 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/errors.pyi +92 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/__init__.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/authorization_code.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/base.pyi +55 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/client_credentials.pyi +6 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/implicit.pyi +12 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/refresh_token.pyi +15 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/resource_owner_password_credentials.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/models.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/parameters.pyi +14 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/requests.pyi +48 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/resource_protector.pyi +19 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/token_endpoint.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/util.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/wrappers.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/__init__.pyi +15 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/errors.pyi +27 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/parameters.pyi +6 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/token.pyi +41 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/validator.pyi +6 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7009/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7009/parameters.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7009/revocation.pyi +9 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7521/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7521/client.pyi +39 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/__init__.pyi +18 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/assertion.pyi +19 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/auth.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/client.pyi +16 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/jwt_bearer.pyi +28 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/token.pyi +30 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/validator.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/__init__.pyi +17 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/claims.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/endpoint.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/errors.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7592/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7592/endpoint.pyi +26 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7636/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7636/challenge.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/__init__.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/introspection.pyi +11 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/models.pyi +8 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/token_validator.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8414/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8414/models.pyi +40 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8414/well_known.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/__init__.pyi +19 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/device_code.pyi +15 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/endpoint.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/errors.pyi +10 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/models.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8693/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/__init__.pyi +6 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/claims.pyi +16 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/introspection.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/revocation.pyi +9 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/token.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/token_validator.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/__init__.pyi +29 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/claims.pyi +37 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/errors.pyi +28 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/__init__.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/code.pyi +17 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/hybrid.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/implicit.pyi +16 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/util.pyi +18 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/models.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/util.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/discovery/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/discovery/models.pyi +36 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/discovery/well_known.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Flask-Migrate/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/Flask-Migrate/flask_migrate/__init__.pyi +2 -4
- package/dist/typeshed-fallback/stubs/Flask-SocketIO/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/Flask-SocketIO/flask_socketio/__init__.pyi +30 -4
- package/dist/typeshed-fallback/stubs/Markdown/markdown/core.pyi +2 -13
- package/dist/typeshed-fallback/stubs/PyAutoGUI/pyautogui/__init__.pyi +2 -2
- package/dist/typeshed-fallback/stubs/PyYAML/yaml/constructor.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Pygments/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/WebOb/webob/exc.pyi +1 -1
- package/dist/typeshed-fallback/stubs/click-log/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/click-log/click_log/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/click-log/click_log/core.pyi +15 -0
- package/dist/typeshed-fallback/stubs/click-log/click_log/options.pyi +12 -0
- package/dist/typeshed-fallback/stubs/click-web/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/__init__.pyi +16 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/exceptions.pyi +2 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/resources/cmd_exec.pyi +79 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/resources/cmd_form.pyi +6 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/resources/index.pyi +6 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/resources/input_fields.pyi +49 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/web_click_types.pyi +18 -0
- package/dist/typeshed-fallback/stubs/croniter/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/croniter/croniter/croniter.pyi +7 -0
- package/dist/typeshed-fallback/stubs/django-import-export/METADATA.toml +6 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/admin.pyi +114 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/exceptions.pyi +2 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/fields.pyi +34 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/formats/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/formats/base_formats.pyi +57 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/forms.pyi +31 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/instance_loaders.pyi +23 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/mixins.pyi +66 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/resources.pyi +232 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/results.pyi +73 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/signals.pyi +4 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/templatetags/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/templatetags/import_export_tags.pyi +8 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/tmp_storages.pyi +34 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/utils.pyi +18 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/widgets.pyi +66 -0
- package/dist/typeshed-fallback/stubs/docker/docker/models/containers.pyi +2 -2
- package/dist/typeshed-fallback/stubs/flake8-bugbear/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/fpdf2/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/__init__.pyi +2 -0
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/annotations.pyi +2 -2
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/enums.pyi +50 -4
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fonts.pyi +3 -3
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fpdf.pyi +53 -18
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/html.pyi +2 -0
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/image_parsing.pyi +10 -2
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/line_break.pyi +9 -3
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/outline.pyi +21 -0
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/output.pyi +19 -0
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/prefs.pyi +38 -4
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/table.pyi +13 -1
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/util.pyi +1 -0
- package/dist/typeshed-fallback/stubs/gdb/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/gdb/gdb/__init__.pyi +126 -9
- package/dist/typeshed-fallback/stubs/gdb/gdb/unwinder.pyi +2 -3
- package/dist/typeshed-fallback/stubs/gevent/gevent/select.pyi +7 -2
- package/dist/typeshed-fallback/stubs/hdbcli/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/ibm-db/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/ibm-db/ibm_db.pyi +11 -1
- package/dist/typeshed-fallback/stubs/icalendar/METADATA.toml +1 -5
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/tzp.pyi +1 -1
- package/dist/typeshed-fallback/stubs/jsonschema/METADATA.toml +0 -2
- package/dist/typeshed-fallback/stubs/jwcrypto/jwcrypto/jwk.pyi +4 -4
- package/dist/typeshed-fallback/stubs/lupa/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/httpclient.pyi +1 -1
- package/dist/typeshed-fallback/stubs/nanoleafapi/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/__init__.pyi +16 -0
- package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/digital_twin.pyi +12 -0
- package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/discovery.pyi +1 -0
- package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/nanoleaf.pyi +68 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multidigraph.pyi +1 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/styles/cell_style.pyi +1 -1
- package/dist/typeshed-fallback/stubs/peewee/peewee.pyi +4 -4
- package/dist/typeshed-fallback/stubs/pexpect/pexpect/pty_spawn.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pika/pika/credentials.pyi +10 -7
- package/dist/typeshed-fallback/stubs/polib/polib.pyi +3 -2
- package/dist/typeshed-fallback/stubs/protobuf/METADATA.toml +2 -2
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/api_pb2.pyi +1 -1
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/descriptor_pb2.pyi +4 -8
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/runtime_version.pyi +23 -0
- package/dist/typeshed-fallback/stubs/pycocotools/METADATA.toml +1 -0
- package/dist/typeshed-fallback/stubs/pycocotools/pycocotools/coco.pyi +6 -11
- package/dist/typeshed-fallback/stubs/pycocotools/pycocotools/cocoeval.pyi +16 -30
- package/dist/typeshed-fallback/stubs/pycocotools/pycocotools/mask.pyi +7 -9
- package/dist/typeshed-fallback/stubs/pycurl/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pycurl/pycurl.pyi +33 -32
- package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/_base.pyi +65 -65
- package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/relativedelta.pyi +3 -11
- package/dist/typeshed-fallback/stubs/pywin32/_win32typing.pyi +3 -3
- package/dist/typeshed-fallback/stubs/qrbill/qrbill/bill.pyi +2 -2
- package/dist/typeshed-fallback/stubs/requests-oauthlib/requests_oauthlib/oauth1_auth.pyi +1 -1
- package/dist/typeshed-fallback/stubs/seaborn/METADATA.toml +1 -11
- package/dist/typeshed-fallback/stubs/seaborn/seaborn/algorithms.pyi +13 -13
- package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/cmd.pyi +5 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/bdist.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_data.pyi +2 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/dist.pyi +21 -21
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/extension.pyi +3 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/extension.pyi +2 -3
- package/dist/typeshed-fallback/stubs/shapely/shapely/_enum.pyi +1 -1
- package/dist/typeshed-fallback/stubs/six/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/tabulate/tabulate/__init__.pyi +2 -1
- package/dist/typeshed-fallback/stubs/tqdm/tqdm/asyncio.pyi +2 -2
- package/dist/typeshed-fallback/stubs/vobject/METADATA.toml +2 -2
- package/dist/typeshed-fallback/stubs/vobject/vobject/__init__.pyi +2 -4
- package/dist/typeshed-fallback/stubs/vobject/vobject/base.pyi +26 -24
- package/dist/typeshed-fallback/stubs/vobject/vobject/behavior.pyi +5 -4
- package/dist/typeshed-fallback/stubs/vobject/vobject/icalendar.pyi +28 -37
- package/dist/typeshed-fallback/stubs/vobject/vobject/vcard.pyi +20 -20
- package/dist/typeshed-fallback/stubs/vobject/vobject/win32tz.pyi +22 -22
- package/package.json +1 -1
- package/dist/typeshed-fallback/stubs/python-gflags/METADATA.toml +0 -2
- package/dist/typeshed-fallback/stubs/python-gflags/gflags.pyi +0 -309
- package/dist/typeshed-fallback/stubs/redis/METADATA.toml +0 -12
- package/dist/typeshed-fallback/stubs/redis/redis/__init__.pyi +0 -72
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/__init__.pyi +0 -64
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/client.pyi +0 -1091
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/cluster.pyi +0 -229
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/connection.pyi +0 -363
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/lock.pyi +0 -51
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/parser.pyi +0 -9
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/retry.pyi +0 -12
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/sentinel.pyi +0 -162
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/utils.pyi +0 -15
- package/dist/typeshed-fallback/stubs/redis/redis/backoff.pyi +0 -31
- package/dist/typeshed-fallback/stubs/redis/redis/client.pyi +0 -817
- package/dist/typeshed-fallback/stubs/redis/redis/cluster.pyi +0 -265
- package/dist/typeshed-fallback/stubs/redis/redis/commands/__init__.pyi +0 -17
- package/dist/typeshed-fallback/stubs/redis/redis/commands/bf/__init__.pyi +0 -58
- package/dist/typeshed-fallback/stubs/redis/redis/commands/bf/commands.pyi +0 -112
- package/dist/typeshed-fallback/stubs/redis/redis/commands/bf/info.pyi +0 -43
- package/dist/typeshed-fallback/stubs/redis/redis/commands/cluster.pyi +0 -60
- package/dist/typeshed-fallback/stubs/redis/redis/commands/core.pyi +0 -1743
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/__init__.pyi +0 -26
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/commands.pyi +0 -25
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/edge.pyi +0 -14
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/exceptions.pyi +0 -5
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/node.pyi +0 -18
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/path.pyi +0 -18
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/query_result.pyi +0 -74
- package/dist/typeshed-fallback/stubs/redis/redis/commands/helpers.pyi +0 -10
- package/dist/typeshed-fallback/stubs/redis/redis/commands/json/__init__.pyi +0 -15
- package/dist/typeshed-fallback/stubs/redis/redis/commands/json/commands.pyi +0 -32
- package/dist/typeshed-fallback/stubs/redis/redis/commands/json/decoders.pyi +0 -4
- package/dist/typeshed-fallback/stubs/redis/redis/commands/json/path.pyi +0 -5
- package/dist/typeshed-fallback/stubs/redis/redis/commands/parser.pyi +0 -8
- package/dist/typeshed-fallback/stubs/redis/redis/commands/redismodules.pyi +0 -14
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/__init__.pyi +0 -22
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/aggregation.pyi +0 -53
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/commands.pyi +0 -111
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/query.pyi +0 -52
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/result.pyi +0 -7
- package/dist/typeshed-fallback/stubs/redis/redis/commands/sentinel.pyi +0 -17
- package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/__init__.pyi +0 -14
- package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/commands.pyi +0 -160
- package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/info.pyi +0 -18
- package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/utils.pyi +0 -5
- package/dist/typeshed-fallback/stubs/redis/redis/connection.pyi +0 -289
- package/dist/typeshed-fallback/stubs/redis/redis/crc.pyi +0 -5
- package/dist/typeshed-fallback/stubs/redis/redis/credentials.pyi +0 -11
- package/dist/typeshed-fallback/stubs/redis/redis/exceptions.pyi +0 -42
- package/dist/typeshed-fallback/stubs/redis/redis/lock.pyi +0 -56
- package/dist/typeshed-fallback/stubs/redis/redis/ocsp.pyi +0 -21
- package/dist/typeshed-fallback/stubs/redis/redis/retry.pyi +0 -11
- package/dist/typeshed-fallback/stubs/redis/redis/sentinel.pyi +0 -62
- package/dist/typeshed-fallback/stubs/redis/redis/typing.pyi +0 -34
- package/dist/typeshed-fallback/stubs/redis/redis/utils.pyi +0 -22
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py310.pyi +0 -9
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py311.pyi +0 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py312.pyi +0 -3
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py39.pyi +0 -7
- /package/dist/typeshed-fallback/stdlib/zipfile/{_path.pyi → _path/__init__.pyi} +0 -0
- /package/dist/typeshed-fallback/stubs/{setuptools/setuptools/compat → Authlib/authlib/common}/__init__.pyi +0 -0
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from collections.abc import Awaitable, Callable, Mapping
|
|
3
|
-
from types import TracebackType
|
|
4
|
-
from typing import Any, Generic, TypeVar
|
|
5
|
-
from typing_extensions import Self
|
|
6
|
-
|
|
7
|
-
from redis.asyncio.client import ResponseCallbackT
|
|
8
|
-
from redis.asyncio.connection import AbstractConnection, BaseParser, Connection, Encoder
|
|
9
|
-
from redis.asyncio.parser import CommandsParser
|
|
10
|
-
from redis.client import AbstractRedis
|
|
11
|
-
from redis.cluster import AbstractRedisCluster, LoadBalancer
|
|
12
|
-
|
|
13
|
-
# TODO: add AsyncRedisClusterCommands stubs
|
|
14
|
-
# from redis.commands import AsyncRedisClusterCommands
|
|
15
|
-
from redis.commands.core import _StrType
|
|
16
|
-
from redis.credentials import CredentialProvider
|
|
17
|
-
from redis.exceptions import ResponseError
|
|
18
|
-
from redis.retry import Retry
|
|
19
|
-
from redis.typing import AnyKeyT, EncodableT, KeyT
|
|
20
|
-
|
|
21
|
-
TargetNodesT = TypeVar("TargetNodesT", str, ClusterNode, list[ClusterNode], dict[Any, ClusterNode]) # noqa: Y001
|
|
22
|
-
|
|
23
|
-
# It uses `DefaultParser` in real life, but it is a dynamic base class.
|
|
24
|
-
class ClusterParser(BaseParser):
|
|
25
|
-
def on_disconnect(self) -> None: ...
|
|
26
|
-
def on_connect(self, connection: AbstractConnection) -> None: ...
|
|
27
|
-
async def can_read_destructive(self) -> bool: ...
|
|
28
|
-
async def read_response(self, disable_decoding: bool = False) -> EncodableT | ResponseError | list[EncodableT] | None: ...
|
|
29
|
-
|
|
30
|
-
class RedisCluster(AbstractRedis, AbstractRedisCluster, Generic[_StrType]): # TODO: AsyncRedisClusterCommands
|
|
31
|
-
@classmethod
|
|
32
|
-
def from_url(
|
|
33
|
-
cls,
|
|
34
|
-
url: str,
|
|
35
|
-
*,
|
|
36
|
-
host: str | None = None,
|
|
37
|
-
port: str | int = 6379,
|
|
38
|
-
# Cluster related kwargs
|
|
39
|
-
startup_nodes: list[ClusterNode] | None = None,
|
|
40
|
-
require_full_coverage: bool = True,
|
|
41
|
-
read_from_replicas: bool = False,
|
|
42
|
-
reinitialize_steps: int = 5,
|
|
43
|
-
cluster_error_retry_attempts: int = 3,
|
|
44
|
-
connection_error_retry_attempts: int = 3,
|
|
45
|
-
max_connections: int = 2147483648,
|
|
46
|
-
# Client related kwargs
|
|
47
|
-
db: str | int = 0,
|
|
48
|
-
path: str | None = None,
|
|
49
|
-
credential_provider: CredentialProvider | None = None,
|
|
50
|
-
username: str | None = None,
|
|
51
|
-
password: str | None = None,
|
|
52
|
-
client_name: str | None = None,
|
|
53
|
-
# Encoding related kwargs
|
|
54
|
-
encoding: str = "utf-8",
|
|
55
|
-
encoding_errors: str = "strict",
|
|
56
|
-
decode_responses: bool = False,
|
|
57
|
-
# Connection related kwargs
|
|
58
|
-
health_check_interval: float = 0,
|
|
59
|
-
socket_connect_timeout: float | None = None,
|
|
60
|
-
socket_keepalive: bool = False,
|
|
61
|
-
socket_keepalive_options: Mapping[int, int | bytes] | None = None,
|
|
62
|
-
socket_timeout: float | None = None,
|
|
63
|
-
retry: Retry | None = None,
|
|
64
|
-
retry_on_error: list[Exception] | None = None,
|
|
65
|
-
# SSL related kwargs
|
|
66
|
-
ssl: bool = False,
|
|
67
|
-
ssl_ca_certs: str | None = None,
|
|
68
|
-
ssl_ca_data: str | None = None,
|
|
69
|
-
ssl_cert_reqs: str = "required",
|
|
70
|
-
ssl_certfile: str | None = None,
|
|
71
|
-
ssl_check_hostname: bool = False,
|
|
72
|
-
ssl_keyfile: str | None = None,
|
|
73
|
-
address_remap: Callable[[str, int], tuple[str, int]] | None = None,
|
|
74
|
-
) -> Self: ...
|
|
75
|
-
|
|
76
|
-
retry: Retry | None
|
|
77
|
-
connection_kwargs: dict[str, Any]
|
|
78
|
-
nodes_manager: NodesManager
|
|
79
|
-
encoder: Encoder
|
|
80
|
-
read_from_replicas: bool
|
|
81
|
-
reinitialize_steps: int
|
|
82
|
-
cluster_error_retry_attempts: int
|
|
83
|
-
reinitialize_counter: int
|
|
84
|
-
commands_parser: CommandsParser
|
|
85
|
-
node_flags: set[str]
|
|
86
|
-
command_flags: dict[str, str]
|
|
87
|
-
response_callbacks: Incomplete
|
|
88
|
-
result_callbacks: dict[str, Callable[[Incomplete, Incomplete], Incomplete]]
|
|
89
|
-
|
|
90
|
-
def __init__(
|
|
91
|
-
self,
|
|
92
|
-
host: str | None = None,
|
|
93
|
-
port: str | int = 6379,
|
|
94
|
-
# Cluster related kwargs
|
|
95
|
-
startup_nodes: list[ClusterNode] | None = None,
|
|
96
|
-
require_full_coverage: bool = True,
|
|
97
|
-
read_from_replicas: bool = False,
|
|
98
|
-
reinitialize_steps: int = 5,
|
|
99
|
-
cluster_error_retry_attempts: int = 3,
|
|
100
|
-
connection_error_retry_attempts: int = 3,
|
|
101
|
-
max_connections: int = 2147483648,
|
|
102
|
-
# Client related kwargs
|
|
103
|
-
db: str | int = 0,
|
|
104
|
-
path: str | None = None,
|
|
105
|
-
credential_provider: CredentialProvider | None = None,
|
|
106
|
-
username: str | None = None,
|
|
107
|
-
password: str | None = None,
|
|
108
|
-
client_name: str | None = None,
|
|
109
|
-
# Encoding related kwargs
|
|
110
|
-
encoding: str = "utf-8",
|
|
111
|
-
encoding_errors: str = "strict",
|
|
112
|
-
decode_responses: bool = False,
|
|
113
|
-
# Connection related kwargs
|
|
114
|
-
health_check_interval: float = 0,
|
|
115
|
-
socket_connect_timeout: float | None = None,
|
|
116
|
-
socket_keepalive: bool = False,
|
|
117
|
-
socket_keepalive_options: Mapping[int, int | bytes] | None = None,
|
|
118
|
-
socket_timeout: float | None = None,
|
|
119
|
-
retry: Retry | None = None,
|
|
120
|
-
retry_on_error: list[Exception] | None = None,
|
|
121
|
-
# SSL related kwargs
|
|
122
|
-
ssl: bool = False,
|
|
123
|
-
ssl_ca_certs: str | None = None,
|
|
124
|
-
ssl_ca_data: str | None = None,
|
|
125
|
-
ssl_cert_reqs: str = "required",
|
|
126
|
-
ssl_certfile: str | None = None,
|
|
127
|
-
ssl_check_hostname: bool = False,
|
|
128
|
-
ssl_keyfile: str | None = None,
|
|
129
|
-
address_remap: Callable[[str, int], tuple[str, int]] | None = None,
|
|
130
|
-
) -> None: ...
|
|
131
|
-
async def initialize(self) -> Self: ...
|
|
132
|
-
async def close(self) -> None: ...
|
|
133
|
-
async def __aenter__(self) -> Self: ...
|
|
134
|
-
async def __aexit__(
|
|
135
|
-
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None
|
|
136
|
-
) -> None: ...
|
|
137
|
-
def __await__(self) -> Awaitable[Self]: ...
|
|
138
|
-
def __del__(self) -> None: ...
|
|
139
|
-
async def on_connect(self, connection: Connection) -> None: ...
|
|
140
|
-
def get_nodes(self) -> list[ClusterNode]: ...
|
|
141
|
-
def get_primaries(self) -> list[ClusterNode]: ...
|
|
142
|
-
def get_replicas(self) -> list[ClusterNode]: ...
|
|
143
|
-
def get_random_node(self) -> ClusterNode: ...
|
|
144
|
-
def get_default_node(self) -> ClusterNode: ...
|
|
145
|
-
def set_default_node(self, node: ClusterNode) -> None: ...
|
|
146
|
-
def get_node(self, host: str | None = None, port: int | None = None, node_name: str | None = None) -> ClusterNode | None: ...
|
|
147
|
-
def get_node_from_key(self, key: str, replica: bool = False) -> ClusterNode | None: ...
|
|
148
|
-
def keyslot(self, key: EncodableT) -> int: ...
|
|
149
|
-
def get_encoder(self) -> Encoder: ...
|
|
150
|
-
def get_connection_kwargs(self) -> dict[str, Any | None]: ...
|
|
151
|
-
def set_response_callback(self, command: str, callback: ResponseCallbackT) -> None: ...
|
|
152
|
-
async def execute_command(self, *args: EncodableT, **kwargs: Any) -> Any: ...
|
|
153
|
-
def pipeline(self, transaction: Any | None = None, shard_hint: Any | None = None) -> ClusterPipeline[_StrType]: ...
|
|
154
|
-
|
|
155
|
-
class ClusterNode:
|
|
156
|
-
host: str
|
|
157
|
-
port: str | int
|
|
158
|
-
name: str
|
|
159
|
-
server_type: str | None
|
|
160
|
-
max_connections: int
|
|
161
|
-
connection_class: type[Connection]
|
|
162
|
-
connection_kwargs: dict[str, Any]
|
|
163
|
-
response_callbacks: dict[Incomplete, Incomplete]
|
|
164
|
-
def __init__(
|
|
165
|
-
self,
|
|
166
|
-
host: str,
|
|
167
|
-
port: str | int,
|
|
168
|
-
server_type: str | None = None,
|
|
169
|
-
*,
|
|
170
|
-
max_connections: int = 2147483648,
|
|
171
|
-
connection_class: type[Connection] = ...,
|
|
172
|
-
**connection_kwargs: Any,
|
|
173
|
-
) -> None: ...
|
|
174
|
-
def __eq__(self, obj: object) -> bool: ...
|
|
175
|
-
def __del__(self) -> None: ...
|
|
176
|
-
async def disconnect(self) -> None: ...
|
|
177
|
-
def acquire_connection(self) -> Connection: ...
|
|
178
|
-
async def parse_response(self, connection: Connection, command: str, **kwargs: Any) -> Any: ...
|
|
179
|
-
async def execute_command(self, *args: Any, **kwargs: Any) -> Any: ...
|
|
180
|
-
async def execute_pipeline(self, commands: list[PipelineCommand]) -> bool: ...
|
|
181
|
-
|
|
182
|
-
class NodesManager:
|
|
183
|
-
startup_nodes: dict[str, ClusterNode]
|
|
184
|
-
require_full_coverage: bool
|
|
185
|
-
connection_kwargs: dict[str, Any]
|
|
186
|
-
default_node: ClusterNode | None
|
|
187
|
-
nodes_cache: dict[str, ClusterNode]
|
|
188
|
-
slots_cache: dict[int, list[ClusterNode]]
|
|
189
|
-
read_load_balancer: LoadBalancer
|
|
190
|
-
address_remap: Callable[[str, int], tuple[str, int]] | None
|
|
191
|
-
def __init__(
|
|
192
|
-
self,
|
|
193
|
-
startup_nodes: list[ClusterNode],
|
|
194
|
-
require_full_coverage: bool,
|
|
195
|
-
connection_kwargs: dict[str, Any],
|
|
196
|
-
address_remap: Callable[[str, int], tuple[str, int]] | None = None,
|
|
197
|
-
) -> None: ...
|
|
198
|
-
def get_node(self, host: str | None = None, port: int | None = None, node_name: str | None = None) -> ClusterNode | None: ...
|
|
199
|
-
def set_nodes(self, old: dict[str, ClusterNode], new: dict[str, ClusterNode], remove_old: bool = False) -> None: ...
|
|
200
|
-
def get_node_from_slot(self, slot: int, read_from_replicas: bool = False) -> ClusterNode: ...
|
|
201
|
-
def get_nodes_by_server_type(self, server_type: str) -> list[ClusterNode]: ...
|
|
202
|
-
async def initialize(self) -> None: ...
|
|
203
|
-
async def close(self, attr: str = "nodes_cache") -> None: ...
|
|
204
|
-
def remap_host_port(self, host: str, port: int) -> tuple[str, int]: ...
|
|
205
|
-
|
|
206
|
-
class ClusterPipeline(AbstractRedis, AbstractRedisCluster, Generic[_StrType]): # TODO: AsyncRedisClusterCommands
|
|
207
|
-
def __init__(self, client: RedisCluster[_StrType]) -> None: ...
|
|
208
|
-
async def initialize(self) -> Self: ...
|
|
209
|
-
async def __aenter__(self) -> Self: ...
|
|
210
|
-
async def __aexit__(
|
|
211
|
-
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None
|
|
212
|
-
) -> None: ...
|
|
213
|
-
def __await__(self) -> Awaitable[Self]: ...
|
|
214
|
-
def __enter__(self) -> Self: ...
|
|
215
|
-
def __exit__(
|
|
216
|
-
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None
|
|
217
|
-
) -> None: ...
|
|
218
|
-
def __bool__(self) -> bool: ...
|
|
219
|
-
def __len__(self) -> int: ...
|
|
220
|
-
def execute_command(self, *args: KeyT | EncodableT, **kwargs: Any) -> Self: ...
|
|
221
|
-
async def execute(self, raise_on_error: bool = True, allow_redirections: bool = True) -> list[Any]: ...
|
|
222
|
-
def mset_nonatomic(self, mapping: Mapping[AnyKeyT, EncodableT]) -> Self: ...
|
|
223
|
-
|
|
224
|
-
class PipelineCommand:
|
|
225
|
-
args: Any
|
|
226
|
-
kwargs: Any
|
|
227
|
-
position: int
|
|
228
|
-
result: Exception | None | Any
|
|
229
|
-
def __init__(self, position: int, *args: Any, **kwargs: Any) -> None: ...
|
|
@@ -1,363 +0,0 @@
|
|
|
1
|
-
import asyncio
|
|
2
|
-
import enum
|
|
3
|
-
import ssl
|
|
4
|
-
from _typeshed import Unused
|
|
5
|
-
from abc import abstractmethod
|
|
6
|
-
from collections.abc import Callable, Iterable, Mapping
|
|
7
|
-
from types import MappingProxyType
|
|
8
|
-
from typing import Any, Final, Generic, Literal, Protocol, TypedDict, TypeVar, overload
|
|
9
|
-
from typing_extensions import Self, TypeAlias
|
|
10
|
-
|
|
11
|
-
from redis.asyncio.retry import Retry
|
|
12
|
-
from redis.credentials import CredentialProvider
|
|
13
|
-
from redis.exceptions import AuthenticationError, RedisError, ResponseError
|
|
14
|
-
from redis.typing import EncodableT, EncodedT
|
|
15
|
-
|
|
16
|
-
_SSLVerifyMode: TypeAlias = Literal["none", "optional", "required"]
|
|
17
|
-
|
|
18
|
-
SYM_STAR: Final[bytes]
|
|
19
|
-
SYM_DOLLAR: Final[bytes]
|
|
20
|
-
SYM_CRLF: Final[bytes]
|
|
21
|
-
SYM_LF: Final[bytes]
|
|
22
|
-
SYM_EMPTY: Final[bytes]
|
|
23
|
-
|
|
24
|
-
SERVER_CLOSED_CONNECTION_ERROR: Final[str]
|
|
25
|
-
|
|
26
|
-
class _Sentinel(enum.Enum):
|
|
27
|
-
sentinel = object()
|
|
28
|
-
|
|
29
|
-
SENTINEL: Final[object]
|
|
30
|
-
MODULE_LOAD_ERROR: Final[str]
|
|
31
|
-
NO_SUCH_MODULE_ERROR: Final[str]
|
|
32
|
-
MODULE_UNLOAD_NOT_POSSIBLE_ERROR: Final[str]
|
|
33
|
-
MODULE_EXPORTS_DATA_TYPES_ERROR: Final[str]
|
|
34
|
-
NO_AUTH_SET_ERROR: Final[dict[str, type[AuthenticationError]]]
|
|
35
|
-
|
|
36
|
-
class Encoder:
|
|
37
|
-
encoding: str
|
|
38
|
-
encoding_errors: str
|
|
39
|
-
decode_responses: bool
|
|
40
|
-
def __init__(self, encoding: str, encoding_errors: str, decode_responses: bool) -> None: ...
|
|
41
|
-
def encode(self, value: EncodableT) -> EncodedT: ...
|
|
42
|
-
def decode(self, value: EncodableT, force: bool = False) -> EncodableT: ...
|
|
43
|
-
|
|
44
|
-
ExceptionMappingT: TypeAlias = Mapping[str, type[Exception] | Mapping[str, type[Exception]]]
|
|
45
|
-
|
|
46
|
-
class BaseParser:
|
|
47
|
-
EXCEPTION_CLASSES: ExceptionMappingT
|
|
48
|
-
def __init__(self, socket_read_size: int) -> None: ...
|
|
49
|
-
@classmethod
|
|
50
|
-
def parse_error(cls, response: str) -> ResponseError: ...
|
|
51
|
-
@abstractmethod
|
|
52
|
-
def on_disconnect(self) -> None: ...
|
|
53
|
-
@abstractmethod
|
|
54
|
-
def on_connect(self, connection: AbstractConnection) -> None: ...
|
|
55
|
-
@abstractmethod
|
|
56
|
-
async def can_read_destructive(self) -> bool: ...
|
|
57
|
-
@abstractmethod
|
|
58
|
-
async def read_response(self, disable_decoding: bool = False) -> EncodableT | ResponseError | list[EncodableT] | None: ...
|
|
59
|
-
|
|
60
|
-
class PythonParser(BaseParser):
|
|
61
|
-
encoder: Encoder | None
|
|
62
|
-
def __init__(self, socket_read_size: int) -> None: ...
|
|
63
|
-
def on_connect(self, connection: AbstractConnection) -> None: ...
|
|
64
|
-
def on_disconnect(self) -> None: ...
|
|
65
|
-
async def can_read_destructive(self) -> bool: ...
|
|
66
|
-
async def read_response(self, disable_decoding: bool = False) -> EncodableT | ResponseError | None: ...
|
|
67
|
-
|
|
68
|
-
class HiredisParser(BaseParser):
|
|
69
|
-
def __init__(self, socket_read_size: int) -> None: ...
|
|
70
|
-
def on_connect(self, connection: AbstractConnection) -> None: ...
|
|
71
|
-
def on_disconnect(self) -> None: ...
|
|
72
|
-
async def can_read_destructive(self) -> bool: ...
|
|
73
|
-
async def read_from_socket(self) -> Literal[True]: ...
|
|
74
|
-
async def read_response(self, disable_decoding: bool = False) -> EncodableT | list[EncodableT]: ...
|
|
75
|
-
|
|
76
|
-
DefaultParser: type[PythonParser | HiredisParser]
|
|
77
|
-
|
|
78
|
-
class ConnectCallbackProtocol(Protocol):
|
|
79
|
-
def __call__(self, connection: Connection): ...
|
|
80
|
-
|
|
81
|
-
class AsyncConnectCallbackProtocol(Protocol):
|
|
82
|
-
async def __call__(self, connection: Connection): ...
|
|
83
|
-
|
|
84
|
-
ConnectCallbackT: TypeAlias = ConnectCallbackProtocol | AsyncConnectCallbackProtocol
|
|
85
|
-
|
|
86
|
-
class AbstractConnection:
|
|
87
|
-
pid: int
|
|
88
|
-
db: str | int
|
|
89
|
-
client_name: str | None
|
|
90
|
-
credential_provider: CredentialProvider | None
|
|
91
|
-
password: str | None
|
|
92
|
-
username: str | None
|
|
93
|
-
socket_timeout: float | None
|
|
94
|
-
socket_connect_timeout: float | None
|
|
95
|
-
retry_on_timeout: bool
|
|
96
|
-
retry_on_error: list[type[Exception]]
|
|
97
|
-
retry: Retry
|
|
98
|
-
health_check_interval: float
|
|
99
|
-
next_health_check: float
|
|
100
|
-
encoder: Encoder
|
|
101
|
-
redis_connect_func: ConnectCallbackT | None
|
|
102
|
-
|
|
103
|
-
def __init__(
|
|
104
|
-
self,
|
|
105
|
-
*,
|
|
106
|
-
db: str | int = 0,
|
|
107
|
-
password: str | None = None,
|
|
108
|
-
socket_timeout: float | None = None,
|
|
109
|
-
socket_connect_timeout: float | None = None,
|
|
110
|
-
retry_on_timeout: bool = False,
|
|
111
|
-
retry_on_error: list[type[RedisError]] | _Sentinel = ...,
|
|
112
|
-
encoding: str = "utf-8",
|
|
113
|
-
encoding_errors: str = "strict",
|
|
114
|
-
decode_responses: bool = False,
|
|
115
|
-
parser_class: type[BaseParser] = ...,
|
|
116
|
-
socket_read_size: int = 65536,
|
|
117
|
-
health_check_interval: float = 0,
|
|
118
|
-
client_name: str | None = None,
|
|
119
|
-
username: str | None = None,
|
|
120
|
-
retry: Retry | None = None,
|
|
121
|
-
redis_connect_func: ConnectCallbackT | None = None,
|
|
122
|
-
encoder_class: type[Encoder] = ...,
|
|
123
|
-
credential_provider: CredentialProvider | None = None,
|
|
124
|
-
) -> None: ...
|
|
125
|
-
@abstractmethod
|
|
126
|
-
def repr_pieces(self) -> list[tuple[str, Any]]: ...
|
|
127
|
-
@property
|
|
128
|
-
def is_connected(self) -> bool: ...
|
|
129
|
-
def register_connect_callback(self, callback: ConnectCallbackT) -> None: ...
|
|
130
|
-
def clear_connect_callbacks(self) -> None: ...
|
|
131
|
-
def set_parser(self, parser_class: type[BaseParser]) -> None: ...
|
|
132
|
-
async def connect(self) -> None: ...
|
|
133
|
-
async def on_connect(self) -> None: ...
|
|
134
|
-
async def disconnect(self, nowait: bool = False) -> None: ...
|
|
135
|
-
async def check_health(self) -> None: ...
|
|
136
|
-
async def send_packed_command(self, command: bytes | str | Iterable[bytes], check_health: bool = True) -> None: ...
|
|
137
|
-
async def send_command(self, *args: Any, **kwargs: Any) -> None: ...
|
|
138
|
-
async def can_read_destructive(self) -> bool: ...
|
|
139
|
-
async def read_response(
|
|
140
|
-
self, disable_decoding: bool = False, timeout: float | None = None, *, disconnect_on_error: bool = True
|
|
141
|
-
) -> EncodableT | list[EncodableT] | None: ...
|
|
142
|
-
def pack_command(self, *args: EncodableT) -> list[bytes]: ...
|
|
143
|
-
def pack_commands(self, commands: Iterable[Iterable[EncodableT]]) -> list[bytes]: ...
|
|
144
|
-
|
|
145
|
-
class Connection(AbstractConnection):
|
|
146
|
-
host: str
|
|
147
|
-
port: int
|
|
148
|
-
socket_keepalive: bool
|
|
149
|
-
socket_keepalive_options: Mapping[int, int | bytes] | None
|
|
150
|
-
socket_type: int
|
|
151
|
-
|
|
152
|
-
def __init__(
|
|
153
|
-
self,
|
|
154
|
-
*,
|
|
155
|
-
host: str = "localhost",
|
|
156
|
-
port: str | int = 6379,
|
|
157
|
-
socket_keepalive: bool = False,
|
|
158
|
-
socket_keepalive_options: Mapping[int, int | bytes] | None = None,
|
|
159
|
-
socket_type: int = 0,
|
|
160
|
-
# **kwargs forwarded to AbstractConnection.
|
|
161
|
-
db: str | int = 0,
|
|
162
|
-
password: str | None = None,
|
|
163
|
-
socket_timeout: float | None = None,
|
|
164
|
-
socket_connect_timeout: float | None = None,
|
|
165
|
-
retry_on_timeout: bool = False,
|
|
166
|
-
retry_on_error: list[type[RedisError]] | _Sentinel = ...,
|
|
167
|
-
encoding: str = "utf-8",
|
|
168
|
-
encoding_errors: str = "strict",
|
|
169
|
-
decode_responses: bool = False,
|
|
170
|
-
parser_class: type[BaseParser] = ...,
|
|
171
|
-
socket_read_size: int = 65536,
|
|
172
|
-
health_check_interval: float = 0,
|
|
173
|
-
client_name: str | None = None,
|
|
174
|
-
username: str | None = None,
|
|
175
|
-
retry: Retry | None = None,
|
|
176
|
-
redis_connect_func: ConnectCallbackT | None = None,
|
|
177
|
-
encoder_class: type[Encoder] = ...,
|
|
178
|
-
credential_provider: CredentialProvider | None = None,
|
|
179
|
-
) -> None: ...
|
|
180
|
-
def repr_pieces(self) -> list[tuple[str, Any]]: ...
|
|
181
|
-
|
|
182
|
-
class SSLConnection(Connection):
|
|
183
|
-
ssl_context: RedisSSLContext
|
|
184
|
-
def __init__(
|
|
185
|
-
self,
|
|
186
|
-
ssl_keyfile: str | None = None,
|
|
187
|
-
ssl_certfile: str | None = None,
|
|
188
|
-
ssl_cert_reqs: _SSLVerifyMode = "required",
|
|
189
|
-
ssl_ca_certs: str | None = None,
|
|
190
|
-
ssl_ca_data: str | None = None,
|
|
191
|
-
ssl_check_hostname: bool = False,
|
|
192
|
-
*,
|
|
193
|
-
# **kwargs forwarded to Connection.
|
|
194
|
-
host: str = "localhost",
|
|
195
|
-
port: str | int = 6379,
|
|
196
|
-
socket_keepalive: bool = False,
|
|
197
|
-
socket_keepalive_options: Mapping[int, int | bytes] | None = None,
|
|
198
|
-
socket_type: int = 0,
|
|
199
|
-
db: str | int = 0,
|
|
200
|
-
password: str | None = None,
|
|
201
|
-
socket_timeout: float | None = None,
|
|
202
|
-
socket_connect_timeout: float | None = None,
|
|
203
|
-
retry_on_timeout: bool = False,
|
|
204
|
-
retry_on_error: list[type[RedisError]] | _Sentinel = ...,
|
|
205
|
-
encoding: str = "utf-8",
|
|
206
|
-
encoding_errors: str = "strict",
|
|
207
|
-
decode_responses: bool = False,
|
|
208
|
-
parser_class: type[BaseParser] = ...,
|
|
209
|
-
socket_read_size: int = 65536,
|
|
210
|
-
health_check_interval: float = 0,
|
|
211
|
-
client_name: str | None = None,
|
|
212
|
-
username: str | None = None,
|
|
213
|
-
retry: Retry | None = None,
|
|
214
|
-
redis_connect_func: ConnectCallbackT | None = None,
|
|
215
|
-
encoder_class: type[Encoder] = ...,
|
|
216
|
-
credential_provider: CredentialProvider | None = None,
|
|
217
|
-
) -> None: ...
|
|
218
|
-
@property
|
|
219
|
-
def keyfile(self) -> str | None: ...
|
|
220
|
-
@property
|
|
221
|
-
def certfile(self) -> str | None: ...
|
|
222
|
-
@property
|
|
223
|
-
def cert_reqs(self) -> ssl.VerifyMode: ...
|
|
224
|
-
@property
|
|
225
|
-
def ca_certs(self) -> str | None: ...
|
|
226
|
-
@property
|
|
227
|
-
def ca_data(self) -> str | None: ...
|
|
228
|
-
@property
|
|
229
|
-
def check_hostname(self) -> bool: ...
|
|
230
|
-
|
|
231
|
-
class RedisSSLContext:
|
|
232
|
-
keyfile: str | None
|
|
233
|
-
certfile: str | None
|
|
234
|
-
cert_reqs: ssl.VerifyMode
|
|
235
|
-
ca_certs: str | None
|
|
236
|
-
ca_data: str | None
|
|
237
|
-
check_hostname: bool
|
|
238
|
-
context: ssl.SSLContext | None
|
|
239
|
-
def __init__(
|
|
240
|
-
self,
|
|
241
|
-
keyfile: str | None = None,
|
|
242
|
-
certfile: str | None = None,
|
|
243
|
-
cert_reqs: _SSLVerifyMode | None = None,
|
|
244
|
-
ca_certs: str | None = None,
|
|
245
|
-
ca_data: str | None = None,
|
|
246
|
-
check_hostname: bool = False,
|
|
247
|
-
) -> None: ...
|
|
248
|
-
def get(self) -> ssl.SSLContext: ...
|
|
249
|
-
|
|
250
|
-
class UnixDomainSocketConnection(Connection):
|
|
251
|
-
path: str
|
|
252
|
-
def __init__(
|
|
253
|
-
self,
|
|
254
|
-
*,
|
|
255
|
-
path: str = "",
|
|
256
|
-
# **kwargs forwarded to AbstractConnection.
|
|
257
|
-
db: str | int = 0,
|
|
258
|
-
password: str | None = None,
|
|
259
|
-
socket_timeout: float | None = None,
|
|
260
|
-
socket_connect_timeout: float | None = None,
|
|
261
|
-
retry_on_timeout: bool = False,
|
|
262
|
-
retry_on_error: list[type[RedisError]] | _Sentinel = ...,
|
|
263
|
-
encoding: str = "utf-8",
|
|
264
|
-
encoding_errors: str = "strict",
|
|
265
|
-
decode_responses: bool = False,
|
|
266
|
-
parser_class: type[BaseParser] = ...,
|
|
267
|
-
socket_read_size: int = 65536,
|
|
268
|
-
health_check_interval: float = 0,
|
|
269
|
-
client_name: str | None = None,
|
|
270
|
-
username: str | None = None,
|
|
271
|
-
retry: Retry | None = None,
|
|
272
|
-
redis_connect_func: ConnectCallbackT | None = None,
|
|
273
|
-
encoder_class: type[Encoder] = ...,
|
|
274
|
-
credential_provider: CredentialProvider | None = None,
|
|
275
|
-
) -> None: ...
|
|
276
|
-
def repr_pieces(self) -> list[tuple[str, Any]]: ...
|
|
277
|
-
|
|
278
|
-
FALSE_STRINGS: Final[tuple[str, ...]]
|
|
279
|
-
|
|
280
|
-
def to_bool(value: object) -> bool | None: ...
|
|
281
|
-
|
|
282
|
-
URL_QUERY_ARGUMENT_PARSERS: MappingProxyType[str, Callable[[str], Any]]
|
|
283
|
-
|
|
284
|
-
class ConnectKwargs(TypedDict):
|
|
285
|
-
username: str
|
|
286
|
-
password: str
|
|
287
|
-
connection_class: type[AbstractConnection]
|
|
288
|
-
host: str
|
|
289
|
-
port: int
|
|
290
|
-
db: int
|
|
291
|
-
path: str
|
|
292
|
-
|
|
293
|
-
def parse_url(url: str) -> ConnectKwargs: ...
|
|
294
|
-
|
|
295
|
-
_ConnectionT = TypeVar("_ConnectionT", bound=AbstractConnection)
|
|
296
|
-
|
|
297
|
-
class ConnectionPool(Generic[_ConnectionT]):
|
|
298
|
-
# kwargs accepts all arguments from the connection class chosen for
|
|
299
|
-
# the given URL, except those encoded in the URL itself.
|
|
300
|
-
@classmethod
|
|
301
|
-
def from_url(cls, url: str, **kwargs: Any) -> Self: ...
|
|
302
|
-
|
|
303
|
-
connection_class: type[_ConnectionT]
|
|
304
|
-
connection_kwargs: Mapping[str, Any]
|
|
305
|
-
max_connections: int
|
|
306
|
-
encoder_class: type[Encoder]
|
|
307
|
-
pid: int
|
|
308
|
-
|
|
309
|
-
@overload
|
|
310
|
-
def __init__(
|
|
311
|
-
self: ConnectionPool[_ConnectionT], # pyright: ignore[reportInvalidTypeVarUse] #11780
|
|
312
|
-
connection_class: type[_ConnectionT],
|
|
313
|
-
max_connections: int | None = None,
|
|
314
|
-
# **kwargs are passed to the constructed connection instances.
|
|
315
|
-
**connection_kwargs: Any,
|
|
316
|
-
) -> None: ...
|
|
317
|
-
@overload
|
|
318
|
-
def __init__(self: ConnectionPool[Connection], *, max_connections: int | None = None, **connection_kwargs) -> None: ...
|
|
319
|
-
def reset(self) -> None: ...
|
|
320
|
-
async def get_connection(self, command_name: Unused, *keys: Unused, **options: Unused) -> _ConnectionT: ...
|
|
321
|
-
def get_encoder(self) -> Encoder: ...
|
|
322
|
-
def make_connection(self) -> _ConnectionT: ...
|
|
323
|
-
async def release(self, connection: AbstractConnection) -> None: ...
|
|
324
|
-
def owns_connection(self, connection: AbstractConnection) -> bool: ...
|
|
325
|
-
async def disconnect(self, inuse_connections: bool = True) -> None: ...
|
|
326
|
-
def set_retry(self, retry: Retry) -> None: ...
|
|
327
|
-
|
|
328
|
-
class BlockingConnectionPool(ConnectionPool[_ConnectionT]):
|
|
329
|
-
queue_class: type[asyncio.Queue[_ConnectionT | None]]
|
|
330
|
-
timeout: int | None
|
|
331
|
-
pool: asyncio.Queue[_ConnectionT | None]
|
|
332
|
-
|
|
333
|
-
@overload
|
|
334
|
-
def __init__(
|
|
335
|
-
self: BlockingConnectionPool[_ConnectionT], # pyright: ignore[reportInvalidTypeVarUse] #11780
|
|
336
|
-
max_connections: int,
|
|
337
|
-
timeout: int | None,
|
|
338
|
-
connection_class: type[_ConnectionT],
|
|
339
|
-
queue_class: type[asyncio.Queue[_ConnectionT | None]] = ...,
|
|
340
|
-
# **kwargs are passed to the constructed connection instances.
|
|
341
|
-
**connection_kwargs: Any,
|
|
342
|
-
) -> None: ...
|
|
343
|
-
@overload
|
|
344
|
-
def __init__(
|
|
345
|
-
self: BlockingConnectionPool[_ConnectionT], # pyright: ignore[reportInvalidTypeVarUse] #11780
|
|
346
|
-
max_connections: int = 50,
|
|
347
|
-
timeout: int | None = 20,
|
|
348
|
-
*,
|
|
349
|
-
connection_class: type[_ConnectionT],
|
|
350
|
-
queue_class: type[asyncio.Queue[_ConnectionT | None]] = ...,
|
|
351
|
-
# **kwargs are passed to the constructed connection instances.
|
|
352
|
-
**connection_kwargs: Any,
|
|
353
|
-
) -> None: ...
|
|
354
|
-
@overload
|
|
355
|
-
def __init__(
|
|
356
|
-
self: BlockingConnectionPool[Connection],
|
|
357
|
-
max_connections: int = 50,
|
|
358
|
-
timeout: int | None = 20,
|
|
359
|
-
*,
|
|
360
|
-
queue_class: type[asyncio.Queue[Connection | None]] = ...,
|
|
361
|
-
# **kwargs are passed to the constructed connection instances.
|
|
362
|
-
**connection_kwargs: Any,
|
|
363
|
-
) -> None: ...
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import threading
|
|
2
|
-
from collections.abc import Awaitable
|
|
3
|
-
from types import SimpleNamespace, TracebackType
|
|
4
|
-
from typing import Any, ClassVar
|
|
5
|
-
from typing_extensions import Self
|
|
6
|
-
|
|
7
|
-
from redis.asyncio import Redis
|
|
8
|
-
from redis.commands.core import AsyncScript
|
|
9
|
-
|
|
10
|
-
class Lock:
|
|
11
|
-
lua_release: ClassVar[AsyncScript | None]
|
|
12
|
-
lua_extend: ClassVar[AsyncScript | None]
|
|
13
|
-
lua_reacquire: ClassVar[AsyncScript | None]
|
|
14
|
-
LUA_RELEASE_SCRIPT: ClassVar[str]
|
|
15
|
-
LUA_EXTEND_SCRIPT: ClassVar[str]
|
|
16
|
-
LUA_REACQUIRE_SCRIPT: ClassVar[str]
|
|
17
|
-
redis: Redis[Any]
|
|
18
|
-
name: str | bytes | memoryview
|
|
19
|
-
timeout: float | None
|
|
20
|
-
sleep: float
|
|
21
|
-
blocking: bool
|
|
22
|
-
blocking_timeout: float | None
|
|
23
|
-
thread_local: bool
|
|
24
|
-
local: threading.local | SimpleNamespace
|
|
25
|
-
def __init__(
|
|
26
|
-
self,
|
|
27
|
-
redis: Redis[Any],
|
|
28
|
-
name: str | bytes | memoryview,
|
|
29
|
-
timeout: float | None = None,
|
|
30
|
-
sleep: float = 0.1,
|
|
31
|
-
blocking: bool = True,
|
|
32
|
-
blocking_timeout: float | None = None,
|
|
33
|
-
thread_local: bool = True,
|
|
34
|
-
) -> None: ...
|
|
35
|
-
def register_scripts(self) -> None: ...
|
|
36
|
-
async def __aenter__(self) -> Self: ...
|
|
37
|
-
async def __aexit__(
|
|
38
|
-
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
|
39
|
-
) -> None: ...
|
|
40
|
-
async def acquire(
|
|
41
|
-
self, blocking: bool | None = None, blocking_timeout: float | None = None, token: str | bytes | None = None
|
|
42
|
-
) -> bool: ...
|
|
43
|
-
async def do_acquire(self, token: str | bytes) -> bool: ...
|
|
44
|
-
async def locked(self) -> bool: ...
|
|
45
|
-
async def owned(self) -> bool: ...
|
|
46
|
-
def release(self) -> Awaitable[None]: ...
|
|
47
|
-
async def do_release(self, expected_token: bytes) -> None: ...
|
|
48
|
-
def extend(self, additional_time: float, replace_ttl: bool = False) -> Awaitable[bool]: ...
|
|
49
|
-
async def do_extend(self, additional_time: float, replace_ttl: bool) -> bool: ...
|
|
50
|
-
def reacquire(self) -> Awaitable[bool]: ...
|
|
51
|
-
async def do_reacquire(self) -> bool: ...
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from typing import Any
|
|
3
|
-
|
|
4
|
-
# TODO: define and use:
|
|
5
|
-
# from redis.asyncio.cluster import ClusterNode
|
|
6
|
-
|
|
7
|
-
class CommandsParser:
|
|
8
|
-
async def initialize(self, node: Incomplete | None = None) -> None: ... # TODO: ClusterNode
|
|
9
|
-
async def get_keys(self, *args: Any) -> tuple[str, ...] | None: ...
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
from collections.abc import Awaitable, Callable, Iterable
|
|
2
|
-
from typing import TypeVar
|
|
3
|
-
|
|
4
|
-
from redis.backoff import AbstractBackoff
|
|
5
|
-
from redis.exceptions import RedisError
|
|
6
|
-
|
|
7
|
-
_T = TypeVar("_T")
|
|
8
|
-
|
|
9
|
-
class Retry:
|
|
10
|
-
def __init__(self, backoff: AbstractBackoff, retries: int, supported_errors: tuple[type[RedisError], ...] = ...) -> None: ...
|
|
11
|
-
def update_supported_errors(self, specified_errors: Iterable[type[RedisError]]) -> None: ...
|
|
12
|
-
async def call_with_retry(self, do: Callable[[], Awaitable[_T]], fail: Callable[[RedisError], Awaitable[object]]) -> _T: ...
|