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
|
@@ -21,7 +21,7 @@ the project the stubs are for, but instead report them here to typeshed.**
|
|
|
21
21
|
Further documentation on stub files, typeshed, and Python's typing system in
|
|
22
22
|
general, can also be found at https://typing.readthedocs.io/en/latest/.
|
|
23
23
|
|
|
24
|
-
Typeshed supports Python versions 3.
|
|
24
|
+
Typeshed supports Python versions 3.9 to 3.13.
|
|
25
25
|
|
|
26
26
|
## Using
|
|
27
27
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
c2e4ef3ae495272f902071dcf4a0f7701c00c4a2
|
|
@@ -154,7 +154,7 @@ class Task(Future[_T_co]): # type: ignore[type-var] # pyright: ignore[reportIn
|
|
|
154
154
|
self,
|
|
155
155
|
coro: _TaskCompatibleCoro[_T_co],
|
|
156
156
|
*,
|
|
157
|
-
loop: AbstractEventLoop =
|
|
157
|
+
loop: AbstractEventLoop | None = None,
|
|
158
158
|
name: str | None = ...,
|
|
159
159
|
context: Context | None = None,
|
|
160
160
|
eager_start: bool = False,
|
|
@@ -164,13 +164,13 @@ class Task(Future[_T_co]): # type: ignore[type-var] # pyright: ignore[reportIn
|
|
|
164
164
|
self,
|
|
165
165
|
coro: _TaskCompatibleCoro[_T_co],
|
|
166
166
|
*,
|
|
167
|
-
loop: AbstractEventLoop =
|
|
167
|
+
loop: AbstractEventLoop | None = None,
|
|
168
168
|
name: str | None = ...,
|
|
169
169
|
context: Context | None = None,
|
|
170
170
|
) -> None: ...
|
|
171
171
|
else:
|
|
172
172
|
def __init__(
|
|
173
|
-
self, coro: _TaskCompatibleCoro[_T_co], *, loop: AbstractEventLoop =
|
|
173
|
+
self, coro: _TaskCompatibleCoro[_T_co], *, loop: AbstractEventLoop | None = None, name: str | None = ...
|
|
174
174
|
) -> None: ...
|
|
175
175
|
|
|
176
176
|
if sys.version_info >= (3, 12):
|
|
@@ -25,8 +25,8 @@ class blake2b:
|
|
|
25
25
|
digest_size: int
|
|
26
26
|
name: str
|
|
27
27
|
if sys.version_info >= (3, 9):
|
|
28
|
-
def
|
|
29
|
-
|
|
28
|
+
def __new__(
|
|
29
|
+
cls,
|
|
30
30
|
data: ReadableBuffer = b"",
|
|
31
31
|
/,
|
|
32
32
|
*,
|
|
@@ -42,10 +42,10 @@ class blake2b:
|
|
|
42
42
|
inner_size: int = 0,
|
|
43
43
|
last_node: bool = False,
|
|
44
44
|
usedforsecurity: bool = True,
|
|
45
|
-
) ->
|
|
45
|
+
) -> Self: ...
|
|
46
46
|
else:
|
|
47
|
-
def
|
|
48
|
-
|
|
47
|
+
def __new__(
|
|
48
|
+
cls,
|
|
49
49
|
data: ReadableBuffer = b"",
|
|
50
50
|
/,
|
|
51
51
|
*,
|
|
@@ -60,7 +60,7 @@ class blake2b:
|
|
|
60
60
|
node_depth: int = 0,
|
|
61
61
|
inner_size: int = 0,
|
|
62
62
|
last_node: bool = False,
|
|
63
|
-
) ->
|
|
63
|
+
) -> Self: ...
|
|
64
64
|
|
|
65
65
|
def copy(self) -> Self:
|
|
66
66
|
"""Return a copy of the hash object."""
|
|
@@ -86,8 +86,8 @@ class blake2s:
|
|
|
86
86
|
digest_size: int
|
|
87
87
|
name: str
|
|
88
88
|
if sys.version_info >= (3, 9):
|
|
89
|
-
def
|
|
90
|
-
|
|
89
|
+
def __new__(
|
|
90
|
+
cls,
|
|
91
91
|
data: ReadableBuffer = b"",
|
|
92
92
|
/,
|
|
93
93
|
*,
|
|
@@ -103,10 +103,10 @@ class blake2s:
|
|
|
103
103
|
inner_size: int = 0,
|
|
104
104
|
last_node: bool = False,
|
|
105
105
|
usedforsecurity: bool = True,
|
|
106
|
-
) ->
|
|
106
|
+
) -> Self: ...
|
|
107
107
|
else:
|
|
108
|
-
def
|
|
109
|
-
|
|
108
|
+
def __new__(
|
|
109
|
+
cls,
|
|
110
110
|
data: ReadableBuffer = b"",
|
|
111
111
|
/,
|
|
112
112
|
*,
|
|
@@ -121,7 +121,7 @@ class blake2s:
|
|
|
121
121
|
node_depth: int = 0,
|
|
122
122
|
inner_size: int = 0,
|
|
123
123
|
last_node: bool = False,
|
|
124
|
-
) ->
|
|
124
|
+
) -> Self: ...
|
|
125
125
|
|
|
126
126
|
def copy(self) -> Self:
|
|
127
127
|
"""Return a copy of the hash object."""
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import sys
|
|
1
2
|
from _typeshed import ReadableBuffer
|
|
2
3
|
from typing import final
|
|
4
|
+
from typing_extensions import Self
|
|
3
5
|
|
|
4
6
|
@final
|
|
5
7
|
class BZ2Compressor:
|
|
@@ -11,7 +13,11 @@ class BZ2Compressor:
|
|
|
11
13
|
|
|
12
14
|
For one-shot compression, use the compress() function instead.
|
|
13
15
|
"""
|
|
14
|
-
|
|
16
|
+
if sys.version_info >= (3, 12):
|
|
17
|
+
def __new__(cls, compresslevel: int = 9, /) -> Self: ...
|
|
18
|
+
else:
|
|
19
|
+
def __init__(self, compresslevel: int = 9, /) -> None: ...
|
|
20
|
+
|
|
15
21
|
def compress(self, data: ReadableBuffer, /) -> bytes:
|
|
16
22
|
"""
|
|
17
23
|
Provide data to the compressor object.
|
|
@@ -8,6 +8,7 @@ from typing import ( # noqa: Y022,Y038
|
|
|
8
8
|
AsyncIterator as AsyncIterator,
|
|
9
9
|
Awaitable as Awaitable,
|
|
10
10
|
Callable as Callable,
|
|
11
|
+
ClassVar,
|
|
11
12
|
Collection as Collection,
|
|
12
13
|
Container as Container,
|
|
13
14
|
Coroutine as Coroutine,
|
|
@@ -78,6 +79,7 @@ class dict_keys(KeysView[_KT_co], Generic[_KT_co, _VT_co]): # undocumented
|
|
|
78
79
|
def __reversed__(self) -> Iterator[_KT_co]:
|
|
79
80
|
"""Return a reverse iterator over the dict keys."""
|
|
80
81
|
...
|
|
82
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
81
83
|
if sys.version_info >= (3, 13):
|
|
82
84
|
def isdisjoint(self, other: Iterable[_KT_co], /) -> bool:
|
|
83
85
|
"""Return True if the view and the given iterable have a null intersection."""
|
|
@@ -107,6 +109,7 @@ class dict_items(ItemsView[_KT_co, _VT_co]): # undocumented
|
|
|
107
109
|
def __reversed__(self) -> Iterator[tuple[_KT_co, _VT_co]]:
|
|
108
110
|
"""Return a reverse iterator over the dict items."""
|
|
109
111
|
...
|
|
112
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
110
113
|
if sys.version_info >= (3, 13):
|
|
111
114
|
def isdisjoint(self, other: Iterable[tuple[_KT_co, _VT_co]], /) -> bool:
|
|
112
115
|
"""Return True if the view and the given iterable have a null intersection."""
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import sys
|
|
4
4
|
from collections.abc import Callable, Iterator, Mapping
|
|
5
5
|
from typing import Any, ClassVar, Generic, TypeVar, final, overload
|
|
6
|
-
from typing_extensions import ParamSpec
|
|
6
|
+
from typing_extensions import ParamSpec, Self
|
|
7
7
|
|
|
8
8
|
if sys.version_info >= (3, 9):
|
|
9
9
|
from types import GenericAlias
|
|
@@ -15,9 +15,9 @@ _P = ParamSpec("_P")
|
|
|
15
15
|
@final
|
|
16
16
|
class ContextVar(Generic[_T]):
|
|
17
17
|
@overload
|
|
18
|
-
def
|
|
18
|
+
def __new__(cls, name: str) -> Self: ...
|
|
19
19
|
@overload
|
|
20
|
-
def
|
|
20
|
+
def __new__(cls, name: str, *, default: _T) -> Self: ...
|
|
21
21
|
def __hash__(self) -> int:
|
|
22
22
|
"""Return hash(self)."""
|
|
23
23
|
...
|
|
@@ -89,6 +89,7 @@ class Token(Generic[_T]):
|
|
|
89
89
|
@property
|
|
90
90
|
def old_value(self) -> Any: ... # returns either _T or MISSING, but that's hard to express
|
|
91
91
|
MISSING: ClassVar[object]
|
|
92
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
92
93
|
if sys.version_info >= (3, 9):
|
|
93
94
|
def __class_getitem__(cls, item: Any, /) -> GenericAlias:
|
|
94
95
|
"""See PEP 585"""
|
|
@@ -132,6 +133,7 @@ class Context(Mapping[ContextVar[Any], Any]):
|
|
|
132
133
|
def copy(self) -> Context:
|
|
133
134
|
"""Return a shallow copy of the context object."""
|
|
134
135
|
...
|
|
136
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
135
137
|
def __getitem__(self, key: ContextVar[_T], /) -> _T:
|
|
136
138
|
"""Return self[key]."""
|
|
137
139
|
...
|
|
@@ -39,8 +39,8 @@ class Dialect:
|
|
|
39
39
|
lineterminator: str
|
|
40
40
|
quoting: _QuotingType
|
|
41
41
|
strict: bool
|
|
42
|
-
def
|
|
43
|
-
|
|
42
|
+
def __new__(
|
|
43
|
+
cls,
|
|
44
44
|
dialect: _DialectLike | None = ...,
|
|
45
45
|
delimiter: str = ",",
|
|
46
46
|
doublequote: bool = True,
|
|
@@ -50,7 +50,7 @@ class Dialect:
|
|
|
50
50
|
quoting: _QuotingType = 0,
|
|
51
51
|
skipinitialspace: bool = False,
|
|
52
52
|
strict: bool = False,
|
|
53
|
-
) ->
|
|
53
|
+
) -> Self: ...
|
|
54
54
|
|
|
55
55
|
if sys.version_info >= (3, 10):
|
|
56
56
|
# This class calls itself _csv.reader.
|
|
@@ -183,7 +183,7 @@ def reader(
|
|
|
183
183
|
...
|
|
184
184
|
def register_dialect(
|
|
185
185
|
name: str,
|
|
186
|
-
dialect: type[Dialect] = ...,
|
|
186
|
+
dialect: type[Dialect | csv.Dialect] = ...,
|
|
187
187
|
*,
|
|
188
188
|
delimiter: str = ",",
|
|
189
189
|
quotechar: str | None = '"',
|
|
@@ -220,18 +220,18 @@ class CFuncPtr(_PointerLike, _CData, metaclass=_PyCFuncPtrType):
|
|
|
220
220
|
# Abstract attribute that must be defined on subclasses
|
|
221
221
|
_flags_: ClassVar[int]
|
|
222
222
|
@overload
|
|
223
|
-
def
|
|
223
|
+
def __new__(cls) -> Self: ...
|
|
224
224
|
@overload
|
|
225
|
-
def
|
|
225
|
+
def __new__(cls, address: int, /) -> Self: ...
|
|
226
226
|
@overload
|
|
227
|
-
def
|
|
227
|
+
def __new__(cls, callable: Callable[..., Any], /) -> Self: ...
|
|
228
228
|
@overload
|
|
229
|
-
def
|
|
229
|
+
def __new__(cls, func_spec: tuple[str | int, CDLL], paramflags: tuple[_PF, ...] | None = ..., /) -> Self: ...
|
|
230
230
|
if sys.platform == "win32":
|
|
231
231
|
@overload
|
|
232
|
-
def
|
|
233
|
-
|
|
234
|
-
) ->
|
|
232
|
+
def __new__(
|
|
233
|
+
cls, vtbl_index: int, name: str, paramflags: tuple[_PF, ...] | None = ..., iid: _CData | _CDataType | None = ..., /
|
|
234
|
+
) -> Self: ...
|
|
235
235
|
|
|
236
236
|
def __call__(self, *args: Any, **kwargs: Any) -> Any:
|
|
237
237
|
"""Call self as a function."""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import sys
|
|
2
|
-
from _typeshed import ReadOnlyBuffer, SupportsRead
|
|
2
|
+
from _typeshed import ReadOnlyBuffer, SupportsRead, SupportsWrite
|
|
3
3
|
from curses import _ncurses_version
|
|
4
|
-
from typing import
|
|
4
|
+
from typing import Any, final, overload
|
|
5
5
|
from typing_extensions import TypeAlias
|
|
6
6
|
|
|
7
7
|
# NOTE: This module is ordinarily only available on Unix, but the windows-curses
|
|
@@ -1678,7 +1678,7 @@ class window: # undocumented
|
|
|
1678
1678
|
window.
|
|
1679
1679
|
"""
|
|
1680
1680
|
...
|
|
1681
|
-
def putwin(self, file:
|
|
1681
|
+
def putwin(self, file: SupportsWrite[bytes], /) -> None:
|
|
1682
1682
|
"""
|
|
1683
1683
|
Write all data associated with the window into the provided file object.
|
|
1684
1684
|
|
|
@@ -1,11 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
from _thread import _excepthook, _ExceptHookArgs
|
|
1
|
+
from _threading_local import local as local
|
|
3
2
|
from _typeshed import ProfileFunction, TraceFunction
|
|
4
|
-
from
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
from threading import (
|
|
4
|
+
TIMEOUT_MAX as TIMEOUT_MAX,
|
|
5
|
+
Barrier as Barrier,
|
|
6
|
+
BoundedSemaphore as BoundedSemaphore,
|
|
7
|
+
BrokenBarrierError as BrokenBarrierError,
|
|
8
|
+
Condition as Condition,
|
|
9
|
+
Event as Event,
|
|
10
|
+
ExceptHookArgs as ExceptHookArgs,
|
|
11
|
+
Lock as Lock,
|
|
12
|
+
RLock as RLock,
|
|
13
|
+
Semaphore as Semaphore,
|
|
14
|
+
Thread as Thread,
|
|
15
|
+
ThreadError as ThreadError,
|
|
16
|
+
Timer as Timer,
|
|
17
|
+
_DummyThread as _DummyThread,
|
|
18
|
+
_RLock as _RLock,
|
|
19
|
+
excepthook as excepthook,
|
|
20
|
+
)
|
|
9
21
|
|
|
10
22
|
__all__ = [
|
|
11
23
|
"get_ident",
|
|
@@ -42,123 +54,3 @@ def main_thread() -> Thread: ...
|
|
|
42
54
|
def settrace(func: TraceFunction) -> None: ...
|
|
43
55
|
def setprofile(func: ProfileFunction | None) -> None: ...
|
|
44
56
|
def stack_size(size: int | None = None) -> int: ...
|
|
45
|
-
|
|
46
|
-
TIMEOUT_MAX: float
|
|
47
|
-
|
|
48
|
-
class ThreadError(Exception): ...
|
|
49
|
-
|
|
50
|
-
class local:
|
|
51
|
-
def __getattribute__(self, name: str) -> Any: ...
|
|
52
|
-
def __setattr__(self, name: str, value: Any) -> None: ...
|
|
53
|
-
def __delattr__(self, name: str) -> None: ...
|
|
54
|
-
|
|
55
|
-
class Thread:
|
|
56
|
-
name: str
|
|
57
|
-
daemon: bool
|
|
58
|
-
@property
|
|
59
|
-
def ident(self) -> int | None: ...
|
|
60
|
-
def __init__(
|
|
61
|
-
self,
|
|
62
|
-
group: None = None,
|
|
63
|
-
target: Callable[..., object] | None = None,
|
|
64
|
-
name: str | None = None,
|
|
65
|
-
args: Iterable[Any] = (),
|
|
66
|
-
kwargs: Mapping[str, Any] | None = None,
|
|
67
|
-
*,
|
|
68
|
-
daemon: bool | None = None,
|
|
69
|
-
) -> None: ...
|
|
70
|
-
def start(self) -> None: ...
|
|
71
|
-
def run(self) -> None: ...
|
|
72
|
-
def join(self, timeout: float | None = None) -> None: ...
|
|
73
|
-
def getName(self) -> str: ...
|
|
74
|
-
def setName(self, name: str) -> None: ...
|
|
75
|
-
@property
|
|
76
|
-
def native_id(self) -> int | None: ... # only available on some platforms
|
|
77
|
-
def is_alive(self) -> bool: ...
|
|
78
|
-
if sys.version_info < (3, 9):
|
|
79
|
-
def isAlive(self) -> bool: ...
|
|
80
|
-
|
|
81
|
-
def isDaemon(self) -> bool: ...
|
|
82
|
-
def setDaemon(self, daemonic: bool) -> None: ...
|
|
83
|
-
|
|
84
|
-
class _DummyThread(Thread): ...
|
|
85
|
-
|
|
86
|
-
class Lock:
|
|
87
|
-
def __enter__(self) -> bool: ...
|
|
88
|
-
def __exit__(
|
|
89
|
-
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
|
90
|
-
) -> bool | None: ...
|
|
91
|
-
def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...
|
|
92
|
-
def release(self) -> None: ...
|
|
93
|
-
def locked(self) -> bool: ...
|
|
94
|
-
|
|
95
|
-
class _RLock:
|
|
96
|
-
def __enter__(self) -> bool: ...
|
|
97
|
-
def __exit__(
|
|
98
|
-
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
|
99
|
-
) -> bool | None: ...
|
|
100
|
-
def acquire(self, blocking: bool = True, timeout: float = -1) -> bool: ...
|
|
101
|
-
def release(self) -> None: ...
|
|
102
|
-
|
|
103
|
-
RLock = _RLock
|
|
104
|
-
|
|
105
|
-
class Condition:
|
|
106
|
-
def __init__(self, lock: Lock | _RLock | None = None) -> None: ...
|
|
107
|
-
def __enter__(self) -> bool: ...
|
|
108
|
-
def __exit__(
|
|
109
|
-
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
|
110
|
-
) -> bool | None: ...
|
|
111
|
-
def acquire(self, blocking: bool = ..., timeout: float = ...) -> bool: ...
|
|
112
|
-
def release(self) -> None: ...
|
|
113
|
-
def wait(self, timeout: float | None = None) -> bool: ...
|
|
114
|
-
def wait_for(self, predicate: Callable[[], _T], timeout: float | None = None) -> _T: ...
|
|
115
|
-
def notify(self, n: int = 1) -> None: ...
|
|
116
|
-
def notify_all(self) -> None: ...
|
|
117
|
-
def notifyAll(self) -> None: ...
|
|
118
|
-
|
|
119
|
-
class Semaphore:
|
|
120
|
-
def __init__(self, value: int = 1) -> None: ...
|
|
121
|
-
def __exit__(
|
|
122
|
-
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
|
123
|
-
) -> bool | None: ...
|
|
124
|
-
def acquire(self, blocking: bool = True, timeout: float | None = None) -> bool: ...
|
|
125
|
-
def __enter__(self, blocking: bool = True, timeout: float | None = None) -> bool: ...
|
|
126
|
-
if sys.version_info >= (3, 9):
|
|
127
|
-
def release(self, n: int = ...) -> None: ...
|
|
128
|
-
else:
|
|
129
|
-
def release(self) -> None: ...
|
|
130
|
-
|
|
131
|
-
class BoundedSemaphore(Semaphore): ...
|
|
132
|
-
|
|
133
|
-
class Event:
|
|
134
|
-
def is_set(self) -> bool: ...
|
|
135
|
-
def set(self) -> None: ...
|
|
136
|
-
def clear(self) -> None: ...
|
|
137
|
-
def wait(self, timeout: float | None = None) -> bool: ...
|
|
138
|
-
|
|
139
|
-
excepthook = _excepthook
|
|
140
|
-
ExceptHookArgs = _ExceptHookArgs
|
|
141
|
-
|
|
142
|
-
class Timer(Thread):
|
|
143
|
-
def __init__(
|
|
144
|
-
self,
|
|
145
|
-
interval: float,
|
|
146
|
-
function: Callable[..., object],
|
|
147
|
-
args: Iterable[Any] | None = None,
|
|
148
|
-
kwargs: Mapping[str, Any] | None = None,
|
|
149
|
-
) -> None: ...
|
|
150
|
-
def cancel(self) -> None: ...
|
|
151
|
-
|
|
152
|
-
class Barrier:
|
|
153
|
-
@property
|
|
154
|
-
def parties(self) -> int: ...
|
|
155
|
-
@property
|
|
156
|
-
def n_waiting(self) -> int: ...
|
|
157
|
-
@property
|
|
158
|
-
def broken(self) -> bool: ...
|
|
159
|
-
def __init__(self, parties: int, action: Callable[[], None] | None = None, timeout: float | None = None) -> None: ...
|
|
160
|
-
def wait(self, timeout: float | None = None) -> int: ...
|
|
161
|
-
def reset(self) -> None: ...
|
|
162
|
-
def abort(self) -> None: ...
|
|
163
|
-
|
|
164
|
-
class BrokenBarrierError(RuntimeError): ...
|
|
@@ -5,7 +5,7 @@ import types
|
|
|
5
5
|
from _typeshed.importlib import LoaderProtocol
|
|
6
6
|
from collections.abc import Mapping, Sequence
|
|
7
7
|
from types import ModuleType
|
|
8
|
-
from typing import Any
|
|
8
|
+
from typing import Any, ClassVar
|
|
9
9
|
|
|
10
10
|
# Signature of `builtins.__import__` should be kept identical to `importlib.__import__`
|
|
11
11
|
def __import__(
|
|
@@ -45,6 +45,7 @@ class ModuleSpec:
|
|
|
45
45
|
...
|
|
46
46
|
has_location: bool
|
|
47
47
|
def __eq__(self, other: object) -> bool: ...
|
|
48
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
48
49
|
|
|
49
50
|
class BuiltinImporter(importlib.abc.MetaPathFinder, importlib.abc.InspectLoader):
|
|
50
51
|
# MetaPathFinder
|
|
@@ -3,7 +3,10 @@ This module provides primitive operations to manage Python interpreters.
|
|
|
3
3
|
The 'interpreters' module provides a more convenient interface.
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
|
-
from typing import Any, SupportsIndex
|
|
6
|
+
from typing import Any, Literal, SupportsIndex
|
|
7
|
+
from typing_extensions import TypeAlias
|
|
8
|
+
|
|
9
|
+
_UnboundOp: TypeAlias = Literal[1, 2, 3]
|
|
7
10
|
|
|
8
11
|
class QueueError(RuntimeError):
|
|
9
12
|
"""Indicates that a queue-related error happened."""
|
|
@@ -18,7 +21,7 @@ def bind(qid: SupportsIndex) -> None:
|
|
|
18
21
|
The queue is not destroyed until there are no references left.
|
|
19
22
|
"""
|
|
20
23
|
...
|
|
21
|
-
def create(maxsize: SupportsIndex, fmt: SupportsIndex) -> int:
|
|
24
|
+
def create(maxsize: SupportsIndex, fmt: SupportsIndex, unboundop: _UnboundOp) -> int:
|
|
22
25
|
"""
|
|
23
26
|
create(maxsize, fmt, unboundop) -> qid
|
|
24
27
|
|
|
@@ -37,7 +40,7 @@ def destroy(qid: SupportsIndex) -> None:
|
|
|
37
40
|
will behave as though it never existed.
|
|
38
41
|
"""
|
|
39
42
|
...
|
|
40
|
-
def get(qid: SupportsIndex) -> tuple[Any, int]:
|
|
43
|
+
def get(qid: SupportsIndex) -> tuple[Any, int, _UnboundOp | None]:
|
|
41
44
|
"""
|
|
42
45
|
get(qid) -> (obj, fmt)
|
|
43
46
|
|
|
@@ -61,7 +64,7 @@ def get_maxsize(qid: SupportsIndex) -> int:
|
|
|
61
64
|
Return the maximum number of items in the queue.
|
|
62
65
|
"""
|
|
63
66
|
...
|
|
64
|
-
def get_queue_defaults(qid: SupportsIndex) -> tuple[int]:
|
|
67
|
+
def get_queue_defaults(qid: SupportsIndex) -> tuple[int, _UnboundOp]:
|
|
65
68
|
"""
|
|
66
69
|
get_queue_defaults(qid)
|
|
67
70
|
|
|
@@ -75,7 +78,7 @@ def is_full(qid: SupportsIndex) -> bool:
|
|
|
75
78
|
Return true if the queue has a maxsize and has reached it.
|
|
76
79
|
"""
|
|
77
80
|
...
|
|
78
|
-
def list_all() -> list[tuple[int, int]]:
|
|
81
|
+
def list_all() -> list[tuple[int, int, _UnboundOp]]:
|
|
79
82
|
"""
|
|
80
83
|
list_all() -> [(qid, fmt)]
|
|
81
84
|
|
|
@@ -83,7 +86,7 @@ def list_all() -> list[tuple[int, int]]:
|
|
|
83
86
|
Each corresponding default format is also included.
|
|
84
87
|
"""
|
|
85
88
|
...
|
|
86
|
-
def put(qid: SupportsIndex, obj: Any, fmt: SupportsIndex) -> None:
|
|
89
|
+
def put(qid: SupportsIndex, obj: Any, fmt: SupportsIndex, unboundop: _UnboundOp) -> None:
|
|
87
90
|
"""
|
|
88
91
|
put(qid, obj, fmt)
|
|
89
92
|
|
|
@@ -104,7 +104,9 @@ def whence(id: SupportsIndex) -> int:
|
|
|
104
104
|
Return an identifier for where the interpreter was created.
|
|
105
105
|
"""
|
|
106
106
|
...
|
|
107
|
-
def exec(
|
|
107
|
+
def exec(
|
|
108
|
+
id: SupportsIndex, code: str | types.CodeType | Callable[[], object], shared: bool | None = None, *, restrict: bool = False
|
|
109
|
+
) -> None | types.SimpleNamespace:
|
|
108
110
|
"""
|
|
109
111
|
exec(id, code, shared=None, *, restrict=False)
|
|
110
112
|
|
|
@@ -441,7 +441,7 @@ class BufferedRWPair(BufferedIOBase, _BufferedIOBase):
|
|
|
441
441
|
writeable respectively. If the buffer_size is omitted it defaults to
|
|
442
442
|
DEFAULT_BUFFER_SIZE.
|
|
443
443
|
"""
|
|
444
|
-
def __init__(self, reader: RawIOBase, writer: RawIOBase, buffer_size: int = 8192) -> None: ...
|
|
444
|
+
def __init__(self, reader: RawIOBase, writer: RawIOBase, buffer_size: int = 8192, /) -> None: ...
|
|
445
445
|
def peek(self, size: int = 0, /) -> bytes: ...
|
|
446
446
|
|
|
447
447
|
class _TextIOBase(_IOBase):
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from collections.abc import Callable
|
|
4
4
|
from typing import Any, final
|
|
5
|
+
from typing_extensions import Self
|
|
5
6
|
|
|
6
7
|
@final
|
|
7
8
|
class make_encoder:
|
|
@@ -38,8 +39,8 @@ class make_encoder:
|
|
|
38
39
|
def item_separator(self) -> str:
|
|
39
40
|
"""item_separator"""
|
|
40
41
|
...
|
|
41
|
-
def
|
|
42
|
-
|
|
42
|
+
def __new__(
|
|
43
|
+
cls,
|
|
43
44
|
markers: dict[int, Any] | None,
|
|
44
45
|
default: Callable[[Any], Any],
|
|
45
46
|
encoder: Callable[[str], str],
|
|
@@ -49,7 +50,7 @@ class make_encoder:
|
|
|
49
50
|
sort_keys: bool,
|
|
50
51
|
skipkeys: bool,
|
|
51
52
|
allow_nan: bool,
|
|
52
|
-
) ->
|
|
53
|
+
) -> Self: ...
|
|
53
54
|
def __call__(self, obj: object, _current_indent_level: int) -> Any:
|
|
54
55
|
"""Call self as a function."""
|
|
55
56
|
...
|
|
@@ -64,7 +65,7 @@ class make_scanner:
|
|
|
64
65
|
parse_float: Any
|
|
65
66
|
strict: bool
|
|
66
67
|
# TODO: 'context' needs the attrs above (ducktype), but not __call__.
|
|
67
|
-
def
|
|
68
|
+
def __new__(cls, context: make_scanner) -> Self: ...
|
|
68
69
|
def __call__(self, string: str, index: int) -> tuple[Any, int]:
|
|
69
70
|
"""Call self as a function."""
|
|
70
71
|
...
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import sys
|
|
1
2
|
from _typeshed import ReadableBuffer
|
|
2
3
|
from collections.abc import Mapping, Sequence
|
|
3
4
|
from typing import Any, Final, final
|
|
4
|
-
from typing_extensions import TypeAlias
|
|
5
|
+
from typing_extensions import Self, TypeAlias
|
|
5
6
|
|
|
6
7
|
_FilterChain: TypeAlias = Sequence[Mapping[str, Any]]
|
|
7
8
|
|
|
@@ -56,7 +57,11 @@ class LZMADecompressor:
|
|
|
56
57
|
|
|
57
58
|
For one-shot decompression, use the decompress() function instead.
|
|
58
59
|
"""
|
|
59
|
-
|
|
60
|
+
if sys.version_info >= (3, 12):
|
|
61
|
+
def __new__(cls, format: int | None = ..., memlimit: int | None = ..., filters: _FilterChain | None = ...) -> Self: ...
|
|
62
|
+
else:
|
|
63
|
+
def __init__(self, format: int | None = ..., memlimit: int | None = ..., filters: _FilterChain | None = ...) -> None: ...
|
|
64
|
+
|
|
60
65
|
def decompress(self, data: ReadableBuffer, max_length: int = -1) -> bytes:
|
|
61
66
|
"""
|
|
62
67
|
Decompress *data*, returning uncompressed data as bytes.
|
|
@@ -122,9 +127,15 @@ class LZMACompressor:
|
|
|
122
127
|
|
|
123
128
|
For one-shot compression, use the compress() function instead.
|
|
124
129
|
"""
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
130
|
+
if sys.version_info >= (3, 12):
|
|
131
|
+
def __new__(
|
|
132
|
+
cls, format: int | None = ..., check: int = ..., preset: int | None = ..., filters: _FilterChain | None = ...
|
|
133
|
+
) -> Self: ...
|
|
134
|
+
else:
|
|
135
|
+
def __init__(
|
|
136
|
+
self, format: int | None = ..., check: int = ..., preset: int | None = ..., filters: _FilterChain | None = ...
|
|
137
|
+
) -> None: ...
|
|
138
|
+
|
|
128
139
|
def compress(self, data: ReadableBuffer, /) -> bytes:
|
|
129
140
|
"""
|
|
130
141
|
Provide data to the compressor object.
|