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
|
@@ -15,7 +15,7 @@ class AnnotationMixin:
|
|
|
15
15
|
border: str
|
|
16
16
|
f_t: Name | None
|
|
17
17
|
v: Incomplete | None
|
|
18
|
-
f: int # AnnotationFlags
|
|
18
|
+
f: int # AnnotationFlags bitmask
|
|
19
19
|
contents: str | None
|
|
20
20
|
a: Action | None
|
|
21
21
|
dest: Destination | None
|
|
@@ -35,7 +35,7 @@ class AnnotationMixin:
|
|
|
35
35
|
y: int,
|
|
36
36
|
width: int,
|
|
37
37
|
height: int,
|
|
38
|
-
flags: tuple[AnnotationFlag, ...] = ...,
|
|
38
|
+
flags: tuple[AnnotationFlag | str, ...] = ...,
|
|
39
39
|
contents: str | None = None,
|
|
40
40
|
dest: Destination | None = None,
|
|
41
41
|
action: Action | None = None,
|
|
@@ -8,15 +8,15 @@ class SignatureFlag(IntEnum):
|
|
|
8
8
|
SIGNATURES_EXIST = 1
|
|
9
9
|
APPEND_ONLY = 2
|
|
10
10
|
|
|
11
|
-
class CoerciveEnum(Enum):
|
|
11
|
+
class CoerciveEnum(Enum): # type: ignore[misc] # Enum with no members
|
|
12
12
|
@classmethod
|
|
13
|
-
def coerce(cls, value: Self | str) -> Self: ...
|
|
13
|
+
def coerce(cls, value: Self | str, case_sensitive: bool = False) -> Self: ...
|
|
14
14
|
|
|
15
|
-
class CoerciveIntEnum(IntEnum):
|
|
15
|
+
class CoerciveIntEnum(IntEnum): # type: ignore[misc] # Enum with no members
|
|
16
16
|
@classmethod
|
|
17
17
|
def coerce(cls, value: Self | str | int) -> Self: ...
|
|
18
18
|
|
|
19
|
-
class CoerciveIntFlag(IntFlag):
|
|
19
|
+
class CoerciveIntFlag(IntFlag): # type: ignore[misc] # Enum with no members
|
|
20
20
|
@classmethod
|
|
21
21
|
def coerce(cls, value: Self | str | int) -> Self: ...
|
|
22
22
|
|
|
@@ -38,6 +38,9 @@ class Align(CoerciveEnum):
|
|
|
38
38
|
R = "RIGHT"
|
|
39
39
|
J = "JUSTIFY"
|
|
40
40
|
|
|
41
|
+
@classmethod
|
|
42
|
+
def coerce(cls, value: Self | str) -> Self: ... # type: ignore[override]
|
|
43
|
+
|
|
41
44
|
_Align: TypeAlias = Align | Literal["CENTER", "X_CENTER", "LEFT", "RIGHT", "JUSTIFY"] # noqa: Y047
|
|
42
45
|
|
|
43
46
|
class VAlign(CoerciveEnum):
|
|
@@ -45,6 +48,9 @@ class VAlign(CoerciveEnum):
|
|
|
45
48
|
T = "TOP"
|
|
46
49
|
B = "BOTTOM"
|
|
47
50
|
|
|
51
|
+
@classmethod
|
|
52
|
+
def coerce(cls, value: Self | str) -> Self: ... # type: ignore[override]
|
|
53
|
+
|
|
48
54
|
class TextEmphasis(CoerciveIntFlag):
|
|
49
55
|
NONE = 0
|
|
50
56
|
B = 1
|
|
@@ -70,6 +76,15 @@ class TableBordersLayout(CoerciveEnum):
|
|
|
70
76
|
NO_HORIZONTAL_LINES = "NO_HORIZONTAL_LINES"
|
|
71
77
|
SINGLE_TOP_LINE = "SINGLE_TOP_LINE"
|
|
72
78
|
|
|
79
|
+
class CellBordersLayout(CoerciveIntFlag):
|
|
80
|
+
NONE = 0
|
|
81
|
+
LEFT = 1
|
|
82
|
+
RIGHT = 2
|
|
83
|
+
TOP = 4
|
|
84
|
+
BOTTOM = 8
|
|
85
|
+
ALL = 15
|
|
86
|
+
INHERIT = 16
|
|
87
|
+
|
|
73
88
|
class TableCellFillMode(CoerciveEnum):
|
|
74
89
|
NONE = "NONE"
|
|
75
90
|
ALL = "ALL"
|
|
@@ -79,6 +94,8 @@ class TableCellFillMode(CoerciveEnum):
|
|
|
79
94
|
EVEN_COLUMNS = "EVEN_COLUMNS"
|
|
80
95
|
|
|
81
96
|
def should_fill_cell(self, i: int, j: int) -> bool: ...
|
|
97
|
+
@classmethod
|
|
98
|
+
def coerce(cls, value: Self | str) -> Self: ... # type: ignore[override]
|
|
82
99
|
|
|
83
100
|
class TableSpan(CoerciveEnum):
|
|
84
101
|
ROW = "ROW"
|
|
@@ -98,6 +115,8 @@ class RenderStyle(CoerciveEnum):
|
|
|
98
115
|
def is_draw(self) -> bool: ...
|
|
99
116
|
@property
|
|
100
117
|
def is_fill(self) -> bool: ...
|
|
118
|
+
@classmethod
|
|
119
|
+
def coerce(cls, value: Self | str) -> Self: ... # type: ignore[override]
|
|
101
120
|
|
|
102
121
|
class TextMode(CoerciveIntEnum):
|
|
103
122
|
FILL = 0
|
|
@@ -276,3 +295,30 @@ class TextDirection(CoerciveEnum):
|
|
|
276
295
|
RTL = "RTL"
|
|
277
296
|
TTB = "TTB"
|
|
278
297
|
BTT = "BTT"
|
|
298
|
+
|
|
299
|
+
class PageLabelStyle(CoerciveEnum):
|
|
300
|
+
NUMBER = "D"
|
|
301
|
+
UPPER_ROMAN = "R"
|
|
302
|
+
LOWER_ROMAN = "r"
|
|
303
|
+
UPPER_LETTER = "A"
|
|
304
|
+
LOWER_LETTER = "a"
|
|
305
|
+
NONE = None
|
|
306
|
+
|
|
307
|
+
class Duplex(CoerciveEnum):
|
|
308
|
+
SIMPLEX = "Simplex"
|
|
309
|
+
DUPLEX_FLIP_SHORT_EDGE = "DuplexFlipShortEdge"
|
|
310
|
+
DUPLEX_FLIP_LONG_EDGE = "DuplexFlipLongEdge"
|
|
311
|
+
|
|
312
|
+
class PageBoundaries(CoerciveEnum):
|
|
313
|
+
ART_BOX = "ArtBox"
|
|
314
|
+
BLEED_BOX = "BleedBox"
|
|
315
|
+
CROP_BOX = "CropBox"
|
|
316
|
+
MEDIA_BOX = "MediaBox"
|
|
317
|
+
TRIM_BOX = "TrimBox"
|
|
318
|
+
|
|
319
|
+
class PageOrientation(CoerciveEnum):
|
|
320
|
+
PORTRAIT = "P"
|
|
321
|
+
LANDSCAPE = "L"
|
|
322
|
+
|
|
323
|
+
@classmethod
|
|
324
|
+
def coerce(cls, value: Self | str) -> Self: ... # type: ignore[override]
|
|
@@ -6,7 +6,7 @@ from typing import Final, overload
|
|
|
6
6
|
from typing_extensions import Self, deprecated
|
|
7
7
|
|
|
8
8
|
from .drawing import DeviceGray, DeviceRGB, Number
|
|
9
|
-
from .enums import TextEmphasis
|
|
9
|
+
from .enums import Align, TextEmphasis
|
|
10
10
|
from .syntax import PDFObject
|
|
11
11
|
|
|
12
12
|
# Only defined if harfbuzz is installed.
|
|
@@ -41,7 +41,7 @@ class FontFace:
|
|
|
41
41
|
|
|
42
42
|
class TextStyle(FontFace):
|
|
43
43
|
t_margin: int
|
|
44
|
-
l_margin: int
|
|
44
|
+
l_margin: int | Align
|
|
45
45
|
b_margin: int
|
|
46
46
|
def __init__(
|
|
47
47
|
self,
|
|
@@ -52,7 +52,7 @@ class TextStyle(FontFace):
|
|
|
52
52
|
fill_color: int | tuple[int, int, int] | None = None,
|
|
53
53
|
underline: bool = False,
|
|
54
54
|
t_margin: int | None = None,
|
|
55
|
-
l_margin: int | None = None,
|
|
55
|
+
l_margin: int | Align | str | None = None,
|
|
56
56
|
b_margin: int | None = None,
|
|
57
57
|
): ...
|
|
58
58
|
def replace( # type: ignore[override]
|
|
@@ -9,6 +9,7 @@ from typing import Any, ClassVar, Final, Literal, NamedTuple, overload
|
|
|
9
9
|
from typing_extensions import TypeAlias, deprecated
|
|
10
10
|
|
|
11
11
|
from fpdf import ViewerPreferences
|
|
12
|
+
from fpdf.outline import OutlineSection
|
|
12
13
|
from PIL import Image
|
|
13
14
|
|
|
14
15
|
from .annotations import AnnotationDict, PDFEmbeddedFile
|
|
@@ -22,8 +23,10 @@ from .enums import (
|
|
|
22
23
|
EncryptionMethod,
|
|
23
24
|
FileAttachmentAnnotationName,
|
|
24
25
|
MethodReturnValue,
|
|
26
|
+
PageLabelStyle,
|
|
25
27
|
PageLayout,
|
|
26
28
|
PageMode,
|
|
29
|
+
PageOrientation,
|
|
27
30
|
PathPaintRule,
|
|
28
31
|
RenderStyle,
|
|
29
32
|
TableBordersLayout,
|
|
@@ -40,7 +43,7 @@ from .enums import (
|
|
|
40
43
|
_Align,
|
|
41
44
|
)
|
|
42
45
|
from .errors import FPDFException as FPDFException
|
|
43
|
-
from .fonts import FontFace, TextStyle, TitleStyle as TitleStyle
|
|
46
|
+
from .fonts import CoreFont, FontFace, TextStyle, TitleStyle as TitleStyle, TTFFont
|
|
44
47
|
from .graphics_state import GraphicsStateMixin
|
|
45
48
|
from .html import HTML2FPDF
|
|
46
49
|
from .image_datastructures import (
|
|
@@ -55,6 +58,7 @@ from .recorder import FPDFRecorder
|
|
|
55
58
|
from .structure_tree import StructureTreeBuilder
|
|
56
59
|
from .syntax import DestinationXYZ
|
|
57
60
|
from .table import Table
|
|
61
|
+
from .transitions import Transition
|
|
58
62
|
from .util import Padding, _Unit
|
|
59
63
|
|
|
60
64
|
__all__ = [
|
|
@@ -79,16 +83,14 @@ FPDF_VERSION: Final[str]
|
|
|
79
83
|
PAGE_FORMATS: dict[_Format, tuple[float, float]]
|
|
80
84
|
|
|
81
85
|
class ToCPlaceholder(NamedTuple):
|
|
82
|
-
render_function: Callable[[FPDF,
|
|
86
|
+
render_function: Callable[[FPDF, list[OutlineSection]], object]
|
|
83
87
|
start_page: int
|
|
84
88
|
y: int
|
|
89
|
+
page_orientation: str
|
|
85
90
|
pages: int = 1
|
|
86
91
|
|
|
87
92
|
def get_page_format(format: _Format | tuple[float, float], k: float | None = None) -> tuple[float, float]: ...
|
|
88
93
|
|
|
89
|
-
# TODO: TypedDicts
|
|
90
|
-
_Font: TypeAlias = dict[str, Any]
|
|
91
|
-
|
|
92
94
|
class FPDF(GraphicsStateMixin):
|
|
93
95
|
MARKDOWN_BOLD_MARKER: ClassVar[str]
|
|
94
96
|
MARKDOWN_ITALICS_MARKER: ClassVar[str]
|
|
@@ -102,7 +104,7 @@ class FPDF(GraphicsStateMixin):
|
|
|
102
104
|
|
|
103
105
|
page: int
|
|
104
106
|
pages: dict[int, PDFPage]
|
|
105
|
-
fonts: dict[str,
|
|
107
|
+
fonts: dict[str, CoreFont | TTFFont]
|
|
106
108
|
fonts_used_per_page_number: dict[int, set[int]]
|
|
107
109
|
links: dict[int, DestinationXYZ]
|
|
108
110
|
embedded_files: list[PDFEmbeddedFile]
|
|
@@ -119,6 +121,9 @@ class FPDF(GraphicsStateMixin):
|
|
|
119
121
|
oversized_images: Incomplete | None
|
|
120
122
|
oversized_images_ratio: float
|
|
121
123
|
struct_builder: StructureTreeBuilder
|
|
124
|
+
toc_placeholder: ToCPlaceholder | None
|
|
125
|
+
in_toc_rendering: bool
|
|
126
|
+
title: str | None
|
|
122
127
|
section_title_styles: dict[int, TextStyle]
|
|
123
128
|
|
|
124
129
|
core_fonts: dict[str, str]
|
|
@@ -145,7 +150,7 @@ class FPDF(GraphicsStateMixin):
|
|
|
145
150
|
buffer: bytearray | None
|
|
146
151
|
|
|
147
152
|
# Set during call to _set_orientation(), called from __init__().
|
|
148
|
-
cur_orientation:
|
|
153
|
+
cur_orientation: PageOrientation
|
|
149
154
|
w_pt: float
|
|
150
155
|
h_pt: float
|
|
151
156
|
w: float
|
|
@@ -208,7 +213,6 @@ class FPDF(GraphicsStateMixin):
|
|
|
208
213
|
language: str | None = None,
|
|
209
214
|
) -> None: ...
|
|
210
215
|
def set_compression(self, compress: bool) -> None: ...
|
|
211
|
-
title: str
|
|
212
216
|
def set_title(self, title: str) -> None: ...
|
|
213
217
|
lang: str
|
|
214
218
|
def set_lang(self, lang: str) -> None: ...
|
|
@@ -227,17 +231,24 @@ class FPDF(GraphicsStateMixin):
|
|
|
227
231
|
def set_doc_option(self, opt: str, value: str) -> None: ...
|
|
228
232
|
def set_image_filter(self, image_filter: str) -> None: ...
|
|
229
233
|
def alias_nb_pages(self, alias: str = "{nb}") -> None: ...
|
|
234
|
+
def set_page_label(
|
|
235
|
+
self, label_style: PageLabelStyle | str | None = None, label_prefix: str | None = None, label_start: int | None = None
|
|
236
|
+
) -> None: ...
|
|
230
237
|
def add_page(
|
|
231
238
|
self,
|
|
232
239
|
orientation: _Orientation = "",
|
|
233
240
|
format: _Format | tuple[float, float] = "",
|
|
234
241
|
same: bool = False,
|
|
235
|
-
duration:
|
|
236
|
-
transition:
|
|
242
|
+
duration: float = 0,
|
|
243
|
+
transition: Transition | None = None,
|
|
244
|
+
label_style: PageLabelStyle | str | None = None,
|
|
245
|
+
label_prefix: str | None = None,
|
|
246
|
+
label_start: int | None = None,
|
|
237
247
|
) -> None: ...
|
|
238
248
|
def header(self) -> None: ...
|
|
239
249
|
def footer(self) -> None: ...
|
|
240
250
|
def page_no(self) -> int: ...
|
|
251
|
+
def get_page_label(self) -> str: ...
|
|
241
252
|
def set_draw_color(self, r: int, g: int = -1, b: int = -1) -> None: ...
|
|
242
253
|
def set_fill_color(self, r: int, g: int = -1, b: int = -1) -> None: ...
|
|
243
254
|
def set_text_color(self, r: int, g: int = -1, b: int = -1) -> None: ...
|
|
@@ -340,7 +351,16 @@ class FPDF(GraphicsStateMixin):
|
|
|
340
351
|
def add_link(self, y: float = 0, x: float = 0, page: int = -1, zoom: float | Literal["null"] = "null") -> int: ...
|
|
341
352
|
def set_link(self, link, y: float = 0, x: float = 0, page: int = -1, zoom: float | Literal["null"] = "null") -> None: ...
|
|
342
353
|
def link(
|
|
343
|
-
self,
|
|
354
|
+
self,
|
|
355
|
+
x: float,
|
|
356
|
+
y: float,
|
|
357
|
+
w: float,
|
|
358
|
+
h: float,
|
|
359
|
+
link: str | int,
|
|
360
|
+
alt_text: str | None = None,
|
|
361
|
+
*,
|
|
362
|
+
border_width: int = 0,
|
|
363
|
+
**kwargs, # accepts AnnotationDict arguments
|
|
344
364
|
) -> AnnotationDict: ...
|
|
345
365
|
def embed_file(
|
|
346
366
|
self,
|
|
@@ -380,7 +400,9 @@ class FPDF(GraphicsStateMixin):
|
|
|
380
400
|
w: float = 1,
|
|
381
401
|
h: float = 1,
|
|
382
402
|
name: AnnotationName | str | None = None,
|
|
403
|
+
*,
|
|
383
404
|
flags: tuple[AnnotationFlag, ...] | tuple[str, ...] = ...,
|
|
405
|
+
**kwargs, # accepts AnnotationDict arguments
|
|
384
406
|
) -> AnnotationDict: ...
|
|
385
407
|
def free_text_annotation(
|
|
386
408
|
self,
|
|
@@ -389,16 +411,22 @@ class FPDF(GraphicsStateMixin):
|
|
|
389
411
|
y: float | None = None,
|
|
390
412
|
w: float | None = None,
|
|
391
413
|
h: float | None = None,
|
|
414
|
+
*,
|
|
392
415
|
flags: tuple[AnnotationFlag, ...] | tuple[str, ...] = ...,
|
|
416
|
+
**kwargs, # accepts AnnotationDict arguments
|
|
417
|
+
) -> AnnotationDict: ...
|
|
418
|
+
def add_action(
|
|
419
|
+
self, action, x: float, y: float, w: float, h: float, **kwargs # accepts AnnotationDict arguments
|
|
393
420
|
) -> AnnotationDict: ...
|
|
394
|
-
def add_action(self, action, x: float, y: float, w: float, h: float) -> None: ...
|
|
395
421
|
def highlight(
|
|
396
422
|
self,
|
|
397
423
|
text: str,
|
|
398
|
-
title: str = "",
|
|
399
424
|
type: TextMarkupType | str = "Highlight",
|
|
400
425
|
color: tuple[float, float, float] = (1, 1, 0),
|
|
401
426
|
modification_time: datetime.datetime | None = None,
|
|
427
|
+
*,
|
|
428
|
+
title: str | None = None,
|
|
429
|
+
**kwargs, # accepts AnnotationDict arguments
|
|
402
430
|
) -> _GeneratorContextManager[None]: ...
|
|
403
431
|
add_highlight = highlight
|
|
404
432
|
def add_text_markup_annotation(
|
|
@@ -406,18 +434,22 @@ class FPDF(GraphicsStateMixin):
|
|
|
406
434
|
type: str,
|
|
407
435
|
text: str,
|
|
408
436
|
quad_points: Sequence[int],
|
|
409
|
-
title: str = "",
|
|
410
437
|
color: tuple[float, float, float] = (1, 1, 0),
|
|
411
438
|
modification_time: datetime.datetime | None = None,
|
|
412
439
|
page: int | None = None,
|
|
440
|
+
*,
|
|
441
|
+
title: str | None = None,
|
|
442
|
+
**kwargs, # accepts AnnotationDict arguments
|
|
413
443
|
) -> AnnotationDict: ...
|
|
414
444
|
def ink_annotation(
|
|
415
445
|
self,
|
|
416
446
|
coords: Iterable[Incomplete],
|
|
417
|
-
|
|
418
|
-
title: str = "",
|
|
447
|
+
text: str = "",
|
|
419
448
|
color: Sequence[float] = (1, 1, 0),
|
|
420
|
-
border_width:
|
|
449
|
+
border_width: float = 1,
|
|
450
|
+
*,
|
|
451
|
+
title: str | None = None,
|
|
452
|
+
**kwargs, # accepts AnnotationDict arguments
|
|
421
453
|
) -> AnnotationDict: ...
|
|
422
454
|
def text(self, x: float, y: float, text: str = "") -> None: ...
|
|
423
455
|
def rotate(self, angle: float, x: float | None = None, y: float | None = None) -> None: ...
|
|
@@ -585,7 +617,9 @@ class FPDF(GraphicsStateMixin):
|
|
|
585
617
|
def round_clip(self, x: float, y: float, r: float) -> _GeneratorContextManager[None]: ...
|
|
586
618
|
def unbreakable(self) -> _GeneratorContextManager[FPDFRecorder]: ...
|
|
587
619
|
def offset_rendering(self) -> _GeneratorContextManager[FPDFRecorder]: ...
|
|
588
|
-
def insert_toc_placeholder(
|
|
620
|
+
def insert_toc_placeholder(
|
|
621
|
+
self, render_toc_function: Callable[[FPDF, list[OutlineSection]], object], pages: int = 1, allow_extra_pages: bool = False
|
|
622
|
+
) -> None: ...
|
|
589
623
|
def set_section_title_styles(
|
|
590
624
|
self,
|
|
591
625
|
level0: TextStyle,
|
|
@@ -597,6 +631,7 @@ class FPDF(GraphicsStateMixin):
|
|
|
597
631
|
level6: TextStyle | None = None,
|
|
598
632
|
) -> None: ...
|
|
599
633
|
def start_section(self, name: str, level: int = 0, strict: bool = True) -> None: ...
|
|
634
|
+
def use_text_style(self, text_style: TextStyle) -> _GeneratorContextManager[None]: ...
|
|
600
635
|
def use_font_face(self, font_face: FontFace) -> _GeneratorContextManager[None]: ...
|
|
601
636
|
def table(
|
|
602
637
|
self,
|
|
@@ -55,6 +55,7 @@ class HTML2FPDF(HTMLParser):
|
|
|
55
55
|
ol_type: list[_OLType]
|
|
56
56
|
bullet: list[Incomplete]
|
|
57
57
|
heading_level: Incomplete | None
|
|
58
|
+
render_title_tag: bool
|
|
58
59
|
table_line_separators: bool
|
|
59
60
|
table: Table | None
|
|
60
61
|
table_row: Row | None
|
|
@@ -78,6 +79,7 @@ class HTML2FPDF(HTMLParser):
|
|
|
78
79
|
tag_indents: dict[str, int] | None = None,
|
|
79
80
|
tag_styles: Mapping[str, FontFace] | None = None,
|
|
80
81
|
font_family: str = "times",
|
|
82
|
+
render_title_tag: bool = False,
|
|
81
83
|
) -> None: ...
|
|
82
84
|
def handle_data(self, data) -> None: ...
|
|
83
85
|
def handle_starttag(self, tag, attrs) -> None: ...
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Iterable
|
|
2
3
|
from dataclasses import dataclass
|
|
3
4
|
from io import BytesIO
|
|
4
5
|
from logging import Logger
|
|
5
6
|
from types import TracebackType
|
|
6
|
-
from typing import Any, Literal
|
|
7
|
+
from typing import Any, Final, Literal
|
|
7
8
|
from typing_extensions import TypeAlias
|
|
8
9
|
|
|
9
10
|
from PIL import Image
|
|
@@ -11,7 +12,7 @@ from PIL import Image
|
|
|
11
12
|
from .image_datastructures import ImageCache, ImageInfo, VectorImageInfo
|
|
12
13
|
from .svg import SVGObject
|
|
13
14
|
|
|
14
|
-
_ImageFilter: TypeAlias = Literal["AUTO", "FlateDecode", "DCTDecode", "JPXDecode"]
|
|
15
|
+
_ImageFilter: TypeAlias = Literal["AUTO", "FlateDecode", "DCTDecode", "JPXDecode", "LZWDecode"]
|
|
15
16
|
|
|
16
17
|
RESAMPLE: Image.Resampling
|
|
17
18
|
|
|
@@ -25,6 +26,11 @@ SETTINGS: ImageSettings
|
|
|
25
26
|
|
|
26
27
|
TIFFBitRevTable: list[int]
|
|
27
28
|
|
|
29
|
+
LZW_CLEAR_TABLE_MARKER: Final = 256
|
|
30
|
+
LZW_EOD_MARKER: Final = 257
|
|
31
|
+
LZW_INITIAL_BITS_PER_CODE: Final = 9
|
|
32
|
+
LZW_MAX_BITS_PER_CODE: Final = 12
|
|
33
|
+
|
|
28
34
|
def preload_image(
|
|
29
35
|
image_cache: ImageCache, name: str | BytesIO | Image.Image, dims: tuple[float, float] | None = None
|
|
30
36
|
) -> tuple[str, BytesIO | Image.Image | None, ImageInfo]: ...
|
|
@@ -50,3 +56,5 @@ class temp_attr:
|
|
|
50
56
|
|
|
51
57
|
def ccitt_payload_location_from_pil(img: Image.Image) -> tuple[int, int]: ...
|
|
52
58
|
def transcode_monochrome(img: Image.Image): ...
|
|
59
|
+
def pack_codes_into_bytes(codes: Iterable[int]) -> bytes: ...
|
|
60
|
+
def clear_table() -> tuple[dict[bytes, int], int, int, int]: ...
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from _typeshed import Incomplete
|
|
2
2
|
from collections.abc import Callable, Sequence
|
|
3
3
|
from typing import Final, NamedTuple
|
|
4
|
+
from uuid import UUID
|
|
4
5
|
|
|
5
6
|
from .enums import Align, TextDirection, WrapMode
|
|
6
7
|
|
|
@@ -68,12 +69,18 @@ class Fragment:
|
|
|
68
69
|
def trim(self, index: int) -> None: ...
|
|
69
70
|
def __eq__(self, other: Fragment) -> bool: ... # type: ignore[override]
|
|
70
71
|
def get_width(self, start: int = 0, end: int | None = None, chars: str | None = None, initial_cs: bool = True) -> float: ...
|
|
72
|
+
def has_same_style(self, other: Fragment) -> bool: ...
|
|
71
73
|
def get_character_width(self, character: str, print_sh: bool = False, initial_cs: bool = True): ...
|
|
72
74
|
def render_pdf_text(self, frag_ws, current_ws, word_spacing, adjust_x, adjust_y, h): ...
|
|
73
75
|
def render_pdf_text_ttf(self, frag_ws, word_spacing): ...
|
|
74
76
|
def render_with_text_shaping(self, pos_x: float, pos_y: float, h: float, word_spacing: float) -> str: ...
|
|
75
77
|
def render_pdf_text_core(self, frag_ws, current_ws): ...
|
|
76
78
|
|
|
79
|
+
class TotalPagesSubstitutionFragment(Fragment):
|
|
80
|
+
uuid: UUID
|
|
81
|
+
def get_placeholder_string(self) -> str: ...
|
|
82
|
+
def render_text_substitution(self, replacement_text: str) -> str: ...
|
|
83
|
+
|
|
77
84
|
class TextLine(NamedTuple):
|
|
78
85
|
fragments: tuple[Fragment, ...]
|
|
79
86
|
text_width: float
|
|
@@ -120,13 +127,12 @@ class CurrentLine:
|
|
|
120
127
|
self,
|
|
121
128
|
character: str,
|
|
122
129
|
character_width: float,
|
|
123
|
-
|
|
124
|
-
k: float,
|
|
130
|
+
original_fragment: Fragment,
|
|
125
131
|
original_fragment_index: int,
|
|
126
132
|
original_character_index: int,
|
|
127
133
|
height: float,
|
|
128
134
|
url: str | None = None,
|
|
129
|
-
): ...
|
|
135
|
+
) -> None: ...
|
|
130
136
|
def trim_trailing_spaces(self) -> None: ...
|
|
131
137
|
def manual_break(self, align: Align, trailing_nl: bool = False, trailing_form_feed: bool = False) -> TextLine: ...
|
|
132
138
|
def automatic_break_possible(self) -> bool: ...
|
|
@@ -2,6 +2,8 @@ from _typeshed import Incomplete
|
|
|
2
2
|
from collections.abc import Generator, Iterable
|
|
3
3
|
from typing import NamedTuple
|
|
4
4
|
|
|
5
|
+
from .fonts import TextStyle
|
|
6
|
+
from .fpdf import FPDF
|
|
5
7
|
from .structure_tree import StructElem
|
|
6
8
|
from .syntax import Destination, PDFObject, PDFString
|
|
7
9
|
|
|
@@ -34,3 +36,22 @@ class OutlineDictionary(PDFObject):
|
|
|
34
36
|
def build_outline_objs(
|
|
35
37
|
sections: Iterable[Incomplete],
|
|
36
38
|
) -> Generator[Incomplete, None, list[OutlineDictionary | OutlineItemDictionary]]: ...
|
|
39
|
+
|
|
40
|
+
class TableOfContents:
|
|
41
|
+
text_style: TextStyle
|
|
42
|
+
use_section_title_styles: bool
|
|
43
|
+
level_indent: float
|
|
44
|
+
line_spacing: float
|
|
45
|
+
ignore_pages_before_toc: bool
|
|
46
|
+
|
|
47
|
+
def __init__(
|
|
48
|
+
self,
|
|
49
|
+
text_style: TextStyle | None = None,
|
|
50
|
+
use_section_title_styles: bool = False,
|
|
51
|
+
level_indent: float = 7.5,
|
|
52
|
+
line_spacing: float = 1.5,
|
|
53
|
+
ignore_pages_before_toc: bool = True,
|
|
54
|
+
) -> None: ...
|
|
55
|
+
def get_text_style(self, pdf: FPDF, item: OutlineSection) -> TextStyle: ...
|
|
56
|
+
def render_toc_item(self, pdf: FPDF, item: OutlineSection) -> None: ...
|
|
57
|
+
def render_toc(self, pdf: FPDF, outline: Iterable[OutlineSection]) -> None: ...
|
|
@@ -5,8 +5,10 @@ from typing import Final
|
|
|
5
5
|
|
|
6
6
|
from .annotations import AnnotationDict
|
|
7
7
|
from .encryption import StandardSecurityHandler
|
|
8
|
+
from .enums import PageLabelStyle
|
|
8
9
|
from .fpdf import FPDF
|
|
9
10
|
from .image_datastructures import RasterImageInfo
|
|
11
|
+
from .line_break import TotalPagesSubstitutionFragment
|
|
10
12
|
from .syntax import Name, PDFArray, PDFContentStream, PDFObject, PDFString
|
|
11
13
|
|
|
12
14
|
LOGGER: Logger
|
|
@@ -138,6 +140,18 @@ class PDFICCPObject(PDFContentStream):
|
|
|
138
140
|
alternate: Name
|
|
139
141
|
def __init__(self, contents: bytes, n, alternate: str) -> None: ...
|
|
140
142
|
|
|
143
|
+
class PDFPageLabel:
|
|
144
|
+
st: int
|
|
145
|
+
def __init__(self, label_style: PageLabelStyle, label_prefix: str, label_start: int) -> None: ...
|
|
146
|
+
@property
|
|
147
|
+
def s(self) -> Name: ...
|
|
148
|
+
@property
|
|
149
|
+
def p(self) -> PDFString: ...
|
|
150
|
+
def serialize(self) -> dict[str, str]: ...
|
|
151
|
+
def get_style(self) -> PageLabelStyle: ...
|
|
152
|
+
def get_prefix(self) -> str: ...
|
|
153
|
+
def get_start(self) -> int: ...
|
|
154
|
+
|
|
141
155
|
class PDFPage(PDFObject):
|
|
142
156
|
type: Name
|
|
143
157
|
contents: Incomplete
|
|
@@ -153,6 +167,11 @@ class PDFPage(PDFObject):
|
|
|
153
167
|
def index(self): ...
|
|
154
168
|
def dimensions(self) -> tuple[float | None, float | None]: ...
|
|
155
169
|
def set_dimensions(self, width_pt: float | None, height_pt: float | None) -> None: ...
|
|
170
|
+
def set_page_label(self, previous_page_label: PDFPageLabel, page_label: PDFPageLabel) -> None: ...
|
|
171
|
+
def get_page_label(self) -> PDFPageLabel: ...
|
|
172
|
+
def get_label(self) -> str: ...
|
|
173
|
+
def get_text_substitutions(self) -> list[TotalPagesSubstitutionFragment]: ...
|
|
174
|
+
def add_text_substitution(self, fragment: TotalPagesSubstitutionFragment) -> None: ...
|
|
156
175
|
|
|
157
176
|
class PDFPagesRoot(PDFObject):
|
|
158
177
|
type: Name
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from .enums import PageMode
|
|
1
|
+
from .enums import Duplex, PageBoundaries, PageMode, TextDirection
|
|
2
2
|
|
|
3
3
|
class ViewerPreferences:
|
|
4
4
|
hide_toolbar: bool
|
|
@@ -7,6 +7,8 @@ class ViewerPreferences:
|
|
|
7
7
|
fit_window: bool
|
|
8
8
|
center_window: bool
|
|
9
9
|
display_doc_title: bool
|
|
10
|
+
num_copies: int | None
|
|
11
|
+
print_page_range: list[int] | None
|
|
10
12
|
def __init__(
|
|
11
13
|
self,
|
|
12
14
|
hide_toolbar: bool = False,
|
|
@@ -15,10 +17,42 @@ class ViewerPreferences:
|
|
|
15
17
|
fit_window: bool = False,
|
|
16
18
|
center_window: bool = False,
|
|
17
19
|
display_doc_title: bool = False,
|
|
18
|
-
non_full_screen_page_mode: PageMode | str = ...,
|
|
20
|
+
non_full_screen_page_mode: PageMode | str | None = ...,
|
|
21
|
+
num_copies: int | None = None,
|
|
22
|
+
print_page_range: list[int] | None = None,
|
|
23
|
+
direction: TextDirection | str | None = None,
|
|
24
|
+
duplex: Duplex | str | None = None,
|
|
25
|
+
view_area: PageBoundaries | None = None,
|
|
26
|
+
view_clip: PageBoundaries | None = None,
|
|
27
|
+
print_area: PageBoundaries | None = None,
|
|
28
|
+
print_clip: PageBoundaries | None = None,
|
|
19
29
|
) -> None: ...
|
|
20
30
|
@property
|
|
21
|
-
def non_full_screen_page_mode(self): ...
|
|
31
|
+
def non_full_screen_page_mode(self) -> PageMode | None: ...
|
|
22
32
|
@non_full_screen_page_mode.setter
|
|
23
|
-
def non_full_screen_page_mode(self, page_mode) -> None: ...
|
|
33
|
+
def non_full_screen_page_mode(self, page_mode: PageMode | str | None) -> None: ...
|
|
34
|
+
@property
|
|
35
|
+
def direction(self) -> TextDirection | None: ...
|
|
36
|
+
@direction.setter
|
|
37
|
+
def direction(self, direction: TextDirection | str | None) -> None: ...
|
|
38
|
+
@property
|
|
39
|
+
def duplex(self) -> Duplex | None: ...
|
|
40
|
+
@duplex.setter
|
|
41
|
+
def duplex(self, duplex: Duplex | str | None) -> None: ...
|
|
42
|
+
@property
|
|
43
|
+
def view_area(self) -> PageBoundaries | None: ...
|
|
44
|
+
@view_area.setter
|
|
45
|
+
def view_area(self, view_area: PageBoundaries | str | None) -> None: ...
|
|
46
|
+
@property
|
|
47
|
+
def view_clip(self) -> PageBoundaries | None: ...
|
|
48
|
+
@view_clip.setter
|
|
49
|
+
def view_clip(self, view_area: PageBoundaries | str | None) -> None: ...
|
|
50
|
+
@property
|
|
51
|
+
def print_area(self) -> PageBoundaries | None: ...
|
|
52
|
+
@print_area.setter
|
|
53
|
+
def print_area(self, view_area: PageBoundaries | str | None) -> None: ...
|
|
54
|
+
@property
|
|
55
|
+
def print_clip(self) -> PageBoundaries | None: ...
|
|
56
|
+
@print_clip.setter
|
|
57
|
+
def print_clip(self, view_area: PageBoundaries | str | None) -> None: ...
|
|
24
58
|
def serialize(self) -> str: ...
|
|
@@ -7,7 +7,16 @@ from typing import Literal, overload
|
|
|
7
7
|
from PIL import Image
|
|
8
8
|
|
|
9
9
|
from .drawing import DeviceGray, DeviceRGB
|
|
10
|
-
from .enums import
|
|
10
|
+
from .enums import (
|
|
11
|
+
Align,
|
|
12
|
+
CellBordersLayout,
|
|
13
|
+
TableBordersLayout,
|
|
14
|
+
TableCellFillMode,
|
|
15
|
+
TableHeadingsDisplay,
|
|
16
|
+
TableSpan,
|
|
17
|
+
VAlign,
|
|
18
|
+
WrapMode,
|
|
19
|
+
)
|
|
11
20
|
from .fonts import FontFace
|
|
12
21
|
from .fpdf import FPDF
|
|
13
22
|
from .image_datastructures import _TextAlign
|
|
@@ -70,6 +79,7 @@ class Row:
|
|
|
70
79
|
rowspan: int = 1,
|
|
71
80
|
padding: tuple[float, ...] | None = None,
|
|
72
81
|
link: str | int | None = None,
|
|
82
|
+
border: CellBordersLayout | int = ...,
|
|
73
83
|
) -> str: ...
|
|
74
84
|
@overload
|
|
75
85
|
def cell(
|
|
@@ -84,6 +94,7 @@ class Row:
|
|
|
84
94
|
rowspan: int = 1,
|
|
85
95
|
padding: tuple[float, ...] | None = None,
|
|
86
96
|
link: str | int | None = None,
|
|
97
|
+
border: CellBordersLayout | int = ...,
|
|
87
98
|
) -> TableSpan: ...
|
|
88
99
|
|
|
89
100
|
@dataclass
|
|
@@ -98,6 +109,7 @@ class Cell:
|
|
|
98
109
|
rowspan: int
|
|
99
110
|
padding: int | tuple[float, ...] | None
|
|
100
111
|
link: str | int | None
|
|
112
|
+
border: CellBordersLayout | None
|
|
101
113
|
|
|
102
114
|
def write(self, text, align: Incomplete | None = None): ...
|
|
103
115
|
|
|
@@ -27,6 +27,7 @@ def convert_unit(
|
|
|
27
27
|
ROMAN_NUMERAL_MAP: Final[tuple[tuple[str, int], ...]]
|
|
28
28
|
|
|
29
29
|
def int2roman(n: int) -> str: ...
|
|
30
|
+
def int_to_letters(n: int) -> str: ...
|
|
30
31
|
def print_mem_usage(prefix: str) -> None: ...
|
|
31
32
|
def get_mem_usage(prefix: str) -> str: ...
|
|
32
33
|
def get_process_rss() -> str: ...
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
version = "15.0.*"
|
|
2
|
-
# This is the official web portal for GDB,
|
|
2
|
+
# This is the official web portal for the GDB Git repo,
|
|
3
3
|
# see https://sourceware.org/gdb/current/ for other ways of obtaining the source code.
|
|
4
4
|
upstream_repository = "https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=tree"
|
|
5
5
|
extra_description = """\
|