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
|
@@ -13,6 +13,7 @@ from socket import AddressFamily, SocketKind, _Address, _RetAddress, socket
|
|
|
13
13
|
from typing import IO, Any, Literal, TypeVar, overload
|
|
14
14
|
from typing_extensions import TypeAlias, TypeVarTuple, Unpack
|
|
15
15
|
|
|
16
|
+
# Keep asyncio.__all__ updated with any changes to __all__ here
|
|
16
17
|
if sys.version_info >= (3, 9):
|
|
17
18
|
__all__ = ("BaseEventLoop", "Server")
|
|
18
19
|
else:
|
|
@@ -452,6 +453,7 @@ class BaseEventLoop(AbstractEventLoop):
|
|
|
452
453
|
bufsize: Literal[0] = 0,
|
|
453
454
|
encoding: None = None,
|
|
454
455
|
errors: None = None,
|
|
456
|
+
text: Literal[False] | None = None,
|
|
455
457
|
**kwargs: Any,
|
|
456
458
|
) -> tuple[SubprocessTransport, _ProtocolT]: ...
|
|
457
459
|
def add_reader(self, fd: FileDescriptorLike, callback: Callable[[Unpack[_Ts]], Any], *args: Unpack[_Ts]) -> None: ...
|
|
@@ -3,6 +3,7 @@ from collections.abc import Awaitable, Callable, Coroutine
|
|
|
3
3
|
from typing import Any, TypeVar, overload
|
|
4
4
|
from typing_extensions import ParamSpec, TypeGuard, TypeIs
|
|
5
5
|
|
|
6
|
+
# Keep asyncio.__all__ updated with any changes to __all__ here
|
|
6
7
|
if sys.version_info >= (3, 11):
|
|
7
8
|
__all__ = ("iscoroutinefunction", "iscoroutine")
|
|
8
9
|
else:
|
|
@@ -22,6 +22,7 @@ from .tasks import Task
|
|
|
22
22
|
from .transports import BaseTransport, DatagramTransport, ReadTransport, SubprocessTransport, Transport, WriteTransport
|
|
23
23
|
from .unix_events import AbstractChildWatcher
|
|
24
24
|
|
|
25
|
+
# Keep asyncio.__all__ updated with any changes to __all__ here
|
|
25
26
|
if sys.version_info >= (3, 14):
|
|
26
27
|
__all__ = (
|
|
27
28
|
"AbstractEventLoopPolicy",
|
|
@@ -15,6 +15,7 @@ if sys.version_info >= (3, 10):
|
|
|
15
15
|
else:
|
|
16
16
|
_LoopBoundMixin = object
|
|
17
17
|
|
|
18
|
+
# Keep asyncio.__all__ updated with any changes to __all__ here
|
|
18
19
|
if sys.version_info >= (3, 11):
|
|
19
20
|
__all__ = ("Lock", "Event", "Condition", "Semaphore", "BoundedSemaphore", "Barrier")
|
|
20
21
|
else:
|
|
@@ -2,6 +2,7 @@ from _typeshed import ReadableBuffer
|
|
|
2
2
|
from asyncio import transports
|
|
3
3
|
from typing import Any
|
|
4
4
|
|
|
5
|
+
# Keep asyncio.__all__ updated with any changes to __all__ here
|
|
5
6
|
__all__ = ("BaseProtocol", "Protocol", "DatagramProtocol", "SubprocessProtocol", "BufferedProtocol")
|
|
6
7
|
|
|
7
8
|
class BaseProtocol:
|
|
@@ -13,6 +13,7 @@ else:
|
|
|
13
13
|
class QueueEmpty(Exception): ...
|
|
14
14
|
class QueueFull(Exception): ...
|
|
15
15
|
|
|
16
|
+
# Keep asyncio.__all__ updated with any changes to __all__ here
|
|
16
17
|
if sys.version_info >= (3, 13):
|
|
17
18
|
__all__ = ("Queue", "PriorityQueue", "LifoQueue", "QueueFull", "QueueEmpty", "QueueShutDown")
|
|
18
19
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import selectors
|
|
2
|
+
from socket import socket
|
|
2
3
|
|
|
3
4
|
from . import base_events
|
|
4
5
|
|
|
@@ -6,3 +7,4 @@ __all__ = ("BaseSelectorEventLoop",)
|
|
|
6
7
|
|
|
7
8
|
class BaseSelectorEventLoop(base_events.BaseEventLoop):
|
|
8
9
|
def __init__(self, selector: selectors.BaseSelector | None = None) -> None: ...
|
|
10
|
+
async def sock_recv(self, sock: socket, n: int) -> bytes: ...
|
|
@@ -9,6 +9,7 @@ from typing_extensions import Self, TypeAlias
|
|
|
9
9
|
from . import events, protocols, transports
|
|
10
10
|
from .base_events import Server
|
|
11
11
|
|
|
12
|
+
# Keep asyncio.__all__ updated with any changes to __all__ here
|
|
12
13
|
if sys.platform == "win32":
|
|
13
14
|
__all__ = ("StreamReader", "StreamWriter", "StreamReaderProtocol", "open_connection", "start_server")
|
|
14
15
|
else:
|
|
@@ -5,6 +5,7 @@ from asyncio import events, protocols, streams, transports
|
|
|
5
5
|
from collections.abc import Callable, Collection
|
|
6
6
|
from typing import IO, Any, Literal
|
|
7
7
|
|
|
8
|
+
# Keep asyncio.__all__ updated with any changes to __all__ here
|
|
8
9
|
__all__ = ("create_subprocess_exec", "create_subprocess_shell")
|
|
9
10
|
|
|
10
11
|
PIPE: int
|
|
@@ -4,6 +4,7 @@ from collections.abc import Iterable, Mapping
|
|
|
4
4
|
from socket import _Address
|
|
5
5
|
from typing import Any
|
|
6
6
|
|
|
7
|
+
# Keep asyncio.__all__ updated with any changes to __all__ here
|
|
7
8
|
__all__ = ("BaseTransport", "ReadTransport", "WriteTransport", "Transport", "DatagramTransport", "SubprocessTransport")
|
|
8
9
|
|
|
9
10
|
class BaseTransport:
|
|
@@ -13,10 +13,12 @@ from .selector_events import BaseSelectorEventLoop
|
|
|
13
13
|
|
|
14
14
|
_Ts = TypeVarTuple("_Ts")
|
|
15
15
|
|
|
16
|
+
# Keep asyncio.__all__ updated with any changes to __all__ here
|
|
16
17
|
if sys.platform != "win32":
|
|
17
18
|
if sys.version_info >= (3, 14):
|
|
18
19
|
__all__ = ("SelectorEventLoop", "DefaultEventLoopPolicy", "EventLoop")
|
|
19
20
|
elif sys.version_info >= (3, 13):
|
|
21
|
+
# Adds EventLoop
|
|
20
22
|
__all__ = (
|
|
21
23
|
"SelectorEventLoop",
|
|
22
24
|
"AbstractChildWatcher",
|
|
@@ -29,6 +31,7 @@ if sys.platform != "win32":
|
|
|
29
31
|
"EventLoop",
|
|
30
32
|
)
|
|
31
33
|
elif sys.version_info >= (3, 9):
|
|
34
|
+
# adds PidfdChildWatcher
|
|
32
35
|
__all__ = (
|
|
33
36
|
"SelectorEventLoop",
|
|
34
37
|
"AbstractChildWatcher",
|
|
@@ -6,6 +6,7 @@ from typing import IO, Any, ClassVar, Final, NoReturn
|
|
|
6
6
|
|
|
7
7
|
from . import events, futures, proactor_events, selector_events, streams, windows_utils
|
|
8
8
|
|
|
9
|
+
# Keep asyncio.__all__ updated with any changes to __all__ here
|
|
9
10
|
if sys.platform == "win32":
|
|
10
11
|
if sys.version_info >= (3, 13):
|
|
11
12
|
# 3.13 added `EventLoop`.
|
|
@@ -14,6 +14,7 @@ which the built-in of that name is also needed.
|
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
16
|
import _ast
|
|
17
|
+
import _sitebuiltins
|
|
17
18
|
import _typeshed
|
|
18
19
|
import sys
|
|
19
20
|
import types
|
|
@@ -60,7 +61,6 @@ from typing import ( # noqa: Y022
|
|
|
60
61
|
Mapping,
|
|
61
62
|
MutableMapping,
|
|
62
63
|
MutableSequence,
|
|
63
|
-
NoReturn,
|
|
64
64
|
Protocol,
|
|
65
65
|
Sequence,
|
|
66
66
|
SupportsAbs,
|
|
@@ -4116,8 +4116,10 @@ def compile(
|
|
|
4116
4116
|
in addition to any features explicitly specified.
|
|
4117
4117
|
"""
|
|
4118
4118
|
...
|
|
4119
|
-
|
|
4120
|
-
|
|
4119
|
+
|
|
4120
|
+
copyright: _sitebuiltins._Printer
|
|
4121
|
+
credits: _sitebuiltins._Printer
|
|
4122
|
+
|
|
4121
4123
|
def delattr(obj: object, name: str, /) -> None:
|
|
4122
4124
|
"""
|
|
4123
4125
|
Deletes the named attribute from the given object.
|
|
@@ -4219,7 +4221,7 @@ else:
|
|
|
4219
4221
|
/,
|
|
4220
4222
|
) -> None: ...
|
|
4221
4223
|
|
|
4222
|
-
|
|
4224
|
+
exit: _sitebuiltins.Quitter
|
|
4223
4225
|
|
|
4224
4226
|
class filter(Generic[_T]):
|
|
4225
4227
|
"""
|
|
@@ -4340,7 +4342,9 @@ def hash(obj: object, /) -> int:
|
|
|
4340
4342
|
reverse is not necessarily true.
|
|
4341
4343
|
"""
|
|
4342
4344
|
...
|
|
4343
|
-
|
|
4345
|
+
|
|
4346
|
+
help: _sitebuiltins._Helper
|
|
4347
|
+
|
|
4344
4348
|
def hex(number: int | SupportsIndex, /) -> str:
|
|
4345
4349
|
"""
|
|
4346
4350
|
Return the hexadecimal representation of an integer.
|
|
@@ -4444,7 +4448,9 @@ def issubclass(cls: type, class_or_tuple: _ClassInfo, /) -> bool:
|
|
|
4444
4448
|
def len(obj: Sized, /) -> int:
|
|
4445
4449
|
"""Return the number of items in a container."""
|
|
4446
4450
|
...
|
|
4447
|
-
|
|
4451
|
+
|
|
4452
|
+
license: _sitebuiltins._Printer
|
|
4453
|
+
|
|
4448
4454
|
def locals() -> dict[str, Any]:
|
|
4449
4455
|
"""
|
|
4450
4456
|
Return a dictionary containing the current scope's local variables.
|
|
@@ -4461,18 +4467,18 @@ class map(Generic[_S]):
|
|
|
4461
4467
|
each of the iterables. Stops when the shortest iterable is exhausted.
|
|
4462
4468
|
"""
|
|
4463
4469
|
@overload
|
|
4464
|
-
def __new__(cls, func: Callable[[_T1], _S],
|
|
4470
|
+
def __new__(cls, func: Callable[[_T1], _S], iterable: Iterable[_T1], /) -> Self: ...
|
|
4465
4471
|
@overload
|
|
4466
|
-
def __new__(cls, func: Callable[[_T1, _T2], _S],
|
|
4472
|
+
def __new__(cls, func: Callable[[_T1, _T2], _S], iterable: Iterable[_T1], iter2: Iterable[_T2], /) -> Self: ...
|
|
4467
4473
|
@overload
|
|
4468
4474
|
def __new__(
|
|
4469
|
-
cls, func: Callable[[_T1, _T2, _T3], _S],
|
|
4475
|
+
cls, func: Callable[[_T1, _T2, _T3], _S], iterable: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], /
|
|
4470
4476
|
) -> Self: ...
|
|
4471
4477
|
@overload
|
|
4472
4478
|
def __new__(
|
|
4473
4479
|
cls,
|
|
4474
4480
|
func: Callable[[_T1, _T2, _T3, _T4], _S],
|
|
4475
|
-
|
|
4481
|
+
iterable: Iterable[_T1],
|
|
4476
4482
|
iter2: Iterable[_T2],
|
|
4477
4483
|
iter3: Iterable[_T3],
|
|
4478
4484
|
iter4: Iterable[_T4],
|
|
@@ -4482,7 +4488,7 @@ class map(Generic[_S]):
|
|
|
4482
4488
|
def __new__(
|
|
4483
4489
|
cls,
|
|
4484
4490
|
func: Callable[[_T1, _T2, _T3, _T4, _T5], _S],
|
|
4485
|
-
|
|
4491
|
+
iterable: Iterable[_T1],
|
|
4486
4492
|
iter2: Iterable[_T2],
|
|
4487
4493
|
iter3: Iterable[_T3],
|
|
4488
4494
|
iter4: Iterable[_T4],
|
|
@@ -4493,7 +4499,7 @@ class map(Generic[_S]):
|
|
|
4493
4499
|
def __new__(
|
|
4494
4500
|
cls,
|
|
4495
4501
|
func: Callable[..., _S],
|
|
4496
|
-
|
|
4502
|
+
iterable: Iterable[Any],
|
|
4497
4503
|
iter2: Iterable[Any],
|
|
4498
4504
|
iter3: Iterable[Any],
|
|
4499
4505
|
iter4: Iterable[Any],
|
|
@@ -5789,7 +5795,8 @@ def pow(base: _SupportsSomeKindOfPow, exp: complex, mod: None = None) -> complex
|
|
|
5789
5795
|
invoked using the three argument form.
|
|
5790
5796
|
"""
|
|
5791
5797
|
...
|
|
5792
|
-
|
|
5798
|
+
|
|
5799
|
+
quit: _sitebuiltins.Quitter
|
|
5793
5800
|
|
|
5794
5801
|
class reversed(Generic[_T]):
|
|
5795
5802
|
"""Return a reverse iterator over the values of the given sequence."""
|
|
@@ -6189,10 +6196,9 @@ class ReferenceError(Exception):
|
|
|
6189
6196
|
class RuntimeError(Exception):
|
|
6190
6197
|
"""Unspecified run-time error."""
|
|
6191
6198
|
...
|
|
6192
|
-
|
|
6193
6199
|
class StopAsyncIteration(Exception):
|
|
6194
6200
|
"""Signal the end from iterator.__anext__()."""
|
|
6195
|
-
|
|
6201
|
+
...
|
|
6196
6202
|
|
|
6197
6203
|
class SyntaxError(Exception):
|
|
6198
6204
|
"""Invalid syntax."""
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import sys
|
|
1
2
|
from types import CodeType
|
|
2
3
|
|
|
3
4
|
__all__ = ["compile_command", "Compile", "CommandCompiler"]
|
|
@@ -6,7 +7,10 @@ def compile_command(source: str, filename: str = "<input>", symbol: str = "singl
|
|
|
6
7
|
|
|
7
8
|
class Compile:
|
|
8
9
|
flags: int
|
|
9
|
-
|
|
10
|
+
if sys.version_info >= (3, 13):
|
|
11
|
+
def __call__(self, source: str, filename: str, symbol: str, flags: int = 0) -> CodeType: ...
|
|
12
|
+
else:
|
|
13
|
+
def __call__(self, source: str, filename: str, symbol: str) -> CodeType: ...
|
|
10
14
|
|
|
11
15
|
class CommandCompiler:
|
|
12
16
|
compiler: Compile
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import sys
|
|
2
2
|
from _collections_abc import dict_items, dict_keys, dict_values
|
|
3
3
|
from _typeshed import SupportsItems, SupportsKeysAndGetItem, SupportsRichComparison, SupportsRichComparisonT
|
|
4
|
-
from typing import Any, Generic, NoReturn, SupportsIndex, TypeVar, final, overload
|
|
4
|
+
from typing import Any, ClassVar, Generic, NoReturn, SupportsIndex, TypeVar, final, overload
|
|
5
5
|
from typing_extensions import Self
|
|
6
6
|
|
|
7
7
|
if sys.version_info >= (3, 9):
|
|
@@ -119,6 +119,7 @@ class UserList(MutableSequence[_T]):
|
|
|
119
119
|
def __init__(self, initlist: None = None) -> None: ...
|
|
120
120
|
@overload
|
|
121
121
|
def __init__(self, initlist: Iterable[_T]) -> None: ...
|
|
122
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
122
123
|
def __lt__(self, other: list[_T] | UserList[_T]) -> bool: ...
|
|
123
124
|
def __le__(self, other: list[_T] | UserList[_T]) -> bool: ...
|
|
124
125
|
def __gt__(self, other: list[_T] | UserList[_T]) -> bool: ...
|
|
@@ -288,6 +289,7 @@ class deque(MutableSequence[_T]):
|
|
|
288
289
|
def __len__(self) -> int:
|
|
289
290
|
"""Return len(self)."""
|
|
290
291
|
...
|
|
292
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
291
293
|
# These methods of deque don't take slices, unlike MutableSequence, hence the type: ignores
|
|
292
294
|
def __getitem__(self, key: SupportsIndex, /) -> _T:
|
|
293
295
|
"""Return self[key]."""
|
|
@@ -72,9 +72,19 @@ class _CallItem:
|
|
|
72
72
|
|
|
73
73
|
class _SafeQueue(Queue[Future[Any]]):
|
|
74
74
|
pending_work_items: dict[int, _WorkItem[Any]]
|
|
75
|
-
|
|
75
|
+
if sys.version_info < (3, 12):
|
|
76
|
+
shutdown_lock: Lock
|
|
76
77
|
thread_wakeup: _ThreadWakeup
|
|
77
|
-
if sys.version_info >= (3,
|
|
78
|
+
if sys.version_info >= (3, 12):
|
|
79
|
+
def __init__(
|
|
80
|
+
self,
|
|
81
|
+
max_size: int | None = 0,
|
|
82
|
+
*,
|
|
83
|
+
ctx: BaseContext,
|
|
84
|
+
pending_work_items: dict[int, _WorkItem[Any]],
|
|
85
|
+
thread_wakeup: _ThreadWakeup,
|
|
86
|
+
) -> None: ...
|
|
87
|
+
elif sys.version_info >= (3, 9):
|
|
78
88
|
def __init__(
|
|
79
89
|
self,
|
|
80
90
|
max_size: int | None = 0,
|
|
@@ -33,8 +33,12 @@ _T_co = TypeVar("_T_co", covariant=True)
|
|
|
33
33
|
_T_io = TypeVar("_T_io", bound=IO[str] | None)
|
|
34
34
|
_ExitT_co = TypeVar("_ExitT_co", covariant=True, bound=bool | None, default=bool | None)
|
|
35
35
|
_F = TypeVar("_F", bound=Callable[..., Any])
|
|
36
|
+
_G = TypeVar("_G", bound=Generator[Any, Any, Any] | AsyncGenerator[Any, Any], covariant=True)
|
|
36
37
|
_P = ParamSpec("_P")
|
|
37
38
|
|
|
39
|
+
_SendT_contra = TypeVar("_SendT_contra", contravariant=True, default=None)
|
|
40
|
+
_ReturnT_co = TypeVar("_ReturnT_co", covariant=True, default=None)
|
|
41
|
+
|
|
38
42
|
_ExitFunc: TypeAlias = Callable[[type[BaseException] | None, BaseException | None, TracebackType | None], bool | None]
|
|
39
43
|
_CM_EF = TypeVar("_CM_EF", bound=AbstractContextManager[Any, Any] | _ExitFunc)
|
|
40
44
|
|
|
@@ -64,16 +68,19 @@ class ContextDecorator:
|
|
|
64
68
|
def _recreate_cm(self) -> Self: ...
|
|
65
69
|
def __call__(self, func: _F) -> _F: ...
|
|
66
70
|
|
|
67
|
-
class _GeneratorContextManagerBase:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
def __init__(self, func: Callable[..., Iterator[_T_co]], args: tuple[Any, ...], kwds: dict[str, Any]) -> None: ...
|
|
73
|
-
gen: Generator[_T_co, Any, Any]
|
|
74
|
-
func: Callable[..., Generator[_T_co, Any, Any]]
|
|
71
|
+
class _GeneratorContextManagerBase(Generic[_G]):
|
|
72
|
+
# Ideally this would use ParamSpec, but that requires (*args, **kwargs), which this isn't. see #6676
|
|
73
|
+
def __init__(self, func: Callable[..., _G], args: tuple[Any, ...], kwds: dict[str, Any]) -> None: ...
|
|
74
|
+
gen: _G
|
|
75
|
+
func: Callable[..., _G]
|
|
75
76
|
args: tuple[Any, ...]
|
|
76
77
|
kwds: dict[str, Any]
|
|
78
|
+
|
|
79
|
+
class _GeneratorContextManager(
|
|
80
|
+
_GeneratorContextManagerBase[Generator[_T_co, _SendT_contra, _ReturnT_co]],
|
|
81
|
+
AbstractContextManager[_T_co, bool | None],
|
|
82
|
+
ContextDecorator,
|
|
83
|
+
):
|
|
77
84
|
if sys.version_info >= (3, 9):
|
|
78
85
|
def __exit__(
|
|
79
86
|
self, typ: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None
|
|
@@ -93,26 +100,18 @@ if sys.version_info >= (3, 10):
|
|
|
93
100
|
def __call__(self, func: _AF) -> _AF: ...
|
|
94
101
|
|
|
95
102
|
class _AsyncGeneratorContextManager(
|
|
96
|
-
_GeneratorContextManagerBase
|
|
103
|
+
_GeneratorContextManagerBase[AsyncGenerator[_T_co, _SendT_contra]],
|
|
104
|
+
AbstractAsyncContextManager[_T_co, bool | None],
|
|
105
|
+
AsyncContextDecorator,
|
|
97
106
|
):
|
|
98
|
-
# __init__ and these attributes are actually defined in the base class _GeneratorContextManagerBase,
|
|
99
|
-
# adding them there is more trouble than it's worth to include in the stub (see #6676)
|
|
100
|
-
def __init__(self, func: Callable[..., AsyncIterator[_T_co]], args: tuple[Any, ...], kwds: dict[str, Any]) -> None: ...
|
|
101
|
-
gen: AsyncGenerator[_T_co, Any]
|
|
102
|
-
func: Callable[..., AsyncGenerator[_T_co, Any]]
|
|
103
|
-
args: tuple[Any, ...]
|
|
104
|
-
kwds: dict[str, Any]
|
|
105
107
|
async def __aexit__(
|
|
106
108
|
self, typ: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None
|
|
107
109
|
) -> bool | None: ...
|
|
108
110
|
|
|
109
111
|
else:
|
|
110
|
-
class _AsyncGeneratorContextManager(
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
func: Callable[..., AsyncGenerator[_T_co, Any]]
|
|
114
|
-
args: tuple[Any, ...]
|
|
115
|
-
kwds: dict[str, Any]
|
|
112
|
+
class _AsyncGeneratorContextManager(
|
|
113
|
+
_GeneratorContextManagerBase[AsyncGenerator[_T_co, _SendT_contra]], AbstractAsyncContextManager[_T_co, bool | None]
|
|
114
|
+
):
|
|
116
115
|
async def __aexit__(
|
|
117
116
|
self, typ: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None
|
|
118
117
|
) -> bool | None: ...
|
|
@@ -24,8 +24,9 @@ from _ctypes import (
|
|
|
24
24
|
set_errno as set_errno,
|
|
25
25
|
sizeof as sizeof,
|
|
26
26
|
)
|
|
27
|
+
from _typeshed import StrPath
|
|
27
28
|
from ctypes._endian import BigEndianStructure as BigEndianStructure, LittleEndianStructure as LittleEndianStructure
|
|
28
|
-
from typing import Any, ClassVar, Generic, TypeVar
|
|
29
|
+
from typing import Any, ClassVar, Generic, TypeVar, type_check_only
|
|
29
30
|
from typing_extensions import Self, TypeAlias, deprecated
|
|
30
31
|
|
|
31
32
|
if sys.platform == "win32":
|
|
@@ -45,15 +46,32 @@ DEFAULT_MODE: int
|
|
|
45
46
|
|
|
46
47
|
class ArgumentError(Exception): ...
|
|
47
48
|
|
|
49
|
+
# defined within CDLL.__init__
|
|
50
|
+
# Runtime name is ctypes.CDLL.__init__.<locals>._FuncPtr
|
|
51
|
+
@type_check_only
|
|
52
|
+
class _CDLLFuncPointer(_CFuncPtr):
|
|
53
|
+
_flags_: ClassVar[int]
|
|
54
|
+
_restype_: ClassVar[type[_CDataType]]
|
|
55
|
+
|
|
56
|
+
# Not a real class; _CDLLFuncPointer with a __name__ set on it.
|
|
57
|
+
@type_check_only
|
|
58
|
+
class _NamedFuncPointer(_CDLLFuncPointer):
|
|
59
|
+
__name__: str
|
|
60
|
+
|
|
61
|
+
if sys.version_info >= (3, 12):
|
|
62
|
+
_NameTypes: TypeAlias = StrPath | None
|
|
63
|
+
else:
|
|
64
|
+
_NameTypes: TypeAlias = str | None
|
|
65
|
+
|
|
48
66
|
class CDLL:
|
|
49
67
|
_func_flags_: ClassVar[int]
|
|
50
|
-
_func_restype_: ClassVar[_CDataType]
|
|
68
|
+
_func_restype_: ClassVar[type[_CDataType]]
|
|
51
69
|
_name: str
|
|
52
70
|
_handle: int
|
|
53
|
-
_FuncPtr: type[
|
|
71
|
+
_FuncPtr: type[_CDLLFuncPointer]
|
|
54
72
|
def __init__(
|
|
55
73
|
self,
|
|
56
|
-
name:
|
|
74
|
+
name: _NameTypes,
|
|
57
75
|
mode: int = ...,
|
|
58
76
|
handle: int | None = None,
|
|
59
77
|
use_errno: bool = False,
|
|
@@ -90,27 +108,36 @@ if sys.platform == "win32":
|
|
|
90
108
|
pydll: LibraryLoader[PyDLL]
|
|
91
109
|
pythonapi: PyDLL
|
|
92
110
|
|
|
93
|
-
|
|
111
|
+
# Class definition within CFUNCTYPE / WINFUNCTYPE / PYFUNCTYPE
|
|
112
|
+
# Names at runtime are
|
|
113
|
+
# ctypes.CFUNCTYPE.<locals>.CFunctionType
|
|
114
|
+
# ctypes.WINFUNCTYPE.<locals>.WinFunctionType
|
|
115
|
+
# ctypes.PYFUNCTYPE.<locals>.CFunctionType
|
|
116
|
+
@type_check_only
|
|
117
|
+
class _CFunctionType(_CFuncPtr):
|
|
118
|
+
_argtypes_: ClassVar[list[type[_CData | _CDataType]]]
|
|
119
|
+
_restype_: ClassVar[type[_CData | _CDataType] | None]
|
|
120
|
+
_flags_: ClassVar[int]
|
|
94
121
|
|
|
95
|
-
|
|
96
|
-
|
|
122
|
+
# Alias for either function pointer type
|
|
123
|
+
_FuncPointer: TypeAlias = _CDLLFuncPointer | _CFunctionType # noqa: Y047 # not used here
|
|
97
124
|
|
|
98
125
|
def CFUNCTYPE(
|
|
99
126
|
restype: type[_CData | _CDataType] | None,
|
|
100
127
|
*argtypes: type[_CData | _CDataType],
|
|
101
|
-
use_errno: bool =
|
|
102
|
-
use_last_error: bool =
|
|
103
|
-
) -> type[
|
|
128
|
+
use_errno: bool = False,
|
|
129
|
+
use_last_error: bool = False,
|
|
130
|
+
) -> type[_CFunctionType]: ...
|
|
104
131
|
|
|
105
132
|
if sys.platform == "win32":
|
|
106
133
|
def WINFUNCTYPE(
|
|
107
134
|
restype: type[_CData | _CDataType] | None,
|
|
108
135
|
*argtypes: type[_CData | _CDataType],
|
|
109
|
-
use_errno: bool =
|
|
110
|
-
use_last_error: bool =
|
|
111
|
-
) -> type[
|
|
136
|
+
use_errno: bool = False,
|
|
137
|
+
use_last_error: bool = False,
|
|
138
|
+
) -> type[_CFunctionType]: ...
|
|
112
139
|
|
|
113
|
-
def PYFUNCTYPE(restype: type[_CData | _CDataType] | None, *argtypes: type[_CData | _CDataType]) -> type[
|
|
140
|
+
def PYFUNCTYPE(restype: type[_CData | _CDataType] | None, *argtypes: type[_CData | _CDataType]) -> type[_CFunctionType]: ...
|
|
114
141
|
|
|
115
142
|
# Any type that can be implicitly converted to c_void_p when passed as a C function argument.
|
|
116
143
|
# (bytes is not included here, see below.)
|
|
@@ -138,10 +165,31 @@ def ARRAY(typ: _CT, len: int) -> Array[_CT]: ... # Soft Deprecated, no plans to
|
|
|
138
165
|
if sys.platform == "win32":
|
|
139
166
|
def DllCanUnloadNow() -> int: ...
|
|
140
167
|
def DllGetClassObject(rclsid: Any, riid: Any, ppv: Any) -> int: ... # TODO not documented
|
|
141
|
-
def GetLastError() -> int: ...
|
|
142
168
|
|
|
143
|
-
|
|
144
|
-
|
|
169
|
+
# Actually just an instance of _NamedFuncPointer (aka _CDLLFuncPointer),
|
|
170
|
+
# but we want to set a more specific __call__
|
|
171
|
+
@type_check_only
|
|
172
|
+
class _GetLastErrorFunctionType(_NamedFuncPointer):
|
|
173
|
+
def __call__(self) -> int: ...
|
|
174
|
+
|
|
175
|
+
GetLastError: _GetLastErrorFunctionType
|
|
176
|
+
|
|
177
|
+
# Actually just an instance of _CFunctionType, but we want to set a more
|
|
178
|
+
# specific __call__.
|
|
179
|
+
@type_check_only
|
|
180
|
+
class _MemmoveFunctionType(_CFunctionType):
|
|
181
|
+
def __call__(self, dst: _CVoidPLike, src: _CVoidConstPLike, count: int) -> int: ...
|
|
182
|
+
|
|
183
|
+
memmove: _MemmoveFunctionType
|
|
184
|
+
|
|
185
|
+
# Actually just an instance of _CFunctionType, but we want to set a more
|
|
186
|
+
# specific __call__.
|
|
187
|
+
@type_check_only
|
|
188
|
+
class _MemsetFunctionType(_CFunctionType):
|
|
189
|
+
def __call__(self, dst: _CVoidPLike, c: int, count: int) -> int: ...
|
|
190
|
+
|
|
191
|
+
memset: _MemsetFunctionType
|
|
192
|
+
|
|
145
193
|
def string_at(ptr: _CVoidConstPLike, size: int = -1) -> bytes: ...
|
|
146
194
|
|
|
147
195
|
if sys.platform == "win32":
|
|
@@ -208,7 +256,10 @@ if sys.platform == "win32":
|
|
|
208
256
|
class HRESULT(_SimpleCData[int]): ... # TODO undocumented
|
|
209
257
|
|
|
210
258
|
if sys.version_info >= (3, 12):
|
|
211
|
-
|
|
259
|
+
# At runtime, this is an alias for either c_int32 or c_int64,
|
|
260
|
+
# which are themselves an alias for one of c_short, c_int, c_long, or c_longlong
|
|
261
|
+
# This covers all our bases.
|
|
262
|
+
c_time_t: type[c_int32 | c_int64 | c_short | c_int | c_long | c_longlong]
|
|
212
263
|
|
|
213
264
|
class py_object(_CanCastTo, _SimpleCData[_T]): ...
|
|
214
265
|
|