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
|
@@ -158,33 +158,37 @@ if sys.version_info >= (3, 10):
|
|
|
158
158
|
def field(
|
|
159
159
|
*,
|
|
160
160
|
default: _T,
|
|
161
|
+
default_factory: Literal[_MISSING_TYPE.MISSING] = ...,
|
|
161
162
|
init: bool = True,
|
|
162
163
|
repr: bool = True,
|
|
163
164
|
hash: bool | None = None,
|
|
164
165
|
compare: bool = True,
|
|
165
166
|
metadata: Mapping[Any, Any] | None = None,
|
|
166
|
-
kw_only: bool = ...,
|
|
167
|
+
kw_only: bool | Literal[_MISSING_TYPE.MISSING] = ...,
|
|
167
168
|
) -> _T: ...
|
|
168
169
|
@overload
|
|
169
170
|
def field(
|
|
170
171
|
*,
|
|
172
|
+
default: Literal[_MISSING_TYPE.MISSING] = ...,
|
|
171
173
|
default_factory: Callable[[], _T],
|
|
172
174
|
init: bool = True,
|
|
173
175
|
repr: bool = True,
|
|
174
176
|
hash: bool | None = None,
|
|
175
177
|
compare: bool = True,
|
|
176
178
|
metadata: Mapping[Any, Any] | None = None,
|
|
177
|
-
kw_only: bool = ...,
|
|
179
|
+
kw_only: bool | Literal[_MISSING_TYPE.MISSING] = ...,
|
|
178
180
|
) -> _T: ...
|
|
179
181
|
@overload
|
|
180
182
|
def field(
|
|
181
183
|
*,
|
|
184
|
+
default: Literal[_MISSING_TYPE.MISSING] = ...,
|
|
185
|
+
default_factory: Literal[_MISSING_TYPE.MISSING] = ...,
|
|
182
186
|
init: bool = True,
|
|
183
187
|
repr: bool = True,
|
|
184
188
|
hash: bool | None = None,
|
|
185
189
|
compare: bool = True,
|
|
186
190
|
metadata: Mapping[Any, Any] | None = None,
|
|
187
|
-
kw_only: bool = ...,
|
|
191
|
+
kw_only: bool | Literal[_MISSING_TYPE.MISSING] = ...,
|
|
188
192
|
) -> Any: ...
|
|
189
193
|
|
|
190
194
|
else:
|
|
@@ -192,6 +196,7 @@ else:
|
|
|
192
196
|
def field(
|
|
193
197
|
*,
|
|
194
198
|
default: _T,
|
|
199
|
+
default_factory: Literal[_MISSING_TYPE.MISSING] = ...,
|
|
195
200
|
init: bool = True,
|
|
196
201
|
repr: bool = True,
|
|
197
202
|
hash: bool | None = None,
|
|
@@ -201,6 +206,7 @@ else:
|
|
|
201
206
|
@overload
|
|
202
207
|
def field(
|
|
203
208
|
*,
|
|
209
|
+
default: Literal[_MISSING_TYPE.MISSING] = ...,
|
|
204
210
|
default_factory: Callable[[], _T],
|
|
205
211
|
init: bool = True,
|
|
206
212
|
repr: bool = True,
|
|
@@ -211,6 +217,8 @@ else:
|
|
|
211
217
|
@overload
|
|
212
218
|
def field(
|
|
213
219
|
*,
|
|
220
|
+
default: Literal[_MISSING_TYPE.MISSING] = ...,
|
|
221
|
+
default_factory: Literal[_MISSING_TYPE.MISSING] = ...,
|
|
214
222
|
init: bool = True,
|
|
215
223
|
repr: bool = True,
|
|
216
224
|
hash: bool | None = None,
|
|
@@ -37,7 +37,7 @@ class timezone(tzinfo):
|
|
|
37
37
|
utc: ClassVar[timezone]
|
|
38
38
|
min: ClassVar[timezone]
|
|
39
39
|
max: ClassVar[timezone]
|
|
40
|
-
def
|
|
40
|
+
def __new__(cls, offset: timedelta, name: str = ...) -> Self: ...
|
|
41
41
|
def tzname(self, dt: datetime | None, /) -> str:
|
|
42
42
|
"""If name is specified when timezone is created, returns the name. Otherwise returns offset as 'UTC(+|-)HH:MM'."""
|
|
43
43
|
...
|
|
@@ -598,7 +598,6 @@ class Context:
|
|
|
598
598
|
clamp: int | None = ...,
|
|
599
599
|
flags: None | dict[_TrapType, bool] | Container[_TrapType] = ...,
|
|
600
600
|
traps: None | dict[_TrapType, bool] | Container[_TrapType] = ...,
|
|
601
|
-
_ignored_flags: list[_TrapType] | None = ...,
|
|
602
601
|
) -> None: ...
|
|
603
602
|
def __reduce__(self) -> tuple[type[Self], tuple[Any, ...]]: ...
|
|
604
603
|
def clear_flags(self) -> None:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from collections.abc import Callable, Iterator
|
|
2
2
|
from email.message import Message
|
|
3
|
-
from typing import Final, overload
|
|
3
|
+
from typing import ClassVar, Final, overload
|
|
4
4
|
|
|
5
5
|
__all__ = ["Charset", "add_alias", "add_charset", "add_codec"]
|
|
6
6
|
|
|
@@ -24,6 +24,7 @@ class Charset:
|
|
|
24
24
|
def body_encode(self, string: None) -> None: ...
|
|
25
25
|
@overload
|
|
26
26
|
def body_encode(self, string: str | bytes) -> str: ...
|
|
27
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
27
28
|
def __eq__(self, other: object) -> bool: ...
|
|
28
29
|
def __ne__(self, value: object, /) -> bool:
|
|
29
30
|
"""Return self!=value."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from collections.abc import Iterable
|
|
2
2
|
from email.charset import Charset
|
|
3
|
-
from typing import Any
|
|
3
|
+
from typing import Any, ClassVar
|
|
4
4
|
|
|
5
5
|
__all__ = ["Header", "decode_header", "make_header"]
|
|
6
6
|
|
|
@@ -16,6 +16,7 @@ class Header:
|
|
|
16
16
|
) -> None: ...
|
|
17
17
|
def append(self, s: bytes | bytearray | str, charset: Charset | str | None = None, errors: str = "strict") -> None: ...
|
|
18
18
|
def encode(self, splitchars: str = ";, \t", maxlinelen: int | None = None, linesep: str = "\n") -> str: ...
|
|
19
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
19
20
|
def __eq__(self, other: object) -> bool: ...
|
|
20
21
|
def __ne__(self, value: object, /) -> bool:
|
|
21
22
|
"""Return self!=value."""
|
|
@@ -172,6 +172,7 @@ class Address:
|
|
|
172
172
|
def __init__(
|
|
173
173
|
self, display_name: str = "", username: str | None = "", domain: str | None = "", addr_spec: str | None = None
|
|
174
174
|
) -> None: ...
|
|
175
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
175
176
|
def __eq__(self, other: object) -> bool: ...
|
|
176
177
|
|
|
177
178
|
class Group:
|
|
@@ -180,4 +181,5 @@ class Group:
|
|
|
180
181
|
@property
|
|
181
182
|
def addresses(self) -> tuple[Address, ...]: ...
|
|
182
183
|
def __init__(self, display_name: str | None = None, addresses: Iterable[Address] | None = None) -> None: ...
|
|
184
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
183
185
|
def __eq__(self, other: object) -> bool: ...
|
|
@@ -27,11 +27,11 @@ class Fraction(Rational):
|
|
|
27
27
|
@overload
|
|
28
28
|
def __new__(cls, numerator: int | Rational = 0, denominator: int | Rational | None = None) -> Self: ...
|
|
29
29
|
@overload
|
|
30
|
-
def __new__(cls,
|
|
30
|
+
def __new__(cls, numerator: float | Decimal | str) -> Self: ...
|
|
31
31
|
|
|
32
32
|
if sys.version_info >= (3, 14):
|
|
33
33
|
@overload
|
|
34
|
-
def __new__(cls,
|
|
34
|
+
def __new__(cls, numerator: _ConvertibleToIntegerRatio) -> Self: ...
|
|
35
35
|
|
|
36
36
|
@classmethod
|
|
37
37
|
def from_float(cls, f: float) -> Self: ...
|
|
@@ -138,7 +138,7 @@ class Fraction(Rational):
|
|
|
138
138
|
def __round__(self, ndigits: None = None) -> int: ...
|
|
139
139
|
@overload
|
|
140
140
|
def __round__(self, ndigits: int) -> Fraction: ...
|
|
141
|
-
def __hash__(self) -> int: ...
|
|
141
|
+
def __hash__(self) -> int: ... # type: ignore[override]
|
|
142
142
|
def __eq__(a, b: object) -> bool: ...
|
|
143
143
|
def __lt__(a, b: _ComparableNum) -> bool: ...
|
|
144
144
|
def __gt__(a, b: _ComparableNum) -> bool: ...
|
|
@@ -2,8 +2,8 @@ import _compression
|
|
|
2
2
|
import sys
|
|
3
3
|
import zlib
|
|
4
4
|
from _typeshed import ReadableBuffer, SizedBuffer, StrOrBytesPath
|
|
5
|
-
from io import FileIO
|
|
6
|
-
from typing import Final, Literal, Protocol,
|
|
5
|
+
from io import FileIO, TextIOWrapper
|
|
6
|
+
from typing import Final, Literal, Protocol, overload
|
|
7
7
|
from typing_extensions import TypeAlias
|
|
8
8
|
|
|
9
9
|
__all__ = ["BadGzipFile", "GzipFile", "open", "compress", "decompress"]
|
|
@@ -57,13 +57,13 @@ def open(
|
|
|
57
57
|
) -> GzipFile: ...
|
|
58
58
|
@overload
|
|
59
59
|
def open(
|
|
60
|
-
filename: StrOrBytesPath,
|
|
60
|
+
filename: StrOrBytesPath | _ReadableFileobj | _WritableFileobj,
|
|
61
61
|
mode: _OpenTextMode,
|
|
62
62
|
compresslevel: int = 9,
|
|
63
63
|
encoding: str | None = None,
|
|
64
64
|
errors: str | None = None,
|
|
65
65
|
newline: str | None = None,
|
|
66
|
-
) ->
|
|
66
|
+
) -> TextIOWrapper: ...
|
|
67
67
|
@overload
|
|
68
68
|
def open(
|
|
69
69
|
filename: StrOrBytesPath | _ReadableFileobj | _WritableFileobj,
|
|
@@ -72,7 +72,7 @@ def open(
|
|
|
72
72
|
encoding: str | None = None,
|
|
73
73
|
errors: str | None = None,
|
|
74
74
|
newline: str | None = None,
|
|
75
|
-
) -> GzipFile |
|
|
75
|
+
) -> GzipFile | TextIOWrapper: ...
|
|
76
76
|
|
|
77
77
|
class _PaddedFile:
|
|
78
78
|
file: _ReadableFileobj
|
|
@@ -14,9 +14,14 @@ class HTTPStatus(IntEnum):
|
|
|
14
14
|
def phrase(self) -> str: ...
|
|
15
15
|
@property
|
|
16
16
|
def description(self) -> str: ...
|
|
17
|
+
|
|
18
|
+
# Keep these synced with the global constants in http/client.pyi.
|
|
17
19
|
CONTINUE = 100
|
|
18
20
|
SWITCHING_PROTOCOLS = 101
|
|
19
21
|
PROCESSING = 102
|
|
22
|
+
if sys.version_info >= (3, 9):
|
|
23
|
+
EARLY_HINTS = 103
|
|
24
|
+
|
|
20
25
|
OK = 200
|
|
21
26
|
CREATED = 201
|
|
22
27
|
ACCEPTED = 202
|
|
@@ -27,6 +32,7 @@ class HTTPStatus(IntEnum):
|
|
|
27
32
|
MULTI_STATUS = 207
|
|
28
33
|
ALREADY_REPORTED = 208
|
|
29
34
|
IM_USED = 226
|
|
35
|
+
|
|
30
36
|
MULTIPLE_CHOICES = 300
|
|
31
37
|
MOVED_PERMANENTLY = 301
|
|
32
38
|
FOUND = 302
|
|
@@ -35,6 +41,7 @@ class HTTPStatus(IntEnum):
|
|
|
35
41
|
USE_PROXY = 305
|
|
36
42
|
TEMPORARY_REDIRECT = 307
|
|
37
43
|
PERMANENT_REDIRECT = 308
|
|
44
|
+
|
|
38
45
|
BAD_REQUEST = 400
|
|
39
46
|
UNAUTHORIZED = 401
|
|
40
47
|
PAYMENT_REQUIRED = 402
|
|
@@ -59,15 +66,22 @@ class HTTPStatus(IntEnum):
|
|
|
59
66
|
RANGE_NOT_SATISFIABLE = 416
|
|
60
67
|
REQUESTED_RANGE_NOT_SATISFIABLE = 416
|
|
61
68
|
EXPECTATION_FAILED = 417
|
|
69
|
+
if sys.version_info >= (3, 9):
|
|
70
|
+
IM_A_TEAPOT = 418
|
|
71
|
+
MISDIRECTED_REQUEST = 421
|
|
62
72
|
if sys.version_info >= (3, 13):
|
|
63
73
|
UNPROCESSABLE_CONTENT = 422
|
|
64
74
|
UNPROCESSABLE_ENTITY = 422
|
|
65
75
|
LOCKED = 423
|
|
66
76
|
FAILED_DEPENDENCY = 424
|
|
77
|
+
if sys.version_info >= (3, 9):
|
|
78
|
+
TOO_EARLY = 425
|
|
67
79
|
UPGRADE_REQUIRED = 426
|
|
68
80
|
PRECONDITION_REQUIRED = 428
|
|
69
81
|
TOO_MANY_REQUESTS = 429
|
|
70
82
|
REQUEST_HEADER_FIELDS_TOO_LARGE = 431
|
|
83
|
+
UNAVAILABLE_FOR_LEGAL_REASONS = 451
|
|
84
|
+
|
|
71
85
|
INTERNAL_SERVER_ERROR = 500
|
|
72
86
|
NOT_IMPLEMENTED = 501
|
|
73
87
|
BAD_GATEWAY = 502
|
|
@@ -79,12 +93,7 @@ class HTTPStatus(IntEnum):
|
|
|
79
93
|
LOOP_DETECTED = 508
|
|
80
94
|
NOT_EXTENDED = 510
|
|
81
95
|
NETWORK_AUTHENTICATION_REQUIRED = 511
|
|
82
|
-
|
|
83
|
-
UNAVAILABLE_FOR_LEGAL_REASONS = 451
|
|
84
|
-
if sys.version_info >= (3, 9):
|
|
85
|
-
EARLY_HINTS = 103
|
|
86
|
-
IM_A_TEAPOT = 418
|
|
87
|
-
TOO_EARLY = 425
|
|
96
|
+
|
|
88
97
|
if sys.version_info >= (3, 12):
|
|
89
98
|
@property
|
|
90
99
|
def is_informational(self) -> bool: ...
|
|
@@ -6,7 +6,7 @@ import types
|
|
|
6
6
|
from _typeshed import MaybeNone, ReadableBuffer, SupportsRead, SupportsReadline, WriteableBuffer
|
|
7
7
|
from collections.abc import Callable, Iterable, Iterator, Mapping
|
|
8
8
|
from socket import socket
|
|
9
|
-
from typing import BinaryIO, TypeVar, overload
|
|
9
|
+
from typing import BinaryIO, Literal, TypeVar, overload
|
|
10
10
|
from typing_extensions import Self, TypeAlias
|
|
11
11
|
|
|
12
12
|
__all__ = [
|
|
@@ -39,63 +39,85 @@ _HeaderValue: TypeAlias = ReadableBuffer | str | int
|
|
|
39
39
|
HTTP_PORT: int
|
|
40
40
|
HTTPS_PORT: int
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
42
|
+
# Keep these global constants in sync with http.HTTPStatus (http/__init__.pyi).
|
|
43
|
+
# They are present for backward compatibility reasons.
|
|
44
|
+
CONTINUE: Literal[100]
|
|
45
|
+
SWITCHING_PROTOCOLS: Literal[101]
|
|
46
|
+
PROCESSING: Literal[102]
|
|
47
|
+
if sys.version_info >= (3, 9):
|
|
48
|
+
EARLY_HINTS: Literal[103]
|
|
49
|
+
|
|
50
|
+
OK: Literal[200]
|
|
51
|
+
CREATED: Literal[201]
|
|
52
|
+
ACCEPTED: Literal[202]
|
|
53
|
+
NON_AUTHORITATIVE_INFORMATION: Literal[203]
|
|
54
|
+
NO_CONTENT: Literal[204]
|
|
55
|
+
RESET_CONTENT: Literal[205]
|
|
56
|
+
PARTIAL_CONTENT: Literal[206]
|
|
57
|
+
MULTI_STATUS: Literal[207]
|
|
58
|
+
ALREADY_REPORTED: Literal[208]
|
|
59
|
+
IM_USED: Literal[226]
|
|
60
|
+
|
|
61
|
+
MULTIPLE_CHOICES: Literal[300]
|
|
62
|
+
MOVED_PERMANENTLY: Literal[301]
|
|
63
|
+
FOUND: Literal[302]
|
|
64
|
+
SEE_OTHER: Literal[303]
|
|
65
|
+
NOT_MODIFIED: Literal[304]
|
|
66
|
+
USE_PROXY: Literal[305]
|
|
67
|
+
TEMPORARY_REDIRECT: Literal[307]
|
|
68
|
+
PERMANENT_REDIRECT: Literal[308]
|
|
69
|
+
|
|
70
|
+
BAD_REQUEST: Literal[400]
|
|
71
|
+
UNAUTHORIZED: Literal[401]
|
|
72
|
+
PAYMENT_REQUIRED: Literal[402]
|
|
73
|
+
FORBIDDEN: Literal[403]
|
|
74
|
+
NOT_FOUND: Literal[404]
|
|
75
|
+
METHOD_NOT_ALLOWED: Literal[405]
|
|
76
|
+
NOT_ACCEPTABLE: Literal[406]
|
|
77
|
+
PROXY_AUTHENTICATION_REQUIRED: Literal[407]
|
|
78
|
+
REQUEST_TIMEOUT: Literal[408]
|
|
79
|
+
CONFLICT: Literal[409]
|
|
80
|
+
GONE: Literal[410]
|
|
81
|
+
LENGTH_REQUIRED: Literal[411]
|
|
82
|
+
PRECONDITION_FAILED: Literal[412]
|
|
83
|
+
if sys.version_info >= (3, 13):
|
|
84
|
+
CONTENT_TOO_LARGE: Literal[413]
|
|
85
|
+
REQUEST_ENTITY_TOO_LARGE: Literal[413]
|
|
86
|
+
if sys.version_info >= (3, 13):
|
|
87
|
+
URI_TOO_LONG: Literal[414]
|
|
88
|
+
REQUEST_URI_TOO_LONG: Literal[414]
|
|
89
|
+
UNSUPPORTED_MEDIA_TYPE: Literal[415]
|
|
90
|
+
if sys.version_info >= (3, 13):
|
|
91
|
+
RANGE_NOT_SATISFIABLE: Literal[416]
|
|
92
|
+
REQUESTED_RANGE_NOT_SATISFIABLE: Literal[416]
|
|
93
|
+
EXPECTATION_FAILED: Literal[417]
|
|
94
|
+
if sys.version_info >= (3, 9):
|
|
95
|
+
IM_A_TEAPOT: Literal[418]
|
|
96
|
+
MISDIRECTED_REQUEST: Literal[421]
|
|
97
|
+
if sys.version_info >= (3, 13):
|
|
98
|
+
UNPROCESSABLE_CONTENT: Literal[422]
|
|
99
|
+
UNPROCESSABLE_ENTITY: Literal[422]
|
|
100
|
+
LOCKED: Literal[423]
|
|
101
|
+
FAILED_DEPENDENCY: Literal[424]
|
|
102
|
+
if sys.version_info >= (3, 9):
|
|
103
|
+
TOO_EARLY: Literal[425]
|
|
104
|
+
UPGRADE_REQUIRED: Literal[426]
|
|
105
|
+
PRECONDITION_REQUIRED: Literal[428]
|
|
106
|
+
TOO_MANY_REQUESTS: Literal[429]
|
|
107
|
+
REQUEST_HEADER_FIELDS_TOO_LARGE: Literal[431]
|
|
108
|
+
UNAVAILABLE_FOR_LEGAL_REASONS: Literal[451]
|
|
109
|
+
|
|
110
|
+
INTERNAL_SERVER_ERROR: Literal[500]
|
|
111
|
+
NOT_IMPLEMENTED: Literal[501]
|
|
112
|
+
BAD_GATEWAY: Literal[502]
|
|
113
|
+
SERVICE_UNAVAILABLE: Literal[503]
|
|
114
|
+
GATEWAY_TIMEOUT: Literal[504]
|
|
115
|
+
HTTP_VERSION_NOT_SUPPORTED: Literal[505]
|
|
116
|
+
VARIANT_ALSO_NEGOTIATES: Literal[506]
|
|
117
|
+
INSUFFICIENT_STORAGE: Literal[507]
|
|
118
|
+
LOOP_DETECTED: Literal[508]
|
|
119
|
+
NOT_EXTENDED: Literal[510]
|
|
120
|
+
NETWORK_AUTHENTICATION_REQUIRED: Literal[511]
|
|
99
121
|
|
|
100
122
|
responses: dict[int, str]
|
|
101
123
|
|
|
@@ -416,16 +416,16 @@ class BoundArguments:
|
|
|
416
416
|
def __init__(self, signature: Signature, arguments: OrderedDict[str, Any]) -> None: ...
|
|
417
417
|
def apply_defaults(self) -> None: ...
|
|
418
418
|
def __eq__(self, other: object) -> bool: ...
|
|
419
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
419
420
|
|
|
420
421
|
#
|
|
421
422
|
# Classes and functions
|
|
422
423
|
#
|
|
423
424
|
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
def
|
|
428
|
-
def walktree(classes: list[type], children: Mapping[type[Any], list[type]], parent: type[Any] | None) -> list[Any]: ...
|
|
425
|
+
_ClassTreeItem: TypeAlias = list[tuple[type, ...]] | list[_ClassTreeItem]
|
|
426
|
+
|
|
427
|
+
def getclasstree(classes: list[type], unique: bool = False) -> _ClassTreeItem: ...
|
|
428
|
+
def walktree(classes: list[type], children: Mapping[type[Any], list[type]], parent: type[Any] | None) -> _ClassTreeItem: ...
|
|
429
429
|
|
|
430
430
|
class Arguments(NamedTuple):
|
|
431
431
|
args: list[str]
|
|
@@ -44,7 +44,6 @@ class _IPAddressBase:
|
|
|
44
44
|
def version(self) -> int: ...
|
|
45
45
|
|
|
46
46
|
class _BaseAddress(_IPAddressBase):
|
|
47
|
-
def __init__(self, address: object) -> None: ...
|
|
48
47
|
def __add__(self, other: int) -> Self: ...
|
|
49
48
|
def __hash__(self) -> int: ...
|
|
50
49
|
def __int__(self) -> int: ...
|
|
@@ -66,7 +65,6 @@ class _BaseAddress(_IPAddressBase):
|
|
|
66
65
|
class _BaseNetwork(_IPAddressBase, Generic[_A]):
|
|
67
66
|
network_address: _A
|
|
68
67
|
netmask: _A
|
|
69
|
-
def __init__(self, address: object, strict: bool = ...) -> None: ...
|
|
70
68
|
def __contains__(self, other: Any) -> bool: ...
|
|
71
69
|
def __getitem__(self, n: int) -> _A: ...
|
|
72
70
|
def __iter__(self) -> Iterator[_A]: ...
|
|
@@ -183,6 +181,7 @@ class _BaseV4:
|
|
|
183
181
|
def max_prefixlen(self) -> Literal[32]: ...
|
|
184
182
|
|
|
185
183
|
class IPv4Address(_BaseV4, _BaseAddress):
|
|
184
|
+
def __init__(self, address: object) -> None: ...
|
|
186
185
|
@property
|
|
187
186
|
def is_global(self) -> bool:
|
|
188
187
|
"""
|
|
@@ -281,7 +280,8 @@ class IPv4Address(_BaseV4, _BaseAddress):
|
|
|
281
280
|
"""
|
|
282
281
|
...
|
|
283
282
|
|
|
284
|
-
class IPv4Network(_BaseV4, _BaseNetwork[IPv4Address]):
|
|
283
|
+
class IPv4Network(_BaseV4, _BaseNetwork[IPv4Address]):
|
|
284
|
+
def __init__(self, address: object, strict: bool = ...) -> None: ...
|
|
285
285
|
|
|
286
286
|
class IPv4Interface(IPv4Address):
|
|
287
287
|
netmask: IPv4Address
|
|
@@ -306,6 +306,7 @@ class _BaseV6:
|
|
|
306
306
|
def max_prefixlen(self) -> Literal[128]: ...
|
|
307
307
|
|
|
308
308
|
class IPv6Address(_BaseV6, _BaseAddress):
|
|
309
|
+
def __init__(self, address: object) -> None: ...
|
|
309
310
|
@property
|
|
310
311
|
def is_global(self) -> bool:
|
|
311
312
|
"""
|
|
@@ -455,6 +456,7 @@ class IPv6Address(_BaseV6, _BaseAddress):
|
|
|
455
456
|
def __eq__(self, other: object) -> bool: ...
|
|
456
457
|
|
|
457
458
|
class IPv6Network(_BaseV6, _BaseNetwork[IPv6Address]):
|
|
459
|
+
def __init__(self, address: object, strict: bool = ...) -> None: ...
|
|
458
460
|
@property
|
|
459
461
|
def is_site_local(self) -> bool:
|
|
460
462
|
"""
|
|
@@ -87,7 +87,7 @@ class count(Generic[_N]):
|
|
|
87
87
|
|
|
88
88
|
class cycle(Generic[_T]):
|
|
89
89
|
"""Return elements from the iterable until it is exhausted. Then repeat the sequence indefinitely."""
|
|
90
|
-
def
|
|
90
|
+
def __new__(cls, iterable: Iterable[_T], /) -> Self: ...
|
|
91
91
|
def __next__(self) -> _T:
|
|
92
92
|
"""Implement next(self)."""
|
|
93
93
|
...
|
|
@@ -102,9 +102,9 @@ class repeat(Generic[_T]):
|
|
|
102
102
|
endlessly.
|
|
103
103
|
"""
|
|
104
104
|
@overload
|
|
105
|
-
def
|
|
105
|
+
def __new__(cls, object: _T) -> Self: ...
|
|
106
106
|
@overload
|
|
107
|
-
def
|
|
107
|
+
def __new__(cls, object: _T, times: int) -> Self: ...
|
|
108
108
|
def __next__(self) -> _T:
|
|
109
109
|
"""Implement next(self)."""
|
|
110
110
|
...
|
|
@@ -118,9 +118,9 @@ class repeat(Generic[_T]):
|
|
|
118
118
|
class accumulate(Generic[_T]):
|
|
119
119
|
"""Return series of accumulated sums (or other binary function results)."""
|
|
120
120
|
@overload
|
|
121
|
-
def
|
|
121
|
+
def __new__(cls, iterable: Iterable[_T], func: None = None, *, initial: _T | None = ...) -> Self: ...
|
|
122
122
|
@overload
|
|
123
|
-
def
|
|
123
|
+
def __new__(cls, iterable: Iterable[_S], func: Callable[[_T, _S], _T], *, initial: _T | None = ...) -> Self: ...
|
|
124
124
|
def __iter__(self) -> Self:
|
|
125
125
|
"""Implement iter(self)."""
|
|
126
126
|
...
|
|
@@ -134,7 +134,7 @@ class chain(Generic[_T]):
|
|
|
134
134
|
first iterable until it is exhausted, then elements from the next
|
|
135
135
|
iterable, until all of the iterables are exhausted.
|
|
136
136
|
"""
|
|
137
|
-
def
|
|
137
|
+
def __new__(cls, *iterables: Iterable[_T]) -> Self: ...
|
|
138
138
|
def __next__(self) -> _T:
|
|
139
139
|
"""Implement next(self)."""
|
|
140
140
|
...
|
|
@@ -158,7 +158,7 @@ class compress(Generic[_T]):
|
|
|
158
158
|
Forms a shorter iterator from selected data elements using the selectors to
|
|
159
159
|
choose the data elements.
|
|
160
160
|
"""
|
|
161
|
-
def
|
|
161
|
+
def __new__(cls, data: Iterable[_T], selectors: Iterable[Any]) -> Self: ...
|
|
162
162
|
def __iter__(self) -> Self:
|
|
163
163
|
"""Implement iter(self)."""
|
|
164
164
|
...
|
|
@@ -172,7 +172,7 @@ class dropwhile(Generic[_T]):
|
|
|
172
172
|
|
|
173
173
|
Afterwards, return every element until the iterable is exhausted.
|
|
174
174
|
"""
|
|
175
|
-
def
|
|
175
|
+
def __new__(cls, predicate: _Predicate[_T], iterable: Iterable[_T], /) -> Self: ...
|
|
176
176
|
def __iter__(self) -> Self:
|
|
177
177
|
"""Implement iter(self)."""
|
|
178
178
|
...
|
|
@@ -186,7 +186,7 @@ class filterfalse(Generic[_T]):
|
|
|
186
186
|
|
|
187
187
|
If function is None, return the items that are false.
|
|
188
188
|
"""
|
|
189
|
-
def
|
|
189
|
+
def __new__(cls, function: _Predicate[_T] | None, iterable: Iterable[_T], /) -> Self: ...
|
|
190
190
|
def __iter__(self) -> Self:
|
|
191
191
|
"""Implement iter(self)."""
|
|
192
192
|
...
|
|
@@ -229,9 +229,9 @@ class islice(Generic[_T]):
|
|
|
229
229
|
but returns an iterator.
|
|
230
230
|
"""
|
|
231
231
|
@overload
|
|
232
|
-
def
|
|
232
|
+
def __new__(cls, iterable: Iterable[_T], stop: int | None, /) -> Self: ...
|
|
233
233
|
@overload
|
|
234
|
-
def
|
|
234
|
+
def __new__(cls, iterable: Iterable[_T], start: int | None, stop: int | None, step: int | None = ..., /) -> Self: ...
|
|
235
235
|
def __iter__(self) -> Self:
|
|
236
236
|
"""Implement iter(self)."""
|
|
237
237
|
...
|
|
@@ -251,7 +251,7 @@ class starmap(Generic[_T_co]):
|
|
|
251
251
|
|
|
252
252
|
class takewhile(Generic[_T]):
|
|
253
253
|
"""Return successive entries from an iterable as long as the predicate evaluates to true for each entry."""
|
|
254
|
-
def
|
|
254
|
+
def __new__(cls, predicate: _Predicate[_T], iterable: Iterable[_T], /) -> Self: ...
|
|
255
255
|
def __iter__(self) -> Self:
|
|
256
256
|
"""Implement iter(self)."""
|
|
257
257
|
...
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from _typeshed import Incomplete, StrPath
|
|
2
2
|
from collections.abc import Iterable, Iterator
|
|
3
|
-
from typing import IO, NoReturn, overload
|
|
3
|
+
from typing import IO, ClassVar, NoReturn, overload
|
|
4
4
|
|
|
5
5
|
from . import grammar
|
|
6
6
|
from .tokenize import _TokenInfo
|
|
@@ -46,5 +46,6 @@ class DFAState:
|
|
|
46
46
|
def addarc(self, next: DFAState, label: str) -> None: ...
|
|
47
47
|
def unifystate(self, old: DFAState, new: DFAState) -> None: ...
|
|
48
48
|
def __eq__(self, other: DFAState) -> bool: ... # type: ignore[override]
|
|
49
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
49
50
|
|
|
50
51
|
def generate_grammar(filename: StrPath = "Grammar.txt") -> PgenGrammar: ...
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from _typeshed import Incomplete, SupportsGetItem, SupportsLenAndGetItem, Unused
|
|
2
2
|
from abc import abstractmethod
|
|
3
3
|
from collections.abc import Iterable, Iterator, MutableSequence
|
|
4
|
-
from typing import Final
|
|
4
|
+
from typing import ClassVar, Final
|
|
5
5
|
from typing_extensions import Self, TypeAlias
|
|
6
6
|
|
|
7
7
|
from .fixer_base import BaseFix
|
|
@@ -24,6 +24,7 @@ class Base:
|
|
|
24
24
|
was_changed: bool
|
|
25
25
|
was_checked: bool
|
|
26
26
|
def __eq__(self, other: object) -> bool: ...
|
|
27
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
27
28
|
@abstractmethod
|
|
28
29
|
def _eq(self, other: Base) -> bool: ...
|
|
29
30
|
@abstractmethod
|
|
@@ -58,8 +58,8 @@ class mmap:
|
|
|
58
58
|
def __init__(self, fileno: int, length: int, tagname: str | None = ..., access: int = ..., offset: int = ...) -> None: ...
|
|
59
59
|
else:
|
|
60
60
|
if sys.version_info >= (3, 13):
|
|
61
|
-
def
|
|
62
|
-
|
|
61
|
+
def __new__(
|
|
62
|
+
cls,
|
|
63
63
|
fileno: int,
|
|
64
64
|
length: int,
|
|
65
65
|
flags: int = ...,
|
|
@@ -68,11 +68,11 @@ class mmap:
|
|
|
68
68
|
offset: int = ...,
|
|
69
69
|
*,
|
|
70
70
|
trackfd: bool = True,
|
|
71
|
-
) ->
|
|
71
|
+
) -> Self: ...
|
|
72
72
|
else:
|
|
73
|
-
def
|
|
74
|
-
|
|
75
|
-
) ->
|
|
73
|
+
def __new__(
|
|
74
|
+
cls, fileno: int, length: int, flags: int = ..., prot: int = ..., access: int = ..., offset: int = ...
|
|
75
|
+
) -> Self: ...
|
|
76
76
|
|
|
77
77
|
def close(self) -> None: ...
|
|
78
78
|
def flush(self, offset: int = ..., size: int = ...) -> None: ...
|