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,160 +0,0 @@
|
|
|
1
|
-
from typing import Literal
|
|
2
|
-
from typing_extensions import TypeAlias
|
|
3
|
-
|
|
4
|
-
_Key: TypeAlias = bytes | str | memoryview
|
|
5
|
-
|
|
6
|
-
ADD_CMD: Literal["TS.ADD"]
|
|
7
|
-
ALTER_CMD: Literal["TS.ALTER"]
|
|
8
|
-
CREATERULE_CMD: Literal["TS.CREATERULE"]
|
|
9
|
-
CREATE_CMD: Literal["TS.CREATE"]
|
|
10
|
-
DECRBY_CMD: Literal["TS.DECRBY"]
|
|
11
|
-
DELETERULE_CMD: Literal["TS.DELETERULE"]
|
|
12
|
-
DEL_CMD: Literal["TS.DEL"]
|
|
13
|
-
GET_CMD: Literal["TS.GET"]
|
|
14
|
-
INCRBY_CMD: Literal["TS.INCRBY"]
|
|
15
|
-
INFO_CMD: Literal["TS.INFO"]
|
|
16
|
-
MADD_CMD: Literal["TS.MADD"]
|
|
17
|
-
MGET_CMD: Literal["TS.MGET"]
|
|
18
|
-
MRANGE_CMD: Literal["TS.MRANGE"]
|
|
19
|
-
MREVRANGE_CMD: Literal["TS.MREVRANGE"]
|
|
20
|
-
QUERYINDEX_CMD: Literal["TS.QUERYINDEX"]
|
|
21
|
-
RANGE_CMD: Literal["TS.RANGE"]
|
|
22
|
-
REVRANGE_CMD: Literal["TS.REVRANGE"]
|
|
23
|
-
|
|
24
|
-
class TimeSeriesCommands:
|
|
25
|
-
def create(
|
|
26
|
-
self,
|
|
27
|
-
key: _Key,
|
|
28
|
-
retention_msecs: int | None = None,
|
|
29
|
-
uncompressed: bool | None = False,
|
|
30
|
-
labels: dict[str, str] | None = None,
|
|
31
|
-
chunk_size: int | None = None,
|
|
32
|
-
duplicate_policy: str | None = None,
|
|
33
|
-
): ...
|
|
34
|
-
def alter(
|
|
35
|
-
self,
|
|
36
|
-
key: _Key,
|
|
37
|
-
retention_msecs: int | None = None,
|
|
38
|
-
labels: dict[str, str] | None = None,
|
|
39
|
-
chunk_size: int | None = None,
|
|
40
|
-
duplicate_policy: str | None = None,
|
|
41
|
-
): ...
|
|
42
|
-
def add(
|
|
43
|
-
self,
|
|
44
|
-
key: _Key,
|
|
45
|
-
timestamp: int | str,
|
|
46
|
-
value: float,
|
|
47
|
-
retention_msecs: int | None = None,
|
|
48
|
-
uncompressed: bool | None = False,
|
|
49
|
-
labels: dict[str, str] | None = None,
|
|
50
|
-
chunk_size: int | None = None,
|
|
51
|
-
duplicate_policy: str | None = None,
|
|
52
|
-
): ...
|
|
53
|
-
def madd(self, ktv_tuples): ...
|
|
54
|
-
def incrby(
|
|
55
|
-
self,
|
|
56
|
-
key: _Key,
|
|
57
|
-
value: float,
|
|
58
|
-
timestamp: int | str | None = None,
|
|
59
|
-
retention_msecs: int | None = None,
|
|
60
|
-
uncompressed: bool | None = False,
|
|
61
|
-
labels: dict[str, str] | None = None,
|
|
62
|
-
chunk_size: int | None = None,
|
|
63
|
-
): ...
|
|
64
|
-
def decrby(
|
|
65
|
-
self,
|
|
66
|
-
key: _Key,
|
|
67
|
-
value: float,
|
|
68
|
-
timestamp: int | str | None = None,
|
|
69
|
-
retention_msecs: int | None = None,
|
|
70
|
-
uncompressed: bool | None = False,
|
|
71
|
-
labels: dict[str, str] | None = None,
|
|
72
|
-
chunk_size: int | None = None,
|
|
73
|
-
): ...
|
|
74
|
-
def delete(self, key, from_time, to_time): ...
|
|
75
|
-
def createrule(
|
|
76
|
-
self, source_key: _Key, dest_key: _Key, aggregation_type: str, bucket_size_msec: int, align_timestamp: int | None = None
|
|
77
|
-
): ...
|
|
78
|
-
def deleterule(self, source_key, dest_key): ...
|
|
79
|
-
def range(
|
|
80
|
-
self,
|
|
81
|
-
key: _Key,
|
|
82
|
-
from_time: int | str,
|
|
83
|
-
to_time: int | str,
|
|
84
|
-
count: int | None = None,
|
|
85
|
-
aggregation_type: str | None = None,
|
|
86
|
-
bucket_size_msec: int | None = 0,
|
|
87
|
-
filter_by_ts: list[int] | None = None,
|
|
88
|
-
filter_by_min_value: int | None = None,
|
|
89
|
-
filter_by_max_value: int | None = None,
|
|
90
|
-
align: int | str | None = None,
|
|
91
|
-
latest: bool | None = False,
|
|
92
|
-
bucket_timestamp: str | None = None,
|
|
93
|
-
empty: bool | None = False,
|
|
94
|
-
): ...
|
|
95
|
-
def revrange(
|
|
96
|
-
self,
|
|
97
|
-
key: _Key,
|
|
98
|
-
from_time: int | str,
|
|
99
|
-
to_time: int | str,
|
|
100
|
-
count: int | None = None,
|
|
101
|
-
aggregation_type: str | None = None,
|
|
102
|
-
bucket_size_msec: int | None = 0,
|
|
103
|
-
filter_by_ts: list[int] | None = None,
|
|
104
|
-
filter_by_min_value: int | None = None,
|
|
105
|
-
filter_by_max_value: int | None = None,
|
|
106
|
-
align: int | str | None = None,
|
|
107
|
-
latest: bool | None = False,
|
|
108
|
-
bucket_timestamp: str | None = None,
|
|
109
|
-
empty: bool | None = False,
|
|
110
|
-
): ...
|
|
111
|
-
def mrange(
|
|
112
|
-
self,
|
|
113
|
-
from_time: int | str,
|
|
114
|
-
to_time: int | str,
|
|
115
|
-
filters: list[str],
|
|
116
|
-
count: int | None = None,
|
|
117
|
-
aggregation_type: str | None = None,
|
|
118
|
-
bucket_size_msec: int | None = 0,
|
|
119
|
-
with_labels: bool | None = False,
|
|
120
|
-
filter_by_ts: list[int] | None = None,
|
|
121
|
-
filter_by_min_value: int | None = None,
|
|
122
|
-
filter_by_max_value: int | None = None,
|
|
123
|
-
groupby: str | None = None,
|
|
124
|
-
reduce: str | None = None,
|
|
125
|
-
select_labels: list[str] | None = None,
|
|
126
|
-
align: int | str | None = None,
|
|
127
|
-
latest: bool | None = False,
|
|
128
|
-
bucket_timestamp: str | None = None,
|
|
129
|
-
empty: bool | None = False,
|
|
130
|
-
): ...
|
|
131
|
-
def mrevrange(
|
|
132
|
-
self,
|
|
133
|
-
from_time: int | str,
|
|
134
|
-
to_time: int | str,
|
|
135
|
-
filters: list[str],
|
|
136
|
-
count: int | None = None,
|
|
137
|
-
aggregation_type: str | None = None,
|
|
138
|
-
bucket_size_msec: int | None = 0,
|
|
139
|
-
with_labels: bool | None = False,
|
|
140
|
-
filter_by_ts: list[int] | None = None,
|
|
141
|
-
filter_by_min_value: int | None = None,
|
|
142
|
-
filter_by_max_value: int | None = None,
|
|
143
|
-
groupby: str | None = None,
|
|
144
|
-
reduce: str | None = None,
|
|
145
|
-
select_labels: list[str] | None = None,
|
|
146
|
-
align: int | str | None = None,
|
|
147
|
-
latest: bool | None = False,
|
|
148
|
-
bucket_timestamp: str | None = None,
|
|
149
|
-
empty: bool | None = False,
|
|
150
|
-
): ...
|
|
151
|
-
def get(self, key: _Key, latest: bool | None = False): ...
|
|
152
|
-
def mget(
|
|
153
|
-
self,
|
|
154
|
-
filters: list[str],
|
|
155
|
-
with_labels: bool | None = False,
|
|
156
|
-
select_labels: list[str] | None = None,
|
|
157
|
-
latest: bool | None = False,
|
|
158
|
-
): ...
|
|
159
|
-
def info(self, key): ...
|
|
160
|
-
def queryindex(self, filters): ...
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from typing import Any
|
|
3
|
-
|
|
4
|
-
class TSInfo:
|
|
5
|
-
rules: list[Any]
|
|
6
|
-
labels: list[Any]
|
|
7
|
-
sourceKey: Incomplete | None
|
|
8
|
-
chunk_count: Incomplete | None
|
|
9
|
-
memory_usage: Incomplete | None
|
|
10
|
-
total_samples: Incomplete | None
|
|
11
|
-
retention_msecs: Incomplete | None
|
|
12
|
-
last_time_stamp: Incomplete | None
|
|
13
|
-
first_time_stamp: Incomplete | None
|
|
14
|
-
|
|
15
|
-
max_samples_per_chunk: Incomplete | None
|
|
16
|
-
chunk_size: Incomplete | None
|
|
17
|
-
duplicate_policy: Incomplete | None
|
|
18
|
-
def __init__(self, args) -> None: ...
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete, Unused
|
|
2
|
-
from abc import abstractmethod
|
|
3
|
-
from collections.abc import Callable, Iterable, Mapping
|
|
4
|
-
from queue import Queue
|
|
5
|
-
from socket import socket
|
|
6
|
-
from typing import Any, ClassVar
|
|
7
|
-
from typing_extensions import Self, TypeAlias
|
|
8
|
-
|
|
9
|
-
from .credentials import CredentialProvider
|
|
10
|
-
from .retry import Retry
|
|
11
|
-
|
|
12
|
-
ssl_available: bool
|
|
13
|
-
SYM_STAR: bytes
|
|
14
|
-
SYM_DOLLAR: bytes
|
|
15
|
-
SYM_CRLF: bytes
|
|
16
|
-
SYM_EMPTY: bytes
|
|
17
|
-
SERVER_CLOSED_CONNECTION_ERROR: str
|
|
18
|
-
NONBLOCKING_EXCEPTIONS: tuple[type[Exception], ...]
|
|
19
|
-
NONBLOCKING_EXCEPTION_ERROR_NUMBERS: dict[type[Exception], int]
|
|
20
|
-
SENTINEL: object
|
|
21
|
-
MODULE_LOAD_ERROR: str
|
|
22
|
-
NO_SUCH_MODULE_ERROR: str
|
|
23
|
-
MODULE_UNLOAD_NOT_POSSIBLE_ERROR: str
|
|
24
|
-
MODULE_EXPORTS_DATA_TYPES_ERROR: str
|
|
25
|
-
FALSE_STRINGS: tuple[str, ...]
|
|
26
|
-
URL_QUERY_ARGUMENT_PARSERS: dict[str, Callable[[Any], Any]]
|
|
27
|
-
|
|
28
|
-
# Options as passed to Pool.get_connection().
|
|
29
|
-
_ConnectionPoolOptions: TypeAlias = Any
|
|
30
|
-
_ConnectFunc: TypeAlias = Callable[[Connection], object]
|
|
31
|
-
|
|
32
|
-
class BaseParser:
|
|
33
|
-
EXCEPTION_CLASSES: ClassVar[dict[str, type[Exception] | dict[str, type[Exception]]]]
|
|
34
|
-
@classmethod
|
|
35
|
-
def parse_error(cls, response: str) -> Exception: ...
|
|
36
|
-
|
|
37
|
-
class SocketBuffer:
|
|
38
|
-
socket_read_size: int
|
|
39
|
-
bytes_written: int
|
|
40
|
-
bytes_read: int
|
|
41
|
-
socket_timeout: float | None
|
|
42
|
-
def __init__(self, socket: socket, socket_read_size: int, socket_timeout: float | None) -> None: ...
|
|
43
|
-
def unread_bytes(self) -> int: ...
|
|
44
|
-
def can_read(self, timeout: float | None) -> bool: ...
|
|
45
|
-
def read(self, length: int) -> bytes: ...
|
|
46
|
-
def readline(self) -> bytes: ...
|
|
47
|
-
def get_pos(self) -> int: ...
|
|
48
|
-
def rewind(self, pos: int) -> None: ...
|
|
49
|
-
def purge(self) -> None: ...
|
|
50
|
-
def close(self) -> None: ...
|
|
51
|
-
|
|
52
|
-
class PythonParser(BaseParser):
|
|
53
|
-
encoding: str
|
|
54
|
-
socket_read_size: int
|
|
55
|
-
encoder: Encoder | None
|
|
56
|
-
def __init__(self, socket_read_size: int) -> None: ...
|
|
57
|
-
def __del__(self) -> None: ...
|
|
58
|
-
def on_connect(self, connection: Connection) -> None: ...
|
|
59
|
-
def on_disconnect(self) -> None: ...
|
|
60
|
-
def can_read(self, timeout: float | None) -> bool: ...
|
|
61
|
-
def read_response(self, disable_decoding: bool = False) -> Any: ... # `str | bytes` or `list[str | bytes]`
|
|
62
|
-
|
|
63
|
-
class HiredisParser(BaseParser):
|
|
64
|
-
socket_read_size: int
|
|
65
|
-
def __init__(self, socket_read_size: int) -> None: ...
|
|
66
|
-
def __del__(self) -> None: ...
|
|
67
|
-
def on_connect(self, connection: Connection, **kwargs) -> None: ...
|
|
68
|
-
def on_disconnect(self) -> None: ...
|
|
69
|
-
def can_read(self, timeout: float | None) -> bool: ...
|
|
70
|
-
def read_from_socket(self, timeout: float | None = ..., raise_on_timeout: bool = True) -> bool: ...
|
|
71
|
-
def read_response(self, disable_decoding: bool = False) -> Any: ... # `str | bytes` or `list[str | bytes]`
|
|
72
|
-
|
|
73
|
-
DefaultParser: type[BaseParser] # Hiredis or PythonParser
|
|
74
|
-
|
|
75
|
-
_Encodable: TypeAlias = str | bytes | memoryview | bool | float
|
|
76
|
-
|
|
77
|
-
class Encoder:
|
|
78
|
-
encoding: str
|
|
79
|
-
encoding_errors: str
|
|
80
|
-
decode_responses: bool
|
|
81
|
-
def __init__(self, encoding: str, encoding_errors: str, decode_responses: bool) -> None: ...
|
|
82
|
-
def encode(self, value: _Encodable) -> bytes: ...
|
|
83
|
-
def decode(self, value: str | bytes | memoryview, force: bool = False) -> str: ...
|
|
84
|
-
|
|
85
|
-
class AbstractConnection:
|
|
86
|
-
pid: int
|
|
87
|
-
db: int
|
|
88
|
-
client_name: str | None
|
|
89
|
-
credential_provider: CredentialProvider | None
|
|
90
|
-
password: str | None
|
|
91
|
-
username: str | None
|
|
92
|
-
socket_timeout: float | None
|
|
93
|
-
socket_connect_timeout: float | None
|
|
94
|
-
retry_on_timeout: bool
|
|
95
|
-
retry_on_error: list[type[Exception]]
|
|
96
|
-
retry: Retry
|
|
97
|
-
health_check_interval: int
|
|
98
|
-
next_health_check: int
|
|
99
|
-
redis_connect_func: _ConnectFunc | None
|
|
100
|
-
encoder: Encoder
|
|
101
|
-
|
|
102
|
-
def __init__(
|
|
103
|
-
self,
|
|
104
|
-
db: int = 0,
|
|
105
|
-
password: str | None = None,
|
|
106
|
-
socket_timeout: float | None = None,
|
|
107
|
-
socket_connect_timeout: float | None = None,
|
|
108
|
-
retry_on_timeout: bool = False,
|
|
109
|
-
retry_on_error: list[type[Exception]] = ...,
|
|
110
|
-
encoding: str = "utf-8",
|
|
111
|
-
encoding_errors: str = "strict",
|
|
112
|
-
decode_responses: bool = False,
|
|
113
|
-
parser_class: type[BaseParser] = ...,
|
|
114
|
-
socket_read_size: int = 65536,
|
|
115
|
-
health_check_interval: int = 0,
|
|
116
|
-
client_name: str | None = None,
|
|
117
|
-
username: str | None = None,
|
|
118
|
-
retry: Retry | None = None,
|
|
119
|
-
redis_connect_func: _ConnectFunc | None = None,
|
|
120
|
-
credential_provider: CredentialProvider | None = None,
|
|
121
|
-
command_packer: Incomplete | None = None,
|
|
122
|
-
) -> None: ...
|
|
123
|
-
@abstractmethod
|
|
124
|
-
def repr_pieces(self) -> list[tuple[str, Any]]: ...
|
|
125
|
-
def register_connect_callback(self, callback: _ConnectFunc) -> None: ...
|
|
126
|
-
def clear_connect_callbacks(self) -> None: ...
|
|
127
|
-
def set_parser(self, parser_class: type[BaseParser]) -> None: ...
|
|
128
|
-
def connect(self) -> None: ...
|
|
129
|
-
def on_connect(self) -> None: ...
|
|
130
|
-
def disconnect(self, *args: Unused) -> None: ... # 'args' added in redis 4.1.2
|
|
131
|
-
def check_health(self) -> None: ...
|
|
132
|
-
def send_packed_command(self, command: str | Iterable[str], check_health: bool = True) -> None: ...
|
|
133
|
-
def send_command(self, *args, **kwargs) -> None: ...
|
|
134
|
-
def can_read(self, timeout: float | None = 0) -> bool: ...
|
|
135
|
-
def read_response(
|
|
136
|
-
self, disable_decoding: bool = False, *, disconnect_on_error: bool = True
|
|
137
|
-
) -> Any: ... # `str | bytes` or `list[str | bytes]`
|
|
138
|
-
def pack_command(self, *args) -> list[bytes]: ...
|
|
139
|
-
def pack_commands(self, commands: Iterable[Iterable[Incomplete]]) -> list[bytes]: ...
|
|
140
|
-
|
|
141
|
-
class Connection(AbstractConnection):
|
|
142
|
-
host: str
|
|
143
|
-
port: int
|
|
144
|
-
socket_keepalive: bool
|
|
145
|
-
socket_keepalive_options: Mapping[str, int | str]
|
|
146
|
-
socket_type: int
|
|
147
|
-
def __init__(
|
|
148
|
-
self,
|
|
149
|
-
host: str = "localhost",
|
|
150
|
-
port: int = 6379,
|
|
151
|
-
socket_keepalive: bool = False,
|
|
152
|
-
socket_keepalive_options: Mapping[str, int | str] | None = None,
|
|
153
|
-
socket_type: int = 0,
|
|
154
|
-
*,
|
|
155
|
-
db: int = 0,
|
|
156
|
-
password: str | None = None,
|
|
157
|
-
socket_timeout: float | None = None,
|
|
158
|
-
socket_connect_timeout: float | None = None,
|
|
159
|
-
retry_on_timeout: bool = False,
|
|
160
|
-
retry_on_error: list[type[Exception]] = ...,
|
|
161
|
-
encoding: str = "utf-8",
|
|
162
|
-
encoding_errors: str = "strict",
|
|
163
|
-
decode_responses: bool = False,
|
|
164
|
-
parser_class: type[BaseParser] = ...,
|
|
165
|
-
socket_read_size: int = 65536,
|
|
166
|
-
health_check_interval: int = 0,
|
|
167
|
-
client_name: str | None = None,
|
|
168
|
-
username: str | None = None,
|
|
169
|
-
retry: Retry | None = None,
|
|
170
|
-
redis_connect_func: _ConnectFunc | None = None,
|
|
171
|
-
credential_provider: CredentialProvider | None = None,
|
|
172
|
-
command_packer: Incomplete | None = None,
|
|
173
|
-
) -> None: ...
|
|
174
|
-
def repr_pieces(self) -> list[tuple[str, Any]]: ...
|
|
175
|
-
|
|
176
|
-
class SSLConnection(Connection):
|
|
177
|
-
keyfile: Any
|
|
178
|
-
certfile: Any
|
|
179
|
-
cert_reqs: Any
|
|
180
|
-
ca_certs: Any
|
|
181
|
-
ca_path: Incomplete | None
|
|
182
|
-
check_hostname: bool
|
|
183
|
-
certificate_password: Incomplete | None
|
|
184
|
-
ssl_validate_ocsp: bool
|
|
185
|
-
ssl_validate_ocsp_stapled: bool # added in 4.1.1
|
|
186
|
-
ssl_ocsp_context: Incomplete | None # added in 4.1.1
|
|
187
|
-
ssl_ocsp_expected_cert: Incomplete | None # added in 4.1.1
|
|
188
|
-
def __init__(
|
|
189
|
-
self,
|
|
190
|
-
ssl_keyfile=None,
|
|
191
|
-
ssl_certfile=None,
|
|
192
|
-
ssl_cert_reqs="required",
|
|
193
|
-
ssl_ca_certs=None,
|
|
194
|
-
ssl_ca_data: Incomplete | None = None,
|
|
195
|
-
ssl_check_hostname: bool = False,
|
|
196
|
-
ssl_ca_path: Incomplete | None = None,
|
|
197
|
-
ssl_password: Incomplete | None = None,
|
|
198
|
-
ssl_validate_ocsp: bool = False,
|
|
199
|
-
ssl_validate_ocsp_stapled: bool = False, # added in 4.1.1
|
|
200
|
-
ssl_ocsp_context: Incomplete | None = None, # added in 4.1.1
|
|
201
|
-
ssl_ocsp_expected_cert: Incomplete | None = None, # added in 4.1.1
|
|
202
|
-
*,
|
|
203
|
-
host: str = "localhost",
|
|
204
|
-
port: int = 6379,
|
|
205
|
-
socket_timeout: float | None = None,
|
|
206
|
-
socket_connect_timeout: float | None = None,
|
|
207
|
-
socket_keepalive: bool = False,
|
|
208
|
-
socket_keepalive_options: Mapping[str, int | str] | None = None,
|
|
209
|
-
socket_type: int = 0,
|
|
210
|
-
db: int = 0,
|
|
211
|
-
password: str | None = None,
|
|
212
|
-
retry_on_timeout: bool = False,
|
|
213
|
-
retry_on_error: list[type[Exception]] = ...,
|
|
214
|
-
encoding: str = "utf-8",
|
|
215
|
-
encoding_errors: str = "strict",
|
|
216
|
-
decode_responses: bool = False,
|
|
217
|
-
parser_class: type[BaseParser] = ...,
|
|
218
|
-
socket_read_size: int = 65536,
|
|
219
|
-
health_check_interval: int = 0,
|
|
220
|
-
client_name: str | None = None,
|
|
221
|
-
username: str | None = None,
|
|
222
|
-
retry: Retry | None = None,
|
|
223
|
-
redis_connect_func: _ConnectFunc | None = None,
|
|
224
|
-
credential_provider: CredentialProvider | None = None,
|
|
225
|
-
command_packer: Incomplete | None = None,
|
|
226
|
-
) -> None: ...
|
|
227
|
-
|
|
228
|
-
class UnixDomainSocketConnection(AbstractConnection):
|
|
229
|
-
path: str
|
|
230
|
-
def __init__(
|
|
231
|
-
self,
|
|
232
|
-
path: str = "",
|
|
233
|
-
*,
|
|
234
|
-
db: int = 0,
|
|
235
|
-
password: str | None = None,
|
|
236
|
-
socket_timeout: float | None = None,
|
|
237
|
-
socket_connect_timeout: float | None = None,
|
|
238
|
-
retry_on_timeout: bool = False,
|
|
239
|
-
retry_on_error: list[type[Exception]] = ...,
|
|
240
|
-
encoding: str = "utf-8",
|
|
241
|
-
encoding_errors: str = "strict",
|
|
242
|
-
decode_responses: bool = False,
|
|
243
|
-
parser_class: type[BaseParser] = ...,
|
|
244
|
-
socket_read_size: int = 65536,
|
|
245
|
-
health_check_interval: int = 0,
|
|
246
|
-
client_name: str | None = None,
|
|
247
|
-
username: str | None = None,
|
|
248
|
-
retry: Retry | None = None,
|
|
249
|
-
redis_connect_func: _ConnectFunc | None = None,
|
|
250
|
-
credential_provider: CredentialProvider | None = None,
|
|
251
|
-
command_packer: Incomplete | None = None,
|
|
252
|
-
) -> None: ...
|
|
253
|
-
def repr_pieces(self) -> list[tuple[str, Any]]: ...
|
|
254
|
-
|
|
255
|
-
# TODO: make generic on `connection_class`
|
|
256
|
-
class ConnectionPool:
|
|
257
|
-
connection_class: type[Connection]
|
|
258
|
-
connection_kwargs: dict[str, Any]
|
|
259
|
-
max_connections: int
|
|
260
|
-
pid: int
|
|
261
|
-
@classmethod
|
|
262
|
-
def from_url(cls, url: str, *, db: int = ..., decode_components: bool = ..., **kwargs) -> Self: ...
|
|
263
|
-
def __init__(
|
|
264
|
-
self, connection_class: type[AbstractConnection] = ..., max_connections: int | None = None, **connection_kwargs
|
|
265
|
-
) -> None: ...
|
|
266
|
-
def reset(self) -> None: ...
|
|
267
|
-
def get_connection(self, command_name: Unused, *keys, **options: _ConnectionPoolOptions) -> Connection: ...
|
|
268
|
-
def make_connection(self) -> Connection: ...
|
|
269
|
-
def release(self, connection: Connection) -> None: ...
|
|
270
|
-
def disconnect(self, inuse_connections: bool = True) -> None: ...
|
|
271
|
-
def get_encoder(self) -> Encoder: ...
|
|
272
|
-
def owns_connection(self, connection: Connection) -> bool: ...
|
|
273
|
-
|
|
274
|
-
class BlockingConnectionPool(ConnectionPool):
|
|
275
|
-
queue_class: type[Queue[Any]]
|
|
276
|
-
timeout: float
|
|
277
|
-
pool: Queue[Connection | None] # might not be defined
|
|
278
|
-
def __init__(
|
|
279
|
-
self,
|
|
280
|
-
max_connections: int = 50,
|
|
281
|
-
timeout: float = 20,
|
|
282
|
-
connection_class: type[Connection] = ...,
|
|
283
|
-
queue_class: type[Queue[Any]] = ...,
|
|
284
|
-
**connection_kwargs,
|
|
285
|
-
) -> None: ...
|
|
286
|
-
def disconnect(self) -> None: ... # type: ignore[override]
|
|
287
|
-
|
|
288
|
-
def to_bool(value: object) -> bool: ...
|
|
289
|
-
def parse_url(url: str) -> dict[str, Any]: ...
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
from abc import abstractmethod
|
|
2
|
-
|
|
3
|
-
class CredentialProvider:
|
|
4
|
-
@abstractmethod
|
|
5
|
-
def get_credentials(self) -> tuple[str] | tuple[str, str]: ...
|
|
6
|
-
|
|
7
|
-
class UsernamePasswordCredentialProvider(CredentialProvider):
|
|
8
|
-
username: str
|
|
9
|
-
password: str
|
|
10
|
-
def __init__(self, username: str | None = None, password: str | None = None) -> None: ...
|
|
11
|
-
def get_credentials(self) -> tuple[str] | tuple[str, str]: ...
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
class RedisError(Exception): ...
|
|
2
|
-
class AuthenticationError(RedisError): ...
|
|
3
|
-
class ConnectionError(RedisError): ...
|
|
4
|
-
class TimeoutError(RedisError): ...
|
|
5
|
-
class AuthorizationError(ConnectionError): ...
|
|
6
|
-
class BusyLoadingError(ConnectionError): ...
|
|
7
|
-
class InvalidResponse(RedisError): ...
|
|
8
|
-
class ResponseError(RedisError): ...
|
|
9
|
-
class DataError(RedisError): ...
|
|
10
|
-
class PubSubError(RedisError): ...
|
|
11
|
-
class WatchError(RedisError): ...
|
|
12
|
-
class NoScriptError(ResponseError): ...
|
|
13
|
-
class ExecAbortError(ResponseError): ...
|
|
14
|
-
class ReadOnlyError(ResponseError): ...
|
|
15
|
-
class NoPermissionError(ResponseError): ...
|
|
16
|
-
class ModuleError(ResponseError): ...
|
|
17
|
-
class LockError(RedisError, ValueError): ...
|
|
18
|
-
class LockNotOwnedError(LockError): ...
|
|
19
|
-
class ChildDeadlockedError(Exception): ...
|
|
20
|
-
class AuthenticationWrongNumberOfArgsError(ResponseError): ...
|
|
21
|
-
class RedisClusterException(Exception): ...
|
|
22
|
-
class ClusterError(RedisError): ...
|
|
23
|
-
|
|
24
|
-
class ClusterDownError(ClusterError, ResponseError):
|
|
25
|
-
args: tuple[str]
|
|
26
|
-
message: str
|
|
27
|
-
def __init__(self, resp: str) -> None: ...
|
|
28
|
-
|
|
29
|
-
class AskError(ResponseError):
|
|
30
|
-
args: tuple[str]
|
|
31
|
-
message: str
|
|
32
|
-
slot_id: int
|
|
33
|
-
node_addr: tuple[str, int]
|
|
34
|
-
host: str
|
|
35
|
-
port: int
|
|
36
|
-
def __init__(self, resp: str) -> None: ...
|
|
37
|
-
|
|
38
|
-
class TryAgainError(ResponseError): ...
|
|
39
|
-
class ClusterCrossSlotError(ResponseError): ...
|
|
40
|
-
class MovedError(AskError): ...
|
|
41
|
-
class MasterDownError(ClusterDownError): ...
|
|
42
|
-
class SlotNotCoveredError(RedisClusterException): ...
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from types import TracebackType
|
|
3
|
-
from typing import Any, ClassVar, Protocol
|
|
4
|
-
from typing_extensions import Self
|
|
5
|
-
|
|
6
|
-
from redis.client import Redis
|
|
7
|
-
|
|
8
|
-
class _Local(Protocol):
|
|
9
|
-
token: str | bytes | None
|
|
10
|
-
|
|
11
|
-
class Lock:
|
|
12
|
-
LUA_EXTEND_SCRIPT: ClassVar[str]
|
|
13
|
-
LUA_REACQUIRE_SCRIPT: ClassVar[str]
|
|
14
|
-
LUA_RELEASE_SCRIPT: ClassVar[str]
|
|
15
|
-
lua_extend: ClassVar[Incomplete | None]
|
|
16
|
-
lua_reacquire: ClassVar[Incomplete | None]
|
|
17
|
-
lua_release: ClassVar[Incomplete | None]
|
|
18
|
-
redis: Redis[Any]
|
|
19
|
-
name: str
|
|
20
|
-
timeout: float | None
|
|
21
|
-
sleep: float
|
|
22
|
-
blocking: bool
|
|
23
|
-
blocking_timeout: float | None
|
|
24
|
-
thread_local: bool
|
|
25
|
-
local: _Local
|
|
26
|
-
def __init__(
|
|
27
|
-
self,
|
|
28
|
-
redis: Redis[Any],
|
|
29
|
-
name: str,
|
|
30
|
-
timeout: float | None = None,
|
|
31
|
-
sleep: float = 0.1,
|
|
32
|
-
blocking: bool = True,
|
|
33
|
-
blocking_timeout: float | None = None,
|
|
34
|
-
thread_local: bool = True,
|
|
35
|
-
) -> None: ...
|
|
36
|
-
def register_scripts(self) -> None: ...
|
|
37
|
-
def __enter__(self) -> Self: ...
|
|
38
|
-
def __exit__(
|
|
39
|
-
self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None
|
|
40
|
-
) -> bool | None: ...
|
|
41
|
-
def acquire(
|
|
42
|
-
self,
|
|
43
|
-
sleep: float | None = None,
|
|
44
|
-
blocking: bool | None = None,
|
|
45
|
-
blocking_timeout: float | None = None,
|
|
46
|
-
token: str | bytes | None = None,
|
|
47
|
-
) -> bool: ...
|
|
48
|
-
def do_acquire(self, token: str | bytes) -> bool: ...
|
|
49
|
-
def locked(self) -> bool: ...
|
|
50
|
-
def owned(self) -> bool: ...
|
|
51
|
-
def release(self) -> None: ...
|
|
52
|
-
def do_release(self, expected_token: str | bytes) -> None: ...
|
|
53
|
-
def extend(self, additional_time: float, replace_ttl: bool = False) -> bool: ...
|
|
54
|
-
def do_extend(self, additional_time: float, replace_ttl: bool) -> bool: ...
|
|
55
|
-
def reacquire(self) -> bool: ...
|
|
56
|
-
def do_reacquire(self) -> bool: ...
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
from _typeshed import Incomplete
|
|
2
|
-
from ssl import SSLObject, SSLSocket
|
|
3
|
-
from typing import Literal
|
|
4
|
-
|
|
5
|
-
from cryptography.x509.base import Certificate
|
|
6
|
-
from OpenSSL.SSL import Connection
|
|
7
|
-
|
|
8
|
-
def ocsp_staple_verifier(con: Connection, ocsp_bytes: bytes, expected: bytes | None = None) -> Literal[True]: ...
|
|
9
|
-
|
|
10
|
-
class OCSPVerifier:
|
|
11
|
-
SOCK: SSLObject | SSLSocket
|
|
12
|
-
HOST: str
|
|
13
|
-
PORT: int
|
|
14
|
-
CA_CERTS: str | None
|
|
15
|
-
def __init__(self, sock: SSLObject | SSLSocket, host: str, port: int, ca_certs: str | None = None) -> None: ...
|
|
16
|
-
# cryptography.x509.general_name.GeneralName.value is typed as Any
|
|
17
|
-
def components_from_socket(self) -> tuple[Certificate, Incomplete | None, Incomplete]: ...
|
|
18
|
-
def components_from_direct_connection(self) -> tuple[Certificate, Incomplete | None, Incomplete]: ...
|
|
19
|
-
def build_certificate_url(self, server: str, cert: Certificate, issuer_cert: Certificate) -> str: ...
|
|
20
|
-
def check_certificate(self, server: str, cert: Certificate, issuer_url: str | bytes) -> Literal[True]: ...
|
|
21
|
-
def is_valid(self) -> Literal[True]: ...
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
from collections.abc import Callable, Iterable
|
|
2
|
-
from typing import TypeVar
|
|
3
|
-
|
|
4
|
-
from redis.backoff import AbstractBackoff
|
|
5
|
-
|
|
6
|
-
_T = TypeVar("_T")
|
|
7
|
-
|
|
8
|
-
class Retry:
|
|
9
|
-
def __init__(self, backoff: AbstractBackoff, retries: int, supported_errors: tuple[type[Exception], ...] = ...) -> None: ...
|
|
10
|
-
def update_supported_errors(self, specified_errors: Iterable[type[Exception]]) -> None: ...
|
|
11
|
-
def call_with_retry(self, do: Callable[[], _T], fail: Callable[[Exception], object]) -> _T: ...
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
from collections.abc import Iterable, Iterator
|
|
2
|
-
from typing import Any, Literal, TypeVar, overload
|
|
3
|
-
from typing_extensions import TypeAlias
|
|
4
|
-
|
|
5
|
-
from redis.client import Redis
|
|
6
|
-
from redis.commands.sentinel import SentinelCommands
|
|
7
|
-
from redis.connection import Connection, ConnectionPool, SSLConnection
|
|
8
|
-
from redis.exceptions import ConnectionError
|
|
9
|
-
|
|
10
|
-
_RedisT = TypeVar("_RedisT", bound=Redis[Any])
|
|
11
|
-
_AddressAndPort: TypeAlias = tuple[str, int]
|
|
12
|
-
_SentinelState: TypeAlias = dict[str, Any] # TODO: this can be a TypedDict
|
|
13
|
-
|
|
14
|
-
class MasterNotFoundError(ConnectionError): ...
|
|
15
|
-
class SlaveNotFoundError(ConnectionError): ...
|
|
16
|
-
|
|
17
|
-
class SentinelManagedConnection(Connection):
|
|
18
|
-
connection_pool: SentinelConnectionPool
|
|
19
|
-
def __init__(self, *, connection_pool: SentinelConnectionPool, **kwargs) -> None: ...
|
|
20
|
-
def connect_to(self, address: _AddressAndPort) -> None: ...
|
|
21
|
-
def connect(self) -> None: ...
|
|
22
|
-
# The result can be either `str | bytes` or `list[str | bytes]`
|
|
23
|
-
def read_response(self, disable_decoding: bool = False, *, disconnect_on_error: bool = False) -> Any: ...
|
|
24
|
-
|
|
25
|
-
class SentinelManagedSSLConnection(SentinelManagedConnection, SSLConnection): ...
|
|
26
|
-
|
|
27
|
-
class SentinelConnectionPool(ConnectionPool):
|
|
28
|
-
is_master: bool
|
|
29
|
-
check_connection: bool
|
|
30
|
-
service_name: str
|
|
31
|
-
sentinel_manager: Sentinel
|
|
32
|
-
def __init__(self, service_name: str, sentinel_manager: Sentinel, **kwargs) -> None: ...
|
|
33
|
-
def reset(self) -> None: ...
|
|
34
|
-
def owns_connection(self, connection: Connection) -> bool: ...
|
|
35
|
-
def get_master_address(self) -> _AddressAndPort: ...
|
|
36
|
-
def rotate_slaves(self) -> Iterator[_AddressAndPort]: ...
|
|
37
|
-
|
|
38
|
-
class Sentinel(SentinelCommands):
|
|
39
|
-
sentinel_kwargs: dict[str, Any]
|
|
40
|
-
sentinels: list[Redis[Any]]
|
|
41
|
-
min_other_sentinels: int
|
|
42
|
-
connection_kwargs: dict[str, Any]
|
|
43
|
-
def __init__(
|
|
44
|
-
self,
|
|
45
|
-
sentinels: Iterable[_AddressAndPort],
|
|
46
|
-
min_other_sentinels: int = 0,
|
|
47
|
-
sentinel_kwargs: dict[str, Any] | None = None,
|
|
48
|
-
**connection_kwargs,
|
|
49
|
-
) -> None: ...
|
|
50
|
-
def check_master_state(self, state: _SentinelState, service_name: str) -> bool: ...
|
|
51
|
-
def discover_master(self, service_name: str) -> _AddressAndPort: ...
|
|
52
|
-
def filter_slaves(self, slaves: Iterable[_SentinelState]) -> list[_AddressAndPort]: ...
|
|
53
|
-
def discover_slaves(self, service_name: str) -> list[_AddressAndPort]: ...
|
|
54
|
-
@overload
|
|
55
|
-
def master_for(self, service_name: str, *, connection_pool_class=..., **kwargs) -> Redis[Any]: ...
|
|
56
|
-
@overload
|
|
57
|
-
def master_for(self, service_name: str, redis_class: type[_RedisT], connection_pool_class=..., **kwargs) -> _RedisT: ...
|
|
58
|
-
@overload
|
|
59
|
-
def slave_for(self, service_name: str, *, connection_pool_class=..., **kwargs) -> Redis[Any]: ...
|
|
60
|
-
@overload
|
|
61
|
-
def slave_for(self, service_name: str, redis_class: type[_RedisT], connection_pool_class=..., **kwargs) -> _RedisT: ...
|
|
62
|
-
def execute_command(self, *args, **kwargs) -> Literal[True]: ...
|