basedpyright 1.25.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pyright-langserver.js +1 -1
- package/dist/pyright-langserver.js.map +1 -1
- package/dist/pyright.js +1 -1
- package/dist/pyright.js.map +1 -1
- package/dist/typeshed-fallback/README.md +1 -1
- package/dist/typeshed-fallback/commit.txt +1 -1
- package/dist/typeshed-fallback/stdlib/VERSIONS +1 -0
- package/dist/typeshed-fallback/stdlib/_asyncio.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/_blake2.pyi +12 -12
- package/dist/typeshed-fallback/stdlib/_bz2.pyi +7 -1
- package/dist/typeshed-fallback/stdlib/_collections_abc.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/_contextvars.pyi +5 -3
- package/dist/typeshed-fallback/stdlib/_csv.pyi +4 -4
- package/dist/typeshed-fallback/stdlib/_ctypes.pyi +7 -7
- package/dist/typeshed-fallback/stdlib/_curses.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/_dummy_threading.pyi +19 -127
- package/dist/typeshed-fallback/stdlib/_frozen_importlib.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/_interpqueues.pyi +9 -6
- package/dist/typeshed-fallback/stdlib/_interpreters.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/_io.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/_json.pyi +5 -4
- package/dist/typeshed-fallback/stdlib/_lzma.pyi +16 -5
- package/dist/typeshed-fallback/stdlib/_pickle.pyi +286 -0
- package/dist/typeshed-fallback/stdlib/_sitebuiltins.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/_socket.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/_ssl.pyi +3 -4
- package/dist/typeshed-fallback/stdlib/_thread.pyi +87 -39
- package/dist/typeshed-fallback/stdlib/_tkinter.pyi +35 -20
- package/dist/typeshed-fallback/stdlib/_weakrefset.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/argparse.pyi +27 -20
- package/dist/typeshed-fallback/stdlib/array.pyi +13 -10
- package/dist/typeshed-fallback/stdlib/ast.pyi +24 -7
- package/dist/typeshed-fallback/stdlib/asyncio/__init__.pyi +1300 -0
- package/dist/typeshed-fallback/stdlib/asyncio/base_events.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/asyncio/coroutines.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/events.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/exceptions.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/futures.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/locks.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/proactor_events.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/protocols.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/queues.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/runners.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/selector_events.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/asyncio/streams.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/subprocess.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/taskgroups.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/tasks.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/threads.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/timeouts.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/transports.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/asyncio/unix_events.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/asyncio/windows_events.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/builtins.pyi +21 -15
- package/dist/typeshed-fallback/stdlib/codecs.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/codeop.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/collections/__init__.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/concurrent/futures/process.pyi +12 -2
- package/dist/typeshed-fallback/stdlib/contextlib.pyi +21 -22
- package/dist/typeshed-fallback/stdlib/ctypes/__init__.pyi +69 -18
- package/dist/typeshed-fallback/stdlib/dataclasses.pyi +11 -3
- package/dist/typeshed-fallback/stdlib/datetime.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/decimal.pyi +0 -1
- package/dist/typeshed-fallback/stdlib/email/charset.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/email/header.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/email/headerregistry.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/fractions.pyi +3 -3
- package/dist/typeshed-fallback/stdlib/gzip.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/http/__init__.pyi +15 -6
- package/dist/typeshed-fallback/stdlib/http/client.pyi +80 -58
- package/dist/typeshed-fallback/stdlib/inspect.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/ipaddress.pyi +5 -3
- package/dist/typeshed-fallback/stdlib/itertools.pyi +12 -12
- package/dist/typeshed-fallback/stdlib/json/scanner.pyi +4 -0
- package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/pgen.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/lib2to3/pytree.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/mmap.pyi +6 -6
- package/dist/typeshed-fallback/stdlib/multiprocessing/managers.pyi +63 -17
- package/dist/typeshed-fallback/stdlib/multiprocessing/pool.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/multiprocessing/reduction.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/multiprocessing/synchronize.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/numbers.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/operator.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/optparse.pyi +89 -32
- package/dist/typeshed-fallback/stdlib/os/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stdlib/parser.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/pickle.pyi +51 -266
- package/dist/typeshed-fallback/stdlib/pickletools.pyi +8 -1
- package/dist/typeshed-fallback/stdlib/plistlib.pyi +2 -1
- package/dist/typeshed-fallback/stdlib/sched.pyi +3 -2
- package/dist/typeshed-fallback/stdlib/select.pyi +19 -13
- package/dist/typeshed-fallback/stdlib/selectors.pyi +5 -3
- package/dist/typeshed-fallback/stdlib/signal.pyi +47 -47
- package/dist/typeshed-fallback/stdlib/socket.pyi +8 -6
- package/dist/typeshed-fallback/stdlib/sqlite3/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/ssl.pyi +4 -0
- package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +9 -3
- package/dist/typeshed-fallback/stdlib/tarfile.pyi +24 -10
- package/dist/typeshed-fallback/stdlib/telnetlib.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/threading.pyi +6 -53
- package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +193 -3
- package/dist/typeshed-fallback/stdlib/tkinter/filedialog.pyi +9 -9
- package/dist/typeshed-fallback/stdlib/tkinter/font.pyi +5 -4
- package/dist/typeshed-fallback/stdlib/token.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/tokenize.pyi +3 -4
- package/dist/typeshed-fallback/stdlib/traceback.pyi +17 -4
- package/dist/typeshed-fallback/stdlib/types.pyi +45 -10
- package/dist/typeshed-fallback/stdlib/typing.pyi +45 -47
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +53 -12
- package/dist/typeshed-fallback/stdlib/unittest/mock.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/unittest/runner.pyi +11 -12
- package/dist/typeshed-fallback/stdlib/unittest/suite.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/weakref.pyi +19 -5
- package/dist/typeshed-fallback/stdlib/xml/dom/minidom.pyi +5 -4
- package/dist/typeshed-fallback/stdlib/xml/sax/expatreader.pyi +53 -0
- package/dist/typeshed-fallback/stdlib/xmlrpc/client.pyi +4 -3
- package/dist/typeshed-fallback/stdlib/xxlimited.pyi +4 -2
- package/dist/typeshed-fallback/stdlib/zipfile/_path/glob.pyi +22 -0
- package/dist/typeshed-fallback/stdlib/zoneinfo/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Authlib/METADATA.toml +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/common/encoding.pyi +10 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/common/errors.pyi +26 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/common/security.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/common/urls.pyi +19 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/consts.pyi +8 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/deprecate.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/__init__.pyi +29 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/async_app.pyi +16 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/async_openid.pyi +8 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/errors.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/framework_integration.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/registry.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/sync_app.pyi +93 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/sync_openid.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/__init__.pyi +44 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/_jwe_algorithms.pyi +27 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/_jwe_enc_cryptodome.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/_jwe_enc_cryptography.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/errors.pyi +72 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/jwk.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/jws.pyi +14 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/models.pyi +25 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/__init__.pyi +9 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/jwe.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/models.pyi +56 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/__init__.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/_cryptography_key.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/asymmetric_key.pyi +39 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/base_key.pyi +28 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/jwk.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/key_set.pyi +10 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/__init__.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/ec_key.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_algs.pyi +64 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_encs.pyi +27 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_zips.pyi +9 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jws_algs.pyi +63 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/oct_key.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/rsa_key.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/util.pyi +2 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7519/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7519/claims.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7519/jwt.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc8037/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc8037/jws_eddsa.pyi +10 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc8037/okp_key.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/util.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/__init__.pyi +33 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/client.pyi +39 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/errors.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/__init__.pyi +35 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/authorization_server.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/base_server.pyi +12 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/client_auth.pyi +41 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/errors.pyi +56 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/models.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/parameters.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/resource_protector.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/rsa.pyi +2 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/signature.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/util.pyi +2 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/wrapper.pyi +33 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/__init__.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/auth.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/base.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/client.pyi +96 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/__init__.pyi +76 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/authenticate_client.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/authorization_server.pyi +46 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/errors.pyi +92 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/__init__.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/authorization_code.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/base.pyi +55 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/client_credentials.pyi +6 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/implicit.pyi +12 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/refresh_token.pyi +15 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/resource_owner_password_credentials.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/models.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/parameters.pyi +14 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/requests.pyi +48 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/resource_protector.pyi +19 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/token_endpoint.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/util.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/wrappers.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/__init__.pyi +15 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/errors.pyi +27 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/parameters.pyi +6 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/token.pyi +41 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/validator.pyi +6 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7009/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7009/parameters.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7009/revocation.pyi +9 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7521/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7521/client.pyi +39 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/__init__.pyi +18 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/assertion.pyi +19 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/auth.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/client.pyi +16 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/jwt_bearer.pyi +28 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/token.pyi +30 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/validator.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/__init__.pyi +17 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/claims.pyi +22 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/endpoint.pyi +24 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/errors.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7592/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7592/endpoint.pyi +26 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7636/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7636/challenge.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/__init__.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/introspection.pyi +11 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/models.pyi +8 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/token_validator.pyi +7 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8414/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8414/models.pyi +40 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8414/well_known.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/__init__.pyi +19 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/device_code.pyi +15 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/endpoint.pyi +21 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/errors.pyi +10 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/models.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8693/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/__init__.pyi +6 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/claims.pyi +16 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/introspection.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/revocation.pyi +9 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/token.pyi +23 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/token_validator.pyi +20 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/__init__.pyi +29 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/claims.pyi +37 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/errors.pyi +28 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/__init__.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/code.pyi +17 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/hybrid.pyi +13 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/implicit.pyi +16 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/util.pyi +18 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/models.pyi +5 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/util.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/discovery/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/discovery/models.pyi +36 -0
- package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/discovery/well_known.pyi +1 -0
- package/dist/typeshed-fallback/stubs/Flask-Migrate/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/Flask-Migrate/flask_migrate/__init__.pyi +2 -4
- package/dist/typeshed-fallback/stubs/Flask-SocketIO/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/Flask-SocketIO/flask_socketio/__init__.pyi +30 -4
- package/dist/typeshed-fallback/stubs/Markdown/markdown/core.pyi +2 -13
- package/dist/typeshed-fallback/stubs/PyAutoGUI/pyautogui/__init__.pyi +2 -2
- package/dist/typeshed-fallback/stubs/PyYAML/yaml/constructor.pyi +1 -1
- package/dist/typeshed-fallback/stubs/Pygments/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/WebOb/webob/exc.pyi +1 -1
- package/dist/typeshed-fallback/stubs/click-log/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/click-log/click_log/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/click-log/click_log/core.pyi +15 -0
- package/dist/typeshed-fallback/stubs/click-log/click_log/options.pyi +12 -0
- package/dist/typeshed-fallback/stubs/click-web/METADATA.toml +3 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/__init__.pyi +16 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/exceptions.pyi +2 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/resources/cmd_exec.pyi +79 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/resources/cmd_form.pyi +6 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/resources/index.pyi +6 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/resources/input_fields.pyi +49 -0
- package/dist/typeshed-fallback/stubs/click-web/click_web/web_click_types.pyi +18 -0
- package/dist/typeshed-fallback/stubs/croniter/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/croniter/croniter/croniter.pyi +7 -0
- package/dist/typeshed-fallback/stubs/django-import-export/METADATA.toml +6 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/__init__.pyi +1 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/admin.pyi +114 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/exceptions.pyi +2 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/fields.pyi +34 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/formats/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/formats/base_formats.pyi +57 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/forms.pyi +31 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/instance_loaders.pyi +23 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/mixins.pyi +66 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/resources.pyi +232 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/results.pyi +73 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/signals.pyi +4 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/templatetags/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/templatetags/import_export_tags.pyi +8 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/tmp_storages.pyi +34 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/utils.pyi +18 -0
- package/dist/typeshed-fallback/stubs/django-import-export/import_export/widgets.pyi +66 -0
- package/dist/typeshed-fallback/stubs/docker/docker/models/containers.pyi +2 -2
- package/dist/typeshed-fallback/stubs/flake8-bugbear/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/fpdf2/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/__init__.pyi +2 -0
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/annotations.pyi +2 -2
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/enums.pyi +50 -4
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fonts.pyi +3 -3
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fpdf.pyi +53 -18
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/html.pyi +2 -0
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/image_parsing.pyi +10 -2
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/line_break.pyi +9 -3
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/outline.pyi +21 -0
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/output.pyi +19 -0
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/prefs.pyi +38 -4
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/table.pyi +13 -1
- package/dist/typeshed-fallback/stubs/fpdf2/fpdf/util.pyi +1 -0
- package/dist/typeshed-fallback/stubs/gdb/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/gdb/gdb/__init__.pyi +126 -9
- package/dist/typeshed-fallback/stubs/gdb/gdb/unwinder.pyi +2 -3
- package/dist/typeshed-fallback/stubs/gevent/gevent/select.pyi +7 -2
- package/dist/typeshed-fallback/stubs/hdbcli/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/ibm-db/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/ibm-db/ibm_db.pyi +11 -1
- package/dist/typeshed-fallback/stubs/icalendar/METADATA.toml +1 -5
- package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/tzp.pyi +1 -1
- package/dist/typeshed-fallback/stubs/jsonschema/METADATA.toml +0 -2
- package/dist/typeshed-fallback/stubs/jwcrypto/jwcrypto/jwk.pyi +4 -4
- package/dist/typeshed-fallback/stubs/lupa/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/m3u8/m3u8/httpclient.pyi +1 -1
- package/dist/typeshed-fallback/stubs/nanoleafapi/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/__init__.pyi +16 -0
- package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/digital_twin.pyi +12 -0
- package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/discovery.pyi +1 -0
- package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/nanoleaf.pyi +68 -0
- package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multidigraph.pyi +1 -1
- package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/styles/cell_style.pyi +1 -1
- package/dist/typeshed-fallback/stubs/peewee/peewee.pyi +4 -4
- package/dist/typeshed-fallback/stubs/pexpect/pexpect/pty_spawn.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pika/pika/credentials.pyi +10 -7
- package/dist/typeshed-fallback/stubs/polib/polib.pyi +3 -2
- package/dist/typeshed-fallback/stubs/protobuf/METADATA.toml +2 -2
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/api_pb2.pyi +1 -1
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/descriptor_pb2.pyi +4 -8
- package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/runtime_version.pyi +23 -0
- package/dist/typeshed-fallback/stubs/pycocotools/METADATA.toml +1 -0
- package/dist/typeshed-fallback/stubs/pycocotools/pycocotools/coco.pyi +6 -11
- package/dist/typeshed-fallback/stubs/pycocotools/pycocotools/cocoeval.pyi +16 -30
- package/dist/typeshed-fallback/stubs/pycocotools/pycocotools/mask.pyi +7 -9
- package/dist/typeshed-fallback/stubs/pycurl/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pycurl/pycurl.pyi +33 -32
- package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/_base.pyi +65 -65
- package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/relativedelta.pyi +3 -11
- package/dist/typeshed-fallback/stubs/pywin32/_win32typing.pyi +3 -3
- package/dist/typeshed-fallback/stubs/qrbill/qrbill/bill.pyi +2 -2
- package/dist/typeshed-fallback/stubs/requests-oauthlib/requests_oauthlib/oauth1_auth.pyi +1 -1
- package/dist/typeshed-fallback/stubs/seaborn/METADATA.toml +1 -11
- package/dist/typeshed-fallback/stubs/seaborn/seaborn/algorithms.pyi +13 -13
- package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/cmd.pyi +5 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/bdist.pyi +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_data.pyi +2 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/dist.pyi +21 -21
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/extension.pyi +3 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/extension.pyi +2 -3
- package/dist/typeshed-fallback/stubs/shapely/shapely/_enum.pyi +1 -1
- package/dist/typeshed-fallback/stubs/six/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/tabulate/tabulate/__init__.pyi +2 -1
- package/dist/typeshed-fallback/stubs/tqdm/tqdm/asyncio.pyi +2 -2
- package/dist/typeshed-fallback/stubs/vobject/METADATA.toml +2 -2
- package/dist/typeshed-fallback/stubs/vobject/vobject/__init__.pyi +2 -4
- package/dist/typeshed-fallback/stubs/vobject/vobject/base.pyi +26 -24
- package/dist/typeshed-fallback/stubs/vobject/vobject/behavior.pyi +5 -4
- package/dist/typeshed-fallback/stubs/vobject/vobject/icalendar.pyi +28 -37
- package/dist/typeshed-fallback/stubs/vobject/vobject/vcard.pyi +20 -20
- package/dist/typeshed-fallback/stubs/vobject/vobject/win32tz.pyi +22 -22
- package/package.json +1 -1
- package/dist/typeshed-fallback/stubs/python-gflags/METADATA.toml +0 -2
- package/dist/typeshed-fallback/stubs/python-gflags/gflags.pyi +0 -309
- package/dist/typeshed-fallback/stubs/redis/METADATA.toml +0 -12
- package/dist/typeshed-fallback/stubs/redis/redis/__init__.pyi +0 -72
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/__init__.pyi +0 -64
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/client.pyi +0 -1091
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/cluster.pyi +0 -229
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/connection.pyi +0 -363
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/lock.pyi +0 -51
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/parser.pyi +0 -9
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/retry.pyi +0 -12
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/sentinel.pyi +0 -162
- package/dist/typeshed-fallback/stubs/redis/redis/asyncio/utils.pyi +0 -15
- package/dist/typeshed-fallback/stubs/redis/redis/backoff.pyi +0 -31
- package/dist/typeshed-fallback/stubs/redis/redis/client.pyi +0 -817
- package/dist/typeshed-fallback/stubs/redis/redis/cluster.pyi +0 -265
- package/dist/typeshed-fallback/stubs/redis/redis/commands/__init__.pyi +0 -17
- package/dist/typeshed-fallback/stubs/redis/redis/commands/bf/__init__.pyi +0 -58
- package/dist/typeshed-fallback/stubs/redis/redis/commands/bf/commands.pyi +0 -112
- package/dist/typeshed-fallback/stubs/redis/redis/commands/bf/info.pyi +0 -43
- package/dist/typeshed-fallback/stubs/redis/redis/commands/cluster.pyi +0 -60
- package/dist/typeshed-fallback/stubs/redis/redis/commands/core.pyi +0 -1743
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/__init__.pyi +0 -26
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/commands.pyi +0 -25
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/edge.pyi +0 -14
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/exceptions.pyi +0 -5
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/node.pyi +0 -18
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/path.pyi +0 -18
- package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/query_result.pyi +0 -74
- package/dist/typeshed-fallback/stubs/redis/redis/commands/helpers.pyi +0 -10
- package/dist/typeshed-fallback/stubs/redis/redis/commands/json/__init__.pyi +0 -15
- package/dist/typeshed-fallback/stubs/redis/redis/commands/json/commands.pyi +0 -32
- package/dist/typeshed-fallback/stubs/redis/redis/commands/json/decoders.pyi +0 -4
- package/dist/typeshed-fallback/stubs/redis/redis/commands/json/path.pyi +0 -5
- package/dist/typeshed-fallback/stubs/redis/redis/commands/parser.pyi +0 -8
- package/dist/typeshed-fallback/stubs/redis/redis/commands/redismodules.pyi +0 -14
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/__init__.pyi +0 -22
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/aggregation.pyi +0 -53
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/commands.pyi +0 -111
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/query.pyi +0 -52
- package/dist/typeshed-fallback/stubs/redis/redis/commands/search/result.pyi +0 -7
- package/dist/typeshed-fallback/stubs/redis/redis/commands/sentinel.pyi +0 -17
- package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/__init__.pyi +0 -14
- package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/commands.pyi +0 -160
- package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/info.pyi +0 -18
- package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/utils.pyi +0 -5
- package/dist/typeshed-fallback/stubs/redis/redis/connection.pyi +0 -289
- package/dist/typeshed-fallback/stubs/redis/redis/crc.pyi +0 -5
- package/dist/typeshed-fallback/stubs/redis/redis/credentials.pyi +0 -11
- package/dist/typeshed-fallback/stubs/redis/redis/exceptions.pyi +0 -42
- package/dist/typeshed-fallback/stubs/redis/redis/lock.pyi +0 -56
- package/dist/typeshed-fallback/stubs/redis/redis/ocsp.pyi +0 -21
- package/dist/typeshed-fallback/stubs/redis/redis/retry.pyi +0 -11
- package/dist/typeshed-fallback/stubs/redis/redis/sentinel.pyi +0 -62
- package/dist/typeshed-fallback/stubs/redis/redis/typing.pyi +0 -34
- package/dist/typeshed-fallback/stubs/redis/redis/utils.pyi +0 -22
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py310.pyi +0 -9
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py311.pyi +0 -4
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py312.pyi +0 -3
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py39.pyi +0 -7
- /package/dist/typeshed-fallback/stdlib/zipfile/{_path.pyi → _path/__init__.pyi} +0 -0
- /package/dist/typeshed-fallback/stubs/{setuptools/setuptools/compat → Authlib/authlib/common}/__init__.pyi +0 -0
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import queue
|
|
2
2
|
import sys
|
|
3
3
|
import threading
|
|
4
|
-
from _typeshed import
|
|
4
|
+
from _typeshed import SupportsKeysAndGetItem, SupportsRichComparison, SupportsRichComparisonT
|
|
5
5
|
from collections.abc import Callable, Iterable, Iterator, Mapping, MutableMapping, MutableSequence, Sequence
|
|
6
6
|
from types import TracebackType
|
|
7
7
|
from typing import Any, AnyStr, ClassVar, Generic, SupportsIndex, TypeVar, overload
|
|
8
8
|
from typing_extensions import Self, TypeAlias
|
|
9
9
|
|
|
10
|
-
from .
|
|
10
|
+
from . import pool
|
|
11
|
+
from .connection import Connection, _Address
|
|
11
12
|
from .context import BaseContext
|
|
12
13
|
from .shared_memory import _SLT, ShareableList as _ShareableList, SharedMemory as _SharedMemory
|
|
13
14
|
from .util import Finalize as _Finalize
|
|
@@ -32,14 +33,14 @@ _Namespace: TypeAlias = Namespace
|
|
|
32
33
|
|
|
33
34
|
class Token:
|
|
34
35
|
typeid: str | bytes | None
|
|
35
|
-
address:
|
|
36
|
+
address: _Address | None
|
|
36
37
|
id: str | bytes | int | None
|
|
37
|
-
def __init__(self, typeid: bytes | str | None, address:
|
|
38
|
+
def __init__(self, typeid: bytes | str | None, address: _Address | None, id: str | bytes | int | None) -> None: ...
|
|
38
39
|
def __getstate__(self) -> tuple[str | bytes | None, tuple[str | bytes, int], str | bytes | int | None]: ...
|
|
39
40
|
def __setstate__(self, state: tuple[str | bytes | None, tuple[str | bytes, int], str | bytes | int | None]) -> None: ...
|
|
40
41
|
|
|
41
42
|
class BaseProxy:
|
|
42
|
-
_address_to_local: dict[
|
|
43
|
+
_address_to_local: dict[_Address, Any]
|
|
43
44
|
_mutex: Any
|
|
44
45
|
def __init__(
|
|
45
46
|
self,
|
|
@@ -143,6 +144,7 @@ class BaseListProxy(BaseProxy, MutableSequence[_T]):
|
|
|
143
144
|
def __setitem__(self, s: slice, o: Iterable[_T], /) -> None: ...
|
|
144
145
|
def __mul__(self, n: SupportsIndex, /) -> list[_T]: ...
|
|
145
146
|
def __rmul__(self, n: SupportsIndex, /) -> list[_T]: ...
|
|
147
|
+
def __imul__(self, value: SupportsIndex, /) -> Self: ...
|
|
146
148
|
def __reversed__(self) -> Iterator[_T]: ...
|
|
147
149
|
def append(self, object: _T, /) -> None: ...
|
|
148
150
|
def extend(self, iterable: Iterable[_T], /) -> None: ...
|
|
@@ -170,22 +172,50 @@ class ListProxy(BaseListProxy[_T]):
|
|
|
170
172
|
"""
|
|
171
173
|
...
|
|
172
174
|
|
|
175
|
+
# Send is (kind, result)
|
|
176
|
+
# Receive is (id, methodname, args, kwds)
|
|
177
|
+
_ServerConnection: TypeAlias = Connection[tuple[str, Any], tuple[str, str, Iterable[Any], Mapping[str, Any]]]
|
|
178
|
+
|
|
173
179
|
# Returned by BaseManager.get_server()
|
|
174
180
|
class Server:
|
|
175
|
-
address:
|
|
181
|
+
address: _Address | None
|
|
182
|
+
id_to_obj: dict[str, tuple[Any, set[str], dict[str, str]]]
|
|
183
|
+
fallback_mapping: dict[str, Callable[[_ServerConnection, str, Any], Any]]
|
|
184
|
+
public: list[str]
|
|
185
|
+
# Registry values are (callable, exposed, method_to_typeid, proxytype)
|
|
176
186
|
def __init__(
|
|
177
|
-
self,
|
|
187
|
+
self,
|
|
188
|
+
registry: dict[str, tuple[Callable[..., Any], Iterable[str], dict[str, str], Any]],
|
|
189
|
+
address: _Address | None,
|
|
190
|
+
authkey: bytes,
|
|
191
|
+
serializer: str,
|
|
178
192
|
) -> None: ...
|
|
179
193
|
def serve_forever(self) -> None: ...
|
|
180
|
-
def
|
|
181
|
-
|
|
182
|
-
|
|
194
|
+
def accepter(self) -> None: ...
|
|
195
|
+
if sys.version_info >= (3, 10):
|
|
196
|
+
def handle_request(self, conn: _ServerConnection) -> None: ...
|
|
197
|
+
else:
|
|
198
|
+
def handle_request(self, c: _ServerConnection) -> None: ...
|
|
199
|
+
|
|
200
|
+
def serve_client(self, conn: _ServerConnection) -> None: ...
|
|
201
|
+
def fallback_getvalue(self, conn: _ServerConnection, ident: str, obj: _T) -> _T: ...
|
|
202
|
+
def fallback_str(self, conn: _ServerConnection, ident: str, obj: Any) -> str: ...
|
|
203
|
+
def fallback_repr(self, conn: _ServerConnection, ident: str, obj: Any) -> str: ...
|
|
204
|
+
def dummy(self, c: _ServerConnection) -> None: ...
|
|
205
|
+
def debug_info(self, c: _ServerConnection) -> str: ...
|
|
206
|
+
def number_of_objects(self, c: _ServerConnection) -> int: ...
|
|
207
|
+
def shutdown(self, c: _ServerConnection) -> None: ...
|
|
208
|
+
def create(self, c: _ServerConnection, typeid: str, /, *args: Any, **kwds: Any) -> tuple[str, tuple[str, ...]]: ...
|
|
209
|
+
def get_methods(self, c: _ServerConnection, token: Token) -> set[str]: ...
|
|
210
|
+
def accept_connection(self, c: _ServerConnection, name: str) -> None: ...
|
|
211
|
+
def incref(self, c: _ServerConnection, ident: str) -> None: ...
|
|
212
|
+
def decref(self, c: _ServerConnection, ident: str) -> None: ...
|
|
183
213
|
|
|
184
214
|
class BaseManager:
|
|
185
215
|
if sys.version_info >= (3, 11):
|
|
186
216
|
def __init__(
|
|
187
217
|
self,
|
|
188
|
-
address:
|
|
218
|
+
address: _Address | None = None,
|
|
189
219
|
authkey: bytes | None = None,
|
|
190
220
|
serializer: str = "pickle",
|
|
191
221
|
ctx: BaseContext | None = None,
|
|
@@ -195,7 +225,7 @@ class BaseManager:
|
|
|
195
225
|
else:
|
|
196
226
|
def __init__(
|
|
197
227
|
self,
|
|
198
|
-
address:
|
|
228
|
+
address: _Address | None = None,
|
|
199
229
|
authkey: bytes | None = None,
|
|
200
230
|
serializer: str = "pickle",
|
|
201
231
|
ctx: BaseContext | None = None,
|
|
@@ -207,7 +237,7 @@ class BaseManager:
|
|
|
207
237
|
shutdown: _Finalize # only available after start() was called
|
|
208
238
|
def join(self, timeout: float | None = None) -> None: ... # undocumented
|
|
209
239
|
@property
|
|
210
|
-
def address(self) ->
|
|
240
|
+
def address(self) -> _Address | None: ...
|
|
211
241
|
@classmethod
|
|
212
242
|
def register(
|
|
213
243
|
cls,
|
|
@@ -224,14 +254,26 @@ class BaseManager:
|
|
|
224
254
|
) -> None: ...
|
|
225
255
|
|
|
226
256
|
class SyncManager(BaseManager):
|
|
227
|
-
def
|
|
228
|
-
|
|
257
|
+
def Barrier(
|
|
258
|
+
self, parties: int, action: Callable[[], None] | None = None, timeout: float | None = None
|
|
259
|
+
) -> threading.Barrier: ...
|
|
260
|
+
def BoundedSemaphore(self, value: int = 1) -> threading.BoundedSemaphore: ...
|
|
261
|
+
def Condition(self, lock: threading.Lock | threading._RLock | None = None) -> threading.Condition: ...
|
|
229
262
|
def Event(self) -> threading.Event: ...
|
|
230
263
|
def Lock(self) -> threading.Lock: ...
|
|
231
264
|
def Namespace(self) -> _Namespace: ...
|
|
265
|
+
def Pool(
|
|
266
|
+
self,
|
|
267
|
+
processes: int | None = None,
|
|
268
|
+
initializer: Callable[..., object] | None = None,
|
|
269
|
+
initargs: Iterable[Any] = (),
|
|
270
|
+
maxtasksperchild: int | None = None,
|
|
271
|
+
context: Any | None = None,
|
|
272
|
+
) -> pool.Pool: ...
|
|
232
273
|
def Queue(self, maxsize: int = ...) -> queue.Queue[Any]: ...
|
|
274
|
+
def JoinableQueue(self, maxsize: int = ...) -> queue.Queue[Any]: ...
|
|
233
275
|
def RLock(self) -> threading.RLock: ...
|
|
234
|
-
def Semaphore(self, value:
|
|
276
|
+
def Semaphore(self, value: int = 1) -> threading.Semaphore: ...
|
|
235
277
|
def Array(self, typecode: Any, sequence: Sequence[_T]) -> Sequence[_T]: ...
|
|
236
278
|
def Value(self, typecode: Any, value: _T) -> ValueProxy[_T]: ...
|
|
237
279
|
# Overloads are copied from builtins.dict.__init__
|
|
@@ -257,7 +299,11 @@ class SyncManager(BaseManager):
|
|
|
257
299
|
def list(self) -> ListProxy[Any]: ...
|
|
258
300
|
|
|
259
301
|
class RemoteError(Exception): ...
|
|
260
|
-
|
|
302
|
+
|
|
303
|
+
class SharedMemoryServer(Server):
|
|
304
|
+
def track_segment(self, c: _ServerConnection, segment_name: str) -> None: ...
|
|
305
|
+
def release_segment(self, c: _ServerConnection, segment_name: str) -> None: ...
|
|
306
|
+
def list_segments(self, c: _ServerConnection) -> list[str]: ...
|
|
261
307
|
|
|
262
308
|
class SharedMemoryManager(BaseManager):
|
|
263
309
|
def get_server(self) -> SharedMemoryServer: ...
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import sys
|
|
2
2
|
from collections.abc import Callable, Iterable, Mapping
|
|
3
|
+
from multiprocessing.context import DefaultContext, Process
|
|
3
4
|
from types import TracebackType
|
|
4
5
|
from typing import Any, Final, Generic, TypeVar
|
|
5
6
|
from typing_extensions import Self
|
|
@@ -59,6 +60,8 @@ class Pool:
|
|
|
59
60
|
maxtasksperchild: int | None = None,
|
|
60
61
|
context: Any | None = None,
|
|
61
62
|
) -> None: ...
|
|
63
|
+
@staticmethod
|
|
64
|
+
def Process(ctx: DefaultContext, *args: Any, **kwds: Any) -> Process: ...
|
|
62
65
|
def apply(self, func: Callable[..., _T], args: Iterable[Any] = (), kwds: Mapping[str, Any] = {}) -> _T: ...
|
|
63
66
|
def apply_async(
|
|
64
67
|
self,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import pickle
|
|
2
2
|
import sys
|
|
3
|
+
from _pickle import _ReducedType
|
|
3
4
|
from _typeshed import HasFileno, SupportsWrite, Unused
|
|
4
5
|
from abc import ABCMeta
|
|
5
6
|
from builtins import type as Type # alias to avoid name clash
|
|
6
7
|
from collections.abc import Callable
|
|
7
8
|
from copyreg import _DispatchTableType
|
|
8
9
|
from multiprocessing import connection
|
|
9
|
-
from pickle import _ReducedType
|
|
10
10
|
from socket import socket
|
|
11
11
|
from typing import Any, Final
|
|
12
12
|
|
|
@@ -54,6 +54,7 @@ class RLock(SemLock):
|
|
|
54
54
|
|
|
55
55
|
class Semaphore(SemLock):
|
|
56
56
|
def __init__(self, value: int = 1, *, ctx: BaseContext) -> None: ...
|
|
57
|
+
def get_value(self) -> int: ...
|
|
57
58
|
|
|
58
59
|
class BoundedSemaphore(Semaphore):
|
|
59
60
|
def __init__(self, value: int = 1, *, ctx: BaseContext) -> None: ...
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
from _typeshed import Incomplete
|
|
11
11
|
from abc import ABCMeta, abstractmethod
|
|
12
|
-
from typing import Literal, Protocol, overload
|
|
12
|
+
from typing import ClassVar, Literal, Protocol, overload
|
|
13
13
|
|
|
14
14
|
__all__ = ["Number", "Complex", "Real", "Rational", "Integral"]
|
|
15
15
|
|
|
@@ -114,6 +114,7 @@ class Complex(Number, _ComplexLike):
|
|
|
114
114
|
def conjugate(self) -> _ComplexLike: ...
|
|
115
115
|
@abstractmethod
|
|
116
116
|
def __eq__(self, other: object) -> bool: ...
|
|
117
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
117
118
|
|
|
118
119
|
# See comment at the top of the file
|
|
119
120
|
# for why some of these return types are purposefully vague
|
|
@@ -54,7 +54,7 @@ from _operator import (
|
|
|
54
54
|
)
|
|
55
55
|
from _typeshed import SupportsGetItem
|
|
56
56
|
from typing import Any, Generic, TypeVar, final, overload
|
|
57
|
-
from typing_extensions import TypeVarTuple, Unpack
|
|
57
|
+
from typing_extensions import Self, TypeVarTuple, Unpack
|
|
58
58
|
|
|
59
59
|
_T = TypeVar("_T")
|
|
60
60
|
_T_co = TypeVar("_T_co", covariant=True)
|
|
@@ -215,7 +215,7 @@ class itemgetter(Generic[_T_co]):
|
|
|
215
215
|
|
|
216
216
|
@final
|
|
217
217
|
class methodcaller:
|
|
218
|
-
def
|
|
218
|
+
def __new__(cls, name: str, /, *args: Any, **kwargs: Any) -> Self: ...
|
|
219
219
|
def __call__(self, obj: Any) -> Any:
|
|
220
220
|
"""Call self as a function."""
|
|
221
221
|
...
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import builtins
|
|
1
2
|
from _typeshed import Incomplete, MaybeNone
|
|
2
3
|
from abc import abstractmethod
|
|
3
4
|
from collections.abc import Callable, Iterable, Mapping, Sequence
|
|
4
|
-
from typing import IO, Any, AnyStr, Literal, NoReturn, overload
|
|
5
|
+
from typing import IO, Any, AnyStr, ClassVar, Literal, NoReturn, overload
|
|
6
|
+
from typing_extensions import Self
|
|
5
7
|
|
|
6
8
|
__all__ = [
|
|
7
9
|
"Option",
|
|
@@ -27,8 +29,9 @@ NO_DEFAULT: tuple[str, ...]
|
|
|
27
29
|
SUPPRESS_HELP: str
|
|
28
30
|
SUPPRESS_USAGE: str
|
|
29
31
|
|
|
30
|
-
|
|
31
|
-
def
|
|
32
|
+
# Can return complex, float, or int depending on the option's type
|
|
33
|
+
def check_builtin(option: Option, opt: str, value: str) -> complex: ...
|
|
34
|
+
def check_choice(option: Option, opt: str, value: str) -> str: ...
|
|
32
35
|
|
|
33
36
|
class OptParseError(Exception):
|
|
34
37
|
msg: str
|
|
@@ -62,9 +65,11 @@ class HelpFormatter:
|
|
|
62
65
|
max_help_position: int
|
|
63
66
|
option_strings: dict[Option, str]
|
|
64
67
|
parser: OptionParser
|
|
65
|
-
short_first:
|
|
68
|
+
short_first: bool | Literal[0, 1]
|
|
66
69
|
width: int
|
|
67
|
-
def __init__(
|
|
70
|
+
def __init__(
|
|
71
|
+
self, indent_increment: int, max_help_position: int, width: int | None, short_first: bool | Literal[0, 1]
|
|
72
|
+
) -> None: ...
|
|
68
73
|
def dedent(self) -> None: ...
|
|
69
74
|
def expand_default(self, option: Option) -> str: ...
|
|
70
75
|
def format_description(self, description: str | None) -> str: ...
|
|
@@ -83,14 +88,22 @@ class HelpFormatter:
|
|
|
83
88
|
|
|
84
89
|
class IndentedHelpFormatter(HelpFormatter):
|
|
85
90
|
def __init__(
|
|
86
|
-
self,
|
|
91
|
+
self,
|
|
92
|
+
indent_increment: int = 2,
|
|
93
|
+
max_help_position: int = 24,
|
|
94
|
+
width: int | None = None,
|
|
95
|
+
short_first: bool | Literal[0, 1] = 1,
|
|
87
96
|
) -> None: ...
|
|
88
97
|
def format_heading(self, heading: str) -> str: ...
|
|
89
98
|
def format_usage(self, usage: str) -> str: ...
|
|
90
99
|
|
|
91
100
|
class TitledHelpFormatter(HelpFormatter):
|
|
92
101
|
def __init__(
|
|
93
|
-
self,
|
|
102
|
+
self,
|
|
103
|
+
indent_increment: int = 0,
|
|
104
|
+
max_help_position: int = 24,
|
|
105
|
+
width: int | None = None,
|
|
106
|
+
short_first: bool | Literal[0, 1] = 0,
|
|
94
107
|
) -> None: ...
|
|
95
108
|
def format_heading(self, heading: str) -> str: ...
|
|
96
109
|
def format_usage(self, usage: str) -> str: ...
|
|
@@ -99,25 +112,46 @@ class Option:
|
|
|
99
112
|
ACTIONS: tuple[str, ...]
|
|
100
113
|
ALWAYS_TYPED_ACTIONS: tuple[str, ...]
|
|
101
114
|
ATTRS: list[str]
|
|
102
|
-
CHECK_METHODS: list[Callable[
|
|
115
|
+
CHECK_METHODS: list[Callable[[Self], object]] | None
|
|
103
116
|
CONST_ACTIONS: tuple[str, ...]
|
|
104
117
|
STORE_ACTIONS: tuple[str, ...]
|
|
105
118
|
TYPED_ACTIONS: tuple[str, ...]
|
|
106
119
|
TYPES: tuple[str, ...]
|
|
107
|
-
TYPE_CHECKER: dict[str, Callable[[Option, str,
|
|
120
|
+
TYPE_CHECKER: dict[str, Callable[[Option, str, str], object]]
|
|
108
121
|
_long_opts: list[str]
|
|
109
122
|
_short_opts: list[str]
|
|
110
123
|
action: str
|
|
124
|
+
type: str | None
|
|
111
125
|
dest: str | None
|
|
112
|
-
default:
|
|
126
|
+
default: Any # default can be "any" type
|
|
113
127
|
nargs: int
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
128
|
+
const: Any | None # const can be "any" type
|
|
129
|
+
choices: list[str] | tuple[str, ...] | None
|
|
130
|
+
# Callback args and kwargs cannot be expressed in Python's type system.
|
|
131
|
+
# Revisit if ParamSpec is ever changed to work with packed args/kwargs.
|
|
132
|
+
callback: Callable[..., object] | None
|
|
133
|
+
callback_args: tuple[Any, ...] | None
|
|
134
|
+
callback_kwargs: dict[str, Any] | None
|
|
118
135
|
help: str | None
|
|
119
136
|
metavar: str | None
|
|
120
|
-
def __init__(
|
|
137
|
+
def __init__(
|
|
138
|
+
self,
|
|
139
|
+
*opts: str | None,
|
|
140
|
+
# The following keywords are handled by the _set_attrs method. All default to
|
|
141
|
+
# `None` except for `default`, which defaults to `NO_DEFAULT`.
|
|
142
|
+
action: str | None = None,
|
|
143
|
+
type: str | builtins.type | None = None,
|
|
144
|
+
dest: str | None = None,
|
|
145
|
+
default: Any = ..., # = NO_DEFAULT
|
|
146
|
+
nargs: int | None = None,
|
|
147
|
+
const: Any | None = None,
|
|
148
|
+
choices: list[str] | tuple[str, ...] | None = None,
|
|
149
|
+
callback: Callable[..., object] | None = None,
|
|
150
|
+
callback_args: tuple[Any, ...] | None = None,
|
|
151
|
+
callback_kwargs: dict[str, Any] | None = None,
|
|
152
|
+
help: str | None = None,
|
|
153
|
+
metavar: str | None = None,
|
|
154
|
+
) -> None: ...
|
|
121
155
|
def _check_action(self) -> None: ...
|
|
122
156
|
def _check_callback(self) -> None: ...
|
|
123
157
|
def _check_choice(self) -> None: ...
|
|
@@ -126,13 +160,14 @@ class Option:
|
|
|
126
160
|
def _check_nargs(self) -> None: ...
|
|
127
161
|
def _check_opt_strings(self, opts: Iterable[str | None]) -> list[str]: ...
|
|
128
162
|
def _check_type(self) -> None: ...
|
|
129
|
-
def _set_attrs(self, attrs: dict[str,
|
|
163
|
+
def _set_attrs(self, attrs: dict[str, Any]) -> None: ... # accepted attrs depend on the ATTRS attribute
|
|
130
164
|
def _set_opt_strings(self, opts: Iterable[str]) -> None: ...
|
|
131
|
-
def check_value(self, opt: str, value): ...
|
|
132
|
-
def convert_value(self, opt: str, value): ...
|
|
165
|
+
def check_value(self, opt: str, value: str) -> Any: ... # return type cannot be known statically
|
|
166
|
+
def convert_value(self, opt: str, value: str | tuple[str, ...] | None) -> Any: ... # return type cannot be known statically
|
|
133
167
|
def get_opt_string(self) -> str: ...
|
|
134
|
-
def process(self, opt, value, values, parser: OptionParser) -> int: ...
|
|
135
|
-
|
|
168
|
+
def process(self, opt: str, value: str | tuple[str, ...] | None, values: Values, parser: OptionParser) -> int: ...
|
|
169
|
+
# value of take_action can be "any" type
|
|
170
|
+
def take_action(self, action: str, dest: str, opt: str, value: Any, values: Values, parser: OptionParser) -> int: ...
|
|
136
171
|
def takes_value(self) -> bool: ...
|
|
137
172
|
|
|
138
173
|
make_option = Option
|
|
@@ -141,7 +176,7 @@ class OptionContainer:
|
|
|
141
176
|
_long_opt: dict[str, Option]
|
|
142
177
|
_short_opt: dict[str, Option]
|
|
143
178
|
conflict_handler: str
|
|
144
|
-
defaults: dict[str,
|
|
179
|
+
defaults: dict[str, Any] # default values can be "any" type
|
|
145
180
|
description: str | None
|
|
146
181
|
option_class: type[Option]
|
|
147
182
|
def __init__(
|
|
@@ -153,7 +188,25 @@ class OptionContainer:
|
|
|
153
188
|
@overload
|
|
154
189
|
def add_option(self, opt: Option, /) -> Option: ...
|
|
155
190
|
@overload
|
|
156
|
-
def add_option(
|
|
191
|
+
def add_option(
|
|
192
|
+
self,
|
|
193
|
+
opt_str: str,
|
|
194
|
+
/,
|
|
195
|
+
*opts: str | None,
|
|
196
|
+
action: str | None = None,
|
|
197
|
+
type: str | builtins.type | None = None,
|
|
198
|
+
dest: str | None = None,
|
|
199
|
+
default: Any = ..., # = NO_DEFAULT
|
|
200
|
+
nargs: int | None = None,
|
|
201
|
+
const: Any | None = None,
|
|
202
|
+
choices: list[str] | tuple[str, ...] | None = None,
|
|
203
|
+
callback: Callable[..., object] | None = None,
|
|
204
|
+
callback_args: tuple[Any, ...] | None = None,
|
|
205
|
+
callback_kwargs: dict[str, Any] | None = None,
|
|
206
|
+
help: str | None = None,
|
|
207
|
+
metavar: str | None = None,
|
|
208
|
+
**kwargs, # Allow arbitrary keyword arguments for user defined option_class
|
|
209
|
+
) -> Option: ...
|
|
157
210
|
def add_options(self, option_list: Iterable[Option]) -> None: ...
|
|
158
211
|
def destroy(self) -> None: ...
|
|
159
212
|
def format_option_help(self, formatter: HelpFormatter) -> str: ...
|
|
@@ -175,15 +228,19 @@ class OptionGroup(OptionContainer):
|
|
|
175
228
|
def set_title(self, title: str) -> None: ...
|
|
176
229
|
|
|
177
230
|
class Values:
|
|
178
|
-
def __init__(self, defaults: Mapping[str,
|
|
179
|
-
def _update(self, dict: Mapping[str,
|
|
180
|
-
def _update_careful(self, dict: Mapping[str,
|
|
181
|
-
def _update_loose(self, dict: Mapping[str,
|
|
182
|
-
def ensure_value(self, attr: str, value): ...
|
|
183
|
-
def read_file(self, filename: str, mode:
|
|
184
|
-
def read_module(self, modname: str, mode:
|
|
185
|
-
|
|
186
|
-
|
|
231
|
+
def __init__(self, defaults: Mapping[str, object] | None = None) -> None: ...
|
|
232
|
+
def _update(self, dict: Mapping[str, object], mode: Literal["careful", "loose"]) -> None: ...
|
|
233
|
+
def _update_careful(self, dict: Mapping[str, object]) -> None: ...
|
|
234
|
+
def _update_loose(self, dict: Mapping[str, object]) -> None: ...
|
|
235
|
+
def ensure_value(self, attr: str, value: object) -> Any: ... # return type cannot be known statically
|
|
236
|
+
def read_file(self, filename: str, mode: Literal["careful", "loose"] = "careful") -> None: ...
|
|
237
|
+
def read_module(self, modname: str, mode: Literal["careful", "loose"] = "careful") -> None: ...
|
|
238
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
239
|
+
# __getattr__ doesn't exist, but anything passed as a default to __init__
|
|
240
|
+
# is set on the instance.
|
|
241
|
+
def __getattr__(self, name: str) -> Any: ...
|
|
242
|
+
# TODO mypy infers -> object for __getattr__ if __setattr__ has `value: object`
|
|
243
|
+
def __setattr__(self, name: str, value: Any, /) -> None:
|
|
187
244
|
"""Implement setattr(self, name, value)."""
|
|
188
245
|
...
|
|
189
246
|
def __eq__(self, other: object) -> bool: ...
|
|
@@ -229,7 +286,7 @@ class OptionParser(OptionContainer):
|
|
|
229
286
|
@overload
|
|
230
287
|
def add_option_group(self, opt_group: OptionGroup, /) -> OptionGroup: ...
|
|
231
288
|
@overload
|
|
232
|
-
def add_option_group(self,
|
|
289
|
+
def add_option_group(self, title: str, /, description: str | None = None) -> OptionGroup: ...
|
|
233
290
|
def check_values(self, values: Values, args: list[str]) -> tuple[Values, list[str]]: ...
|
|
234
291
|
def disable_interspersed_args(self) -> None: ...
|
|
235
292
|
def enable_interspersed_args(self) -> None: ...
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from _typeshed import StrOrBytesPath
|
|
2
2
|
from collections.abc import Sequence
|
|
3
3
|
from types import CodeType
|
|
4
|
-
from typing import Any, final
|
|
4
|
+
from typing import Any, ClassVar, final
|
|
5
5
|
|
|
6
6
|
def expr(source: str) -> STType: ...
|
|
7
7
|
def suite(source: str) -> STType: ...
|
|
@@ -17,6 +17,7 @@ class ParserError(Exception): ...
|
|
|
17
17
|
|
|
18
18
|
@final
|
|
19
19
|
class STType:
|
|
20
|
+
__hash__: ClassVar[None] # type: ignore[assignment]
|
|
20
21
|
def compile(self, filename: StrOrBytesPath = ...) -> CodeType: ...
|
|
21
22
|
def isexpr(self) -> bool: ...
|
|
22
23
|
def issuite(self) -> bool: ...
|