basedpyright 1.12.4 → 1.12.5
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/commit.txt +1 -1
- package/dist/typeshed-fallback/stdlib/_ast.pyi +3 -0
- package/dist/typeshed-fallback/stdlib/_json.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/argparse.pyi +211 -53
- package/dist/typeshed-fallback/stdlib/asyncio/__init__.pyi +5 -5
- package/dist/typeshed-fallback/stdlib/asyncio/events.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/base64.pyi +6 -0
- package/dist/typeshed-fallback/stdlib/builtins.pyi +22 -5
- package/dist/typeshed-fallback/stdlib/configparser.pyi +143 -52
- package/dist/typeshed-fallback/stdlib/dataclasses.pyi +3 -5
- package/dist/typeshed-fallback/stdlib/datetime.pyi +32 -0
- package/dist/typeshed-fallback/stdlib/enum.pyi +10 -2
- package/dist/typeshed-fallback/stdlib/glob.pyi +9 -1
- package/dist/typeshed-fallback/stdlib/importlib/metadata/__init__.pyi +4 -1
- package/dist/typeshed-fallback/stdlib/io.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/ipaddress.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/itertools.pyi +58 -0
- package/dist/typeshed-fallback/stdlib/json/encoder.pyi +2 -2
- package/dist/typeshed-fallback/stdlib/locale.pyi +6 -2
- package/dist/typeshed-fallback/stdlib/logging/__init__.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/logging/handlers.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/math.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/mimetypes.pyi +9 -0
- package/dist/typeshed-fallback/stdlib/mmap.pyi +2 -0
- package/dist/typeshed-fallback/stdlib/multiprocessing/managers.pyi +4 -0
- package/dist/typeshed-fallback/stdlib/multiprocessing/shared_memory.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/pathlib.pyi +44 -11
- package/dist/typeshed-fallback/stdlib/pdb.pyi +3 -1
- package/dist/typeshed-fallback/stdlib/platform.pyi +25 -0
- package/dist/typeshed-fallback/stdlib/pydoc.pyi +79 -30
- package/dist/typeshed-fallback/stdlib/shutil.pyi +9 -6
- package/dist/typeshed-fallback/stdlib/sqlite3/dbapi2.pyi +5 -1
- package/dist/typeshed-fallback/stdlib/tarfile.pyi +37 -16
- package/dist/typeshed-fallback/stdlib/time.pyi +4 -1
- package/dist/typeshed-fallback/stdlib/tokenize.pyi +1 -1
- package/dist/typeshed-fallback/stdlib/traceback.pyi +54 -18
- package/dist/typeshed-fallback/stdlib/types.pyi +4 -0
- package/dist/typeshed-fallback/stdlib/typing.pyi +14 -2
- package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +5 -3
- package/dist/typeshed-fallback/stubs/Flask-Cors/flask_cors/extension.pyi +1 -1
- package/dist/typeshed-fallback/stubs/PyMySQL/pymysql/__init__.pyi +5 -0
- package/dist/typeshed-fallback/stubs/PyMySQL/pymysql/connections.pyi +2 -0
- package/dist/typeshed-fallback/stubs/PyMySQL/pymysql/converters.pyi +4 -3
- package/dist/typeshed-fallback/stubs/docker/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/docker/docker/api/client.pyi +1 -1
- package/dist/typeshed-fallback/stubs/docker/docker/api/container.pyi +17 -2
- package/dist/typeshed-fallback/stubs/docker/docker/client.pyi +16 -2
- package/dist/typeshed-fallback/stubs/docker/docker/models/containers.pyi +30 -4
- package/dist/typeshed-fallback/stubs/docker/docker/models/networks.pyi +1 -1
- package/dist/typeshed-fallback/stubs/greenlet/greenlet/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/hvac/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/aws.pyi +7 -1
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/jwt.pyi +2 -1
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/__init__.pyi +2 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/identity.pyi +0 -1
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/ldap.pyi +41 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/transit.pyi +4 -2
- package/dist/typeshed-fallback/stubs/hvac/hvac/api/vault_api_base.pyi +4 -1
- package/dist/typeshed-fallback/stubs/hvac/hvac/constants/identity.pyi +2 -0
- package/dist/typeshed-fallback/stubs/hvac/hvac/exceptions.pyi +2 -0
- package/dist/typeshed-fallback/stubs/nanoid/METADATA.toml +2 -0
- package/dist/typeshed-fallback/stubs/nanoid/nanoid/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/nanoid/nanoid/algorithm.pyi +1 -0
- package/dist/typeshed-fallback/stubs/nanoid/nanoid/generate.pyi +3 -0
- package/dist/typeshed-fallback/stubs/nanoid/nanoid/method.pyi +6 -0
- package/dist/typeshed-fallback/stubs/nanoid/nanoid/non_secure_generate.pyi +3 -0
- package/dist/typeshed-fallback/stubs/nanoid/nanoid/resources.pyi +2 -0
- package/dist/typeshed-fallback/stubs/netaddr/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/netaddr/netaddr/ip/__init__.pyi +4 -2
- package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dag.pyi +12 -9
- package/dist/typeshed-fallback/stubs/openpyxl/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pep8-naming/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pep8-naming/pep8ext_naming.pyi +0 -1
- package/dist/typeshed-fallback/stubs/pynput/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/pynput/pynput/_util.pyi +1 -1
- package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/_base.pyi +64 -64
- package/dist/typeshed-fallback/stubs/pyserial/serial/serialutil.pyi +1 -1
- package/dist/typeshed-fallback/stubs/python-crontab/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/python-crontab/crontab.pyi +1 -0
- package/dist/typeshed-fallback/stubs/reportlab/METADATA.toml +6 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/__init__.pyi +11 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/__init__.pyi +5 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/code128.pyi +33 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/code39.pyi +32 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/code93.pyi +28 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/common.pyi +124 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/dmtx.pyi +68 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/eanbc.pyi +41 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/ecc200datamatrix.pyi +22 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/fourstate.pyi +0 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/lto.pyi +41 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/qr.pyi +52 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/qrencoder.pyi +202 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/usps.pyi +36 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/usps4s.pyi +85 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/widgets.pyi +65 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/areas.pyi +19 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/axes.pyi +205 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/barcharts.pyi +105 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/dotbox.pyi +24 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/doughnut.pyi +34 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/legends.pyi +101 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/linecharts.pyi +67 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/lineplots.pyi +119 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/markers.pyi +10 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/piecharts.pyi +182 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/slidebox.pyi +38 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/spider.pyi +60 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/textlabels.pyi +60 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/utils.pyi +49 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/utils3d.pyi +26 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/renderPDF.pyi +39 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/renderPM.pyi +127 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/renderPS.pyi +73 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/renderSVG.pyi +131 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/renderbase.pyi +40 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/bubble.pyi +5 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/clustered_bar.pyi +5 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/clustered_column.pyi +5 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/excelcolors.pyi +33 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/exploded_pie.pyi +8 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/filled_radar.pyi +5 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/line_chart.pyi +5 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/linechart_with_markers.pyi +5 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/radar.pyi +5 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/runall.pyi +3 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/scatter.pyi +5 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/scatter_lines.pyi +5 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/scatter_lines_markers.pyi +5 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/simple_pie.pyi +8 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/stacked_bar.pyi +5 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/stacked_column.pyi +5 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/shapes.pyi +371 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/svgpath.pyi +8 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/transform.pyi +12 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/utils.pyi +22 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/widgetbase.pyi +112 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/widgets/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/widgets/adjustableArrow.pyi +11 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/widgets/eventcal.pyi +29 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/widgets/flags.pyi +32 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/widgets/grids.pyi +76 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/widgets/markers.pyi +21 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/widgets/signsandsymbols.pyi +164 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/widgets/table.pyi +32 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/PyFontify.pyi +21 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/__init__.pyi +4 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/abag.pyi +11 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/arciv.pyi +7 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/attrmap.pyi +40 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/boxstuff.pyi +6 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/codecharts.pyi +80 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/colors.pyi +318 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/corp.pyi +79 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/enums.pyi +7 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/extformat.pyi +6 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/fontfinder.pyi +59 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/fonts.pyi +10 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/formatters.pyi +24 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/geomutils.pyi +5 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/logger.pyi +24 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/normalDate.pyi +82 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/pagesizes.pyi +51 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/pdfencrypt.pyi +133 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/pygments2xpre.pyi +1 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/randomtext.pyi +19 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/rl_accel.pyi +11 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/rl_safe_eval.pyi +253 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/rltempfile.pyi +2 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/rparsexml.pyi +32 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/sequencer.pyi +31 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/styles.pyi +181 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/testutils.pyi +67 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/textsplit.pyi +19 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/units.pyi +9 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/utils.pyi +190 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/validators.pyi +171 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/yaml.pyi +26 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/acroform.pyi +214 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/cidfonts.pyi +51 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/pdfdoc.pyi +627 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/pdfform.pyi +81 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/pdfmetrics.pyi +93 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/pdfpattern.pyi +21 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/pdfutils.pyi +16 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/rl_codecs.pyi +24 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/ttfonts.pyi +150 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfgen/__init__.pyi +3 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfgen/canvas.pyi +306 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfgen/pathobject.pyi +18 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfgen/pdfgeom.pyi +5 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfgen/pdfimages.pyi +38 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfgen/textobject.pyi +52 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/__init__.pyi +12 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/doctemplate.pyi +267 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/figures.pyi +118 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/flowables.pyi +451 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/frames.pyi +37 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/multicol.pyi +17 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/para.pyi +271 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/paragraph.pyi +38 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/paraparser.pyi +117 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/tableofcontents.pyi +108 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/tables.pyi +124 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/xpreformatted.pyi +30 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/rl_config.pyi +71 -0
- package/dist/typeshed-fallback/stubs/reportlab/reportlab/rl_settings.pyi +72 -0
- package/dist/typeshed-fallback/stubs/requests/requests/__version__.pyi +12 -10
- package/dist/typeshed-fallback/stubs/requests/requests/adapters.pyi +38 -7
- package/dist/typeshed-fallback/stubs/requests/requests/models.pyi +21 -21
- package/dist/typeshed-fallback/stubs/requests/requests/utils.pyi +8 -6
- package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/__init__.pyi +25 -19
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/build.pyi +1 -2
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/editable_wheel.pyi +3 -0
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py311.pyi +3 -2
- package/dist/typeshed-fallback/stubs/shapely/METADATA.toml +4 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/__init__.pyi +34 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/_enum.pyi +5 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/_geometry.pyi +184 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/_ragged_array.pyi +12 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/_typing.pyi +58 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/_version.pyi +6 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/affinity.pyi +23 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/algorithms/__init__.pyi +0 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/algorithms/cga.pyi +6 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/algorithms/polylabel.pyi +19 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/constructive.pyi +430 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/coordinates.pyi +43 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/coords.pyi +18 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/creation.pyi +242 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/decorators.pyi +11 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/errors.pyi +17 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/__init__.pyi +25 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/base.pyi +285 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/collection.pyi +18 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/geo.pyi +9 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/linestring.pyi +45 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/multilinestring.pyi +15 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/multipoint.pyi +20 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/multipolygon.pyi +22 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/point.pyi +39 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/polygon.pyi +45 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/geos.pyi +3 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/io.pyi +140 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/lib.pyi +167 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/linear.pyi +69 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/measurement.pyi +68 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/ops.pyi +106 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/plotting.pyi +76 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/predicates.pyi +214 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/prepared.pyi +20 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/set_operations.pyi +86 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/speedups.pyi +12 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/strtree.pyi +82 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/testing.pyi +14 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/validation.pyi +7 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/vectorized/__init__.pyi +37 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/wkb.pyi +16 -0
- package/dist/typeshed-fallback/stubs/shapely/shapely/wkt.pyi +8 -0
- package/package.json +1 -1
- package/dist/typeshed-fallback/stubs/setuptools/setuptools/dep_util.pyi +0 -1
- package/dist/typeshed-fallback/stubs/stripe/METADATA.toml +0 -7
- package/dist/typeshed-fallback/stubs/stripe/stripe/__init__.pyi +0 -25
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_requestor.pyi +0 -38
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/__init__.pyi +0 -82
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/__init__.pyi +0 -12
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/api_resource.pyi +0 -13
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/createable_api_resource.pyi +0 -16
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/custom_method.pyi +0 -3
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/deletable_api_resource.pyi +0 -7
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/listable_api_resource.pyi +0 -19
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/nested_resource_class_methods.pyi +0 -7
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/searchable_api_resource.pyi +0 -11
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/singleton_api_resource.pyi +0 -8
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/updateable_api_resource.pyi +0 -8
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/verify_mixin.pyi +0 -2
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/account.pyi +0 -75
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/account_link.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/alipay_account.pyi +0 -23
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/apple_pay_domain.pyi +0 -10
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/application_fee.pyi +0 -8
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/application_fee_refund.pyi +0 -14
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/balance.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/balance_transaction.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/bank_account.pyi +0 -26
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/billing_portal/__init__.pyi +0 -2
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/billing_portal/configuration.pyi +0 -8
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/billing_portal/session.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/bitcoin_receiver.pyi +0 -8
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/bitcoin_transaction.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/capability.pyi +0 -13
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/card.pyi +0 -26
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/charge.pyi +0 -17
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/checkout/__init__.pyi +0 -1
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/checkout/session.pyi +0 -16
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/country_spec.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/coupon.pyi +0 -9
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/credit_note.pyi +0 -21
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/credit_note_line_item.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/customer.pyi +0 -58
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/customer_balance_transaction.pyi +0 -11
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/dispute.pyi +0 -9
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/ephemeral_key.pyi +0 -16
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/error_object.pyi +0 -25
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/event.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/exchange_rate.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/file.pyi +0 -21
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/file_link.pyi +0 -8
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/identity/__init__.pyi +0 -2
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/identity/verification_report.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/identity/verification_session.pyi +0 -11
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/invoice.pyi +0 -28
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/invoice_item.pyi +0 -9
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/invoice_line_item.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/issuer_fraud_record.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/issuing/__init__.pyi +0 -6
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/issuing/authorization.pyi +0 -10
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/issuing/card.pyi +0 -10
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/issuing/card_details.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/issuing/cardholder.pyi +0 -8
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/issuing/dispute.pyi +0 -10
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/issuing/transaction.pyi +0 -7
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/line_item.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/list_object.pyi +0 -57
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/login_link.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/mandate.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/order.pyi +0 -13
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/payment_intent.pyi +0 -22
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/payment_link.pyi +0 -24
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/payment_method.pyi +0 -13
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/payout.pyi +0 -11
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/person.pyi +0 -13
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/plan.pyi +0 -9
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/price.pyi +0 -9
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/product.pyi +0 -10
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/promotion_code.pyi +0 -8
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/quote.pyi +0 -24
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/radar/__init__.pyi +0 -3
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/radar/early_fraud_warning.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/radar/value_list.pyi +0 -9
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/radar/value_list_item.pyi +0 -8
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/recipient.pyi +0 -9
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/recipient_transfer.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/refund.pyi +0 -8
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/reporting/__init__.pyi +0 -2
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/reporting/report_run.pyi +0 -7
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/reporting/report_type.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/reversal.pyi +0 -13
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/review.pyi +0 -5
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/search_result_object.pyi +0 -32
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/setup_attempt.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/setup_intent.pyi +0 -11
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/shipping_rate.pyi +0 -9
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/sigma/__init__.pyi +0 -1
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/sigma/scheduled_query_run.pyi +0 -6
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/sku.pyi +0 -9
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/source.pyi +0 -13
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/source_transaction.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/subscription.pyi +0 -15
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/subscription_item.pyi +0 -27
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/subscription_schedule.pyi +0 -11
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/tax_code.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/tax_id.pyi +0 -11
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/tax_rate.pyi +0 -8
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/terminal/__init__.pyi +0 -3
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/terminal/connection_token.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/terminal/location.pyi +0 -9
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/terminal/reader.pyi +0 -9
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/test_helpers/__init__.pyi +0 -1
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/test_helpers/test_clock.pyi +0 -10
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/three_d_secure.pyi +0 -6
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/token.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/topup.pyi +0 -10
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/transfer.pyi +0 -11
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/usage_record.pyi +0 -16
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/usage_record_summary.pyi +0 -4
- package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/webhook_endpoint.pyi +0 -9
- package/dist/typeshed-fallback/stubs/stripe/stripe/error.pyi +0 -76
- package/dist/typeshed-fallback/stubs/stripe/stripe/http_client.pyi +0 -52
- package/dist/typeshed-fallback/stubs/stripe/stripe/multipart_data_generator.pyi +0 -11
- package/dist/typeshed-fallback/stubs/stripe/stripe/oauth.pyi +0 -11
- package/dist/typeshed-fallback/stubs/stripe/stripe/oauth_error.pyi +0 -22
- package/dist/typeshed-fallback/stubs/stripe/stripe/object_classes.pyi +0 -5
- package/dist/typeshed-fallback/stubs/stripe/stripe/request_metrics.pyi +0 -7
- package/dist/typeshed-fallback/stubs/stripe/stripe/stripe_object.pyi +0 -62
- package/dist/typeshed-fallback/stubs/stripe/stripe/stripe_response.pyi +0 -19
- package/dist/typeshed-fallback/stubs/stripe/stripe/util.pyi +0 -42
- package/dist/typeshed-fallback/stubs/stripe/stripe/version.pyi +0 -1
- package/dist/typeshed-fallback/stubs/stripe/stripe/webhook.pyi +0 -17
|
@@ -0,0 +1,451 @@
|
|
|
1
|
+
from _typeshed import Incomplete, SupportsRead
|
|
2
|
+
from collections.abc import Callable, Iterable, Sequence
|
|
3
|
+
from typing import Any, Literal, NoReturn, Protocol
|
|
4
|
+
from typing_extensions import Self, TypeAlias
|
|
5
|
+
|
|
6
|
+
from reportlab.lib.colors import Color
|
|
7
|
+
from reportlab.lib.styles import ListStyle, ParagraphStyle, PropertySet
|
|
8
|
+
from reportlab.pdfgen.canvas import Canvas
|
|
9
|
+
from reportlab.pdfgen.textobject import _Color
|
|
10
|
+
from reportlab.platypus.paragraph import Paragraph
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
"AnchorFlowable",
|
|
14
|
+
"BalancedColumns",
|
|
15
|
+
"BulletDrawer",
|
|
16
|
+
"CallerMacro",
|
|
17
|
+
"CondPageBreak",
|
|
18
|
+
"DDIndenter",
|
|
19
|
+
"DocAssert",
|
|
20
|
+
"DocAssign",
|
|
21
|
+
"DocExec",
|
|
22
|
+
"DocIf",
|
|
23
|
+
"DocPara",
|
|
24
|
+
"DocWhile",
|
|
25
|
+
"FailOnDraw",
|
|
26
|
+
"FailOnWrap",
|
|
27
|
+
"Flowable",
|
|
28
|
+
"FrameBG",
|
|
29
|
+
"FrameSplitter",
|
|
30
|
+
"HRFlowable",
|
|
31
|
+
"Image",
|
|
32
|
+
"ImageAndFlowables",
|
|
33
|
+
"KeepInFrame",
|
|
34
|
+
"KeepTogether",
|
|
35
|
+
"LIIndenter",
|
|
36
|
+
"ListFlowable",
|
|
37
|
+
"ListItem",
|
|
38
|
+
"Macro",
|
|
39
|
+
"NullDraw",
|
|
40
|
+
"PTOContainer",
|
|
41
|
+
"PageBreak",
|
|
42
|
+
"PageBreakIfNotEmpty",
|
|
43
|
+
"ParagraphAndImage",
|
|
44
|
+
"Preformatted",
|
|
45
|
+
"SetPageTopFlowables",
|
|
46
|
+
"SetTopFlowables",
|
|
47
|
+
"SlowPageBreak",
|
|
48
|
+
"Spacer",
|
|
49
|
+
"TopPadder",
|
|
50
|
+
"TraceInfo",
|
|
51
|
+
"UseUpSpace",
|
|
52
|
+
"XBox",
|
|
53
|
+
"splitLine",
|
|
54
|
+
"splitLines",
|
|
55
|
+
]
|
|
56
|
+
|
|
57
|
+
_HAlignment: TypeAlias = Literal["LEFT", "CENTER", "CENTRE", "RIGHT", 0, 1, 2]
|
|
58
|
+
_VAlignment: TypeAlias = Literal["BOTTOM", "MIDDLE", "TOP"]
|
|
59
|
+
# FIXME: Consider using Sequence[Flowable] for covariance on list, even though
|
|
60
|
+
# that will give false negatives for non list or tuple sequences, it also
|
|
61
|
+
# would reduce type safety, since flowables don't copy the list
|
|
62
|
+
_FlowableSublist: TypeAlias = Flowable | list[Flowable] | tuple[Flowable, ...]
|
|
63
|
+
# NOTE: Technically can only be list or tuple, but would be annoying for variance
|
|
64
|
+
_NestedFlowable: TypeAlias = Flowable | Sequence[_NestedFlowable]
|
|
65
|
+
|
|
66
|
+
class _StyledFlowableFactory(Protocol):
|
|
67
|
+
# NOTE: We leave style at Any so people can specify a specifc property set
|
|
68
|
+
def __call__(self, value: str, /, *, style: Any) -> Flowable: ...
|
|
69
|
+
|
|
70
|
+
class TraceInfo:
|
|
71
|
+
srcFile: str
|
|
72
|
+
startLineNo: int
|
|
73
|
+
startLinePos: int
|
|
74
|
+
endLineNo: int
|
|
75
|
+
endLinePos: int
|
|
76
|
+
def __init__(self) -> None: ...
|
|
77
|
+
|
|
78
|
+
class Flowable:
|
|
79
|
+
width: float
|
|
80
|
+
height: float
|
|
81
|
+
wrapped: int
|
|
82
|
+
hAlign: _HAlignment
|
|
83
|
+
vAlign: _VAlignment
|
|
84
|
+
encoding: str | None
|
|
85
|
+
# NOTE: this only exists during drawing, splitting and wrapping
|
|
86
|
+
canv: Canvas
|
|
87
|
+
# NOTE: The following attributes will not exist on all flowables, but
|
|
88
|
+
# they need to be settable on individual instances
|
|
89
|
+
keepWithNext: Incomplete
|
|
90
|
+
spaceAfter: float
|
|
91
|
+
spaceBefore: float
|
|
92
|
+
def __init__(self) -> None: ...
|
|
93
|
+
# NOTE: We pretend the optional internal _sW argument does not exist
|
|
94
|
+
# since not all flowables support it and we'd have to deal with
|
|
95
|
+
# a bunch of LSP errors. Conversely we will get type errors in
|
|
96
|
+
# subclasses that rely on the argument existing when called through
|
|
97
|
+
# super() inside their own implementation, so we can't really
|
|
98
|
+
# make everyone happy here, sigh...
|
|
99
|
+
def drawOn(self, canvas: Canvas, x: float, y: float) -> None: ...
|
|
100
|
+
def wrapOn(self, canv: Canvas, aW: float, aH: float) -> tuple[float, float]: ...
|
|
101
|
+
def wrap(self, aW: float, aH: float, /) -> tuple[float, float]: ...
|
|
102
|
+
def minWidth(self) -> float: ...
|
|
103
|
+
def splitOn(self, canv: Canvas, aW: float, aH: float) -> list[Flowable]: ...
|
|
104
|
+
def split(self, aW: float, aH: float, /) -> list[Flowable]: ...
|
|
105
|
+
def getKeepWithNext(self): ...
|
|
106
|
+
def getSpaceAfter(self) -> float: ...
|
|
107
|
+
def getSpaceBefore(self) -> float: ...
|
|
108
|
+
def isIndexing(self) -> int: ...
|
|
109
|
+
def identity(self, maxLen: int | None = None) -> str: ...
|
|
110
|
+
|
|
111
|
+
class XBox(Flowable):
|
|
112
|
+
text: str
|
|
113
|
+
def __init__(self, width: float, height: float, text: str = "A Box") -> None: ...
|
|
114
|
+
def draw(self) -> None: ...
|
|
115
|
+
|
|
116
|
+
def splitLines(lines, maximum_length, split_characters, new_line_characters): ...
|
|
117
|
+
def splitLine(line_to_split, lines_splitted, maximum_length, split_characters, new_line_characters) -> None: ...
|
|
118
|
+
|
|
119
|
+
class Preformatted(Flowable):
|
|
120
|
+
style: ParagraphStyle
|
|
121
|
+
bulletText: str | None
|
|
122
|
+
lines: list[str]
|
|
123
|
+
def __init__(
|
|
124
|
+
self,
|
|
125
|
+
text: str,
|
|
126
|
+
# NOTE: Technically has to be a ParagraphStyle, but that would
|
|
127
|
+
# conflict with stylesheet["Style"] usage
|
|
128
|
+
style: PropertySet,
|
|
129
|
+
bulletText: str | None = None,
|
|
130
|
+
dedent: int = 0,
|
|
131
|
+
maxLineLength: int | None = None,
|
|
132
|
+
splitChars: str | None = None,
|
|
133
|
+
newLineChars: str = "",
|
|
134
|
+
) -> None: ...
|
|
135
|
+
def draw(self) -> None: ...
|
|
136
|
+
|
|
137
|
+
class Image(Flowable):
|
|
138
|
+
filename: str
|
|
139
|
+
# these are lazy, but __getattr__ ensures the image gets loaded
|
|
140
|
+
# as soon as these attributes are accessed
|
|
141
|
+
imageWidth: int
|
|
142
|
+
imageHeight: int
|
|
143
|
+
drawWidth: float
|
|
144
|
+
drawHeight: float
|
|
145
|
+
def __init__(
|
|
146
|
+
self,
|
|
147
|
+
# TODO: I think this might also accept a PIL.Image and other
|
|
148
|
+
# kinds of path represenations, should be kept in sync
|
|
149
|
+
# with reportlab.lib.utils.ImageReader, except for the
|
|
150
|
+
# potential PIL.Image shortcut
|
|
151
|
+
filename: str | SupportsRead[bytes] | Incomplete,
|
|
152
|
+
width: float | None = None,
|
|
153
|
+
height: float | None = None,
|
|
154
|
+
kind: str = "direct",
|
|
155
|
+
mask: str = "auto",
|
|
156
|
+
lazy: int = 1,
|
|
157
|
+
hAlign: _HAlignment = "CENTER",
|
|
158
|
+
useDPI: bool = False,
|
|
159
|
+
) -> None: ...
|
|
160
|
+
def draw(self) -> None: ...
|
|
161
|
+
|
|
162
|
+
class NullDraw(Flowable):
|
|
163
|
+
def draw(self) -> None: ...
|
|
164
|
+
|
|
165
|
+
class Spacer(NullDraw):
|
|
166
|
+
# NOTE: This may actually be a bug, it seems likely that Spacer is meant
|
|
167
|
+
# to set spaceBefore in the isGlue case.
|
|
168
|
+
spacebefore: float
|
|
169
|
+
def __init__(self, width: float, height: float, isGlue: bool = False) -> None: ...
|
|
170
|
+
|
|
171
|
+
class UseUpSpace(NullDraw): ...
|
|
172
|
+
|
|
173
|
+
class PageBreak(UseUpSpace):
|
|
174
|
+
locChanger: int
|
|
175
|
+
nextTemplate: str | None
|
|
176
|
+
def __init__(self, nextTemplate: str | None = None) -> None: ...
|
|
177
|
+
|
|
178
|
+
class SlowPageBreak(PageBreak): ...
|
|
179
|
+
class PageBreakIfNotEmpty(PageBreak): ...
|
|
180
|
+
|
|
181
|
+
class CondPageBreak(Spacer):
|
|
182
|
+
locChanger: int
|
|
183
|
+
def __init__(self, height: float) -> None: ...
|
|
184
|
+
|
|
185
|
+
class _ContainerSpace:
|
|
186
|
+
def getSpaceBefore(self) -> float: ...
|
|
187
|
+
def getSpaceAfter(self) -> float: ...
|
|
188
|
+
|
|
189
|
+
class KeepTogether(_ContainerSpace, Flowable):
|
|
190
|
+
splitAtTop: bool
|
|
191
|
+
# TODO: Consider using Sequence[Flowable] for covariance, even if reportlab
|
|
192
|
+
# only supports list/tuple
|
|
193
|
+
def __init__(self, flowables: _FlowableSublist | None, maxHeight: Incomplete | None = None) -> None: ...
|
|
194
|
+
|
|
195
|
+
class KeepTogetherSplitAtTop(KeepTogether):
|
|
196
|
+
splitAtTop: bool
|
|
197
|
+
|
|
198
|
+
class Macro(Flowable):
|
|
199
|
+
command: str
|
|
200
|
+
def __init__(self, command: str) -> None: ...
|
|
201
|
+
def draw(self) -> None: ...
|
|
202
|
+
|
|
203
|
+
class CallerMacro(Flowable):
|
|
204
|
+
def __init__(
|
|
205
|
+
self,
|
|
206
|
+
drawCallable: Callable[[CallerMacro, float, float], object] | None = None,
|
|
207
|
+
wrapCallable: Callable[[CallerMacro, float, float], object] | None = None,
|
|
208
|
+
) -> None: ...
|
|
209
|
+
def draw(self) -> None: ...
|
|
210
|
+
|
|
211
|
+
class ParagraphAndImage(Flowable):
|
|
212
|
+
P: Paragraph
|
|
213
|
+
I: Image
|
|
214
|
+
xpad: float
|
|
215
|
+
ypad: float
|
|
216
|
+
def __init__(self, P: Paragraph, I: Image, xpad: float = 3, ypad: float = 3, side: str = "right") -> None: ...
|
|
217
|
+
def draw(self) -> None: ...
|
|
218
|
+
|
|
219
|
+
class FailOnWrap(NullDraw):
|
|
220
|
+
def wrap(self, aW: float, aH: float, /) -> NoReturn: ...
|
|
221
|
+
|
|
222
|
+
class FailOnDraw(Flowable):
|
|
223
|
+
def draw(self) -> NoReturn: ...
|
|
224
|
+
|
|
225
|
+
class HRFlowable(Flowable):
|
|
226
|
+
width: float | str # type: ignore[assignment]
|
|
227
|
+
lineWidth: float
|
|
228
|
+
lineCap: str
|
|
229
|
+
color: _Color
|
|
230
|
+
dash: Incomplete | None
|
|
231
|
+
def __init__(
|
|
232
|
+
self,
|
|
233
|
+
width: float | str = "80%",
|
|
234
|
+
thickness: float = 1,
|
|
235
|
+
lineCap: str = "round",
|
|
236
|
+
color: _Color = ...,
|
|
237
|
+
spaceBefore: float = 1,
|
|
238
|
+
spaceAfter: float = 1,
|
|
239
|
+
hAlign: _HAlignment = "CENTER",
|
|
240
|
+
vAlign: _VAlignment = "BOTTOM",
|
|
241
|
+
dash: Incomplete | None = None,
|
|
242
|
+
) -> None: ...
|
|
243
|
+
def draw(self) -> None: ...
|
|
244
|
+
|
|
245
|
+
class _Container(_ContainerSpace):
|
|
246
|
+
def drawOn(self, canv: Canvas, x: float, y: float) -> None: ...
|
|
247
|
+
def copyContent(self, content: _FlowableSublist | None = None) -> None: ...
|
|
248
|
+
|
|
249
|
+
class PTOContainer(_Container, Flowable):
|
|
250
|
+
def __init__(
|
|
251
|
+
self, content: _FlowableSublist | None, trailer: _FlowableSublist | None = None, header: _FlowableSublist | None = None
|
|
252
|
+
) -> None: ...
|
|
253
|
+
|
|
254
|
+
class KeepInFrame(_Container, Flowable):
|
|
255
|
+
name: str
|
|
256
|
+
maxWidth: float
|
|
257
|
+
maxHeight: float
|
|
258
|
+
mode: Literal["error", "continue", "shrink", "truncate"]
|
|
259
|
+
mergespace: Incomplete | None
|
|
260
|
+
fakeWidth: bool | None
|
|
261
|
+
def __init__(
|
|
262
|
+
self,
|
|
263
|
+
maxWidth: float,
|
|
264
|
+
maxHeight: float,
|
|
265
|
+
content: list[Flowable] = [],
|
|
266
|
+
mergeSpace: Incomplete | None = 1,
|
|
267
|
+
mode: Literal["error", "continue", "shrink", "truncate"] = "shrink",
|
|
268
|
+
name: str = "",
|
|
269
|
+
hAlign: str = "LEFT",
|
|
270
|
+
vAlign: str = "BOTTOM",
|
|
271
|
+
fakeWidth: bool | None = None,
|
|
272
|
+
) -> None: ...
|
|
273
|
+
|
|
274
|
+
class _FindSplitterMixin: ...
|
|
275
|
+
|
|
276
|
+
class ImageAndFlowables(_Container, _FindSplitterMixin, Flowable):
|
|
277
|
+
imageHref: str | None
|
|
278
|
+
def __init__(
|
|
279
|
+
self,
|
|
280
|
+
I: Image,
|
|
281
|
+
F: _FlowableSublist | None,
|
|
282
|
+
imageLeftPadding: float = 0,
|
|
283
|
+
imageRightPadding: float = 3,
|
|
284
|
+
imageTopPadding: float = 0,
|
|
285
|
+
imageBottomPadding: float = 3,
|
|
286
|
+
imageSide: str = "right",
|
|
287
|
+
imageHref: str | None = None,
|
|
288
|
+
) -> None: ...
|
|
289
|
+
def deepcopy(self) -> Self: ...
|
|
290
|
+
|
|
291
|
+
class BalancedColumns(_FindSplitterMixin, NullDraw):
|
|
292
|
+
name: str
|
|
293
|
+
showBoundary: Incomplete | None
|
|
294
|
+
endSlack: float
|
|
295
|
+
def __init__(
|
|
296
|
+
self,
|
|
297
|
+
F: _FlowableSublist | None,
|
|
298
|
+
nCols: int = 2,
|
|
299
|
+
needed: float = 72,
|
|
300
|
+
spaceBefore: float = 0,
|
|
301
|
+
spaceAfter: float = 0,
|
|
302
|
+
showBoundary: Incomplete | None = None,
|
|
303
|
+
leftPadding: float | None = None,
|
|
304
|
+
innerPadding: float | None = None,
|
|
305
|
+
rightPadding: float | None = None,
|
|
306
|
+
topPadding: float | None = None,
|
|
307
|
+
bottomPadding: float | None = None,
|
|
308
|
+
name: str = "",
|
|
309
|
+
endSlack: float = 0.1,
|
|
310
|
+
boxStrokeColor: Color | None = None,
|
|
311
|
+
boxStrokeWidth: float = 0,
|
|
312
|
+
boxFillColor: Color | None = None,
|
|
313
|
+
boxMargin: tuple[int, int, int, int] | tuple[int, int, int] | tuple[int, int] | tuple[int] | None = None,
|
|
314
|
+
vLinesStrokeColor: Color | None = None,
|
|
315
|
+
vLinesStrokeWidth: float | None = None,
|
|
316
|
+
) -> None: ...
|
|
317
|
+
|
|
318
|
+
class AnchorFlowable(Spacer):
|
|
319
|
+
def __init__(self, name: str) -> None: ...
|
|
320
|
+
|
|
321
|
+
class FrameBG(AnchorFlowable):
|
|
322
|
+
start: bool
|
|
323
|
+
left: float
|
|
324
|
+
right: float
|
|
325
|
+
color: Color
|
|
326
|
+
strokeWidth: float
|
|
327
|
+
strokeColor: Color
|
|
328
|
+
strokeDashArray: list[float] | tuple[float, ...] | None
|
|
329
|
+
def __init__(
|
|
330
|
+
self,
|
|
331
|
+
color: Color | None = None,
|
|
332
|
+
left: float | str = 0,
|
|
333
|
+
right: float | str = 0,
|
|
334
|
+
start: bool = True,
|
|
335
|
+
strokeWidth: float | None = None,
|
|
336
|
+
strokeColor: Color | None = None,
|
|
337
|
+
strokeDashArray: list[float] | tuple[float, ...] | None = None,
|
|
338
|
+
) -> None: ...
|
|
339
|
+
|
|
340
|
+
class FrameSplitter(NullDraw):
|
|
341
|
+
nextTemplate: str
|
|
342
|
+
nextFrames: list[str]
|
|
343
|
+
gap: float
|
|
344
|
+
required: float
|
|
345
|
+
adjustHeight: bool
|
|
346
|
+
def __init__(
|
|
347
|
+
self,
|
|
348
|
+
nextTemplate: str,
|
|
349
|
+
nextFrames: list[str] | None = [],
|
|
350
|
+
gap: float = 10,
|
|
351
|
+
required: float = 72,
|
|
352
|
+
adjustHeight: bool = True,
|
|
353
|
+
) -> None: ...
|
|
354
|
+
|
|
355
|
+
class BulletDrawer:
|
|
356
|
+
value: str
|
|
357
|
+
def __init__(
|
|
358
|
+
self,
|
|
359
|
+
value: str = "0",
|
|
360
|
+
bulletAlign: str = "left",
|
|
361
|
+
bulletType: str = "1",
|
|
362
|
+
bulletColor: str = "black",
|
|
363
|
+
bulletFontName: str = "Helvetica",
|
|
364
|
+
bulletFontSize: int = 12,
|
|
365
|
+
bulletOffsetY: int = 0,
|
|
366
|
+
bulletDedent: int = 0,
|
|
367
|
+
bulletDir: str = "ltr",
|
|
368
|
+
bulletFormat: Incomplete | None = None,
|
|
369
|
+
) -> None: ...
|
|
370
|
+
def drawOn(self, indenter: DDIndenter, canv: Canvas, x: float, y: float) -> None: ...
|
|
371
|
+
|
|
372
|
+
class DDIndenter(Flowable):
|
|
373
|
+
def __init__(self, flowable: Flowable, leftIndent: float = 0, rightIndent: float = 0) -> None: ...
|
|
374
|
+
|
|
375
|
+
class LIIndenter(DDIndenter):
|
|
376
|
+
def __init__(
|
|
377
|
+
self,
|
|
378
|
+
flowable: Flowable,
|
|
379
|
+
leftIndent: float = 0,
|
|
380
|
+
rightIndent: float = 0,
|
|
381
|
+
bullet: Incomplete | None = None,
|
|
382
|
+
spaceBefore: float | None = None,
|
|
383
|
+
spaceAfter: float | None = None,
|
|
384
|
+
) -> None: ...
|
|
385
|
+
|
|
386
|
+
class ListItem:
|
|
387
|
+
# NOTE: style has to be a ListStyle, but this will be annoying with sheet["ul"]
|
|
388
|
+
# TODO: Use Unpack for kwds with the ListStyle properties + value/spaceBefore/spaceAfter
|
|
389
|
+
def __init__(self, flowables: _FlowableSublist, style: PropertySet | None = None, **kwds) -> None: ...
|
|
390
|
+
|
|
391
|
+
class ListFlowable(_Container, Flowable):
|
|
392
|
+
style: ListStyle
|
|
393
|
+
# NOTE: style has to be a ListStyle, but this will be annoying with sheet["ul"]
|
|
394
|
+
# TODO: Use Unpack for kwds with the ListStyle properties + spaceBefore/spaceAfter
|
|
395
|
+
def __init__(
|
|
396
|
+
self, flowables: Iterable[_NestedFlowable], start: Incomplete | None = None, style: PropertySet | None = None, **kwds
|
|
397
|
+
) -> None: ...
|
|
398
|
+
|
|
399
|
+
class TopPadder(Flowable):
|
|
400
|
+
# NOTE: TopPadder is mostly a transparent wrapper, we may consider trying
|
|
401
|
+
# something using __new__ in the future
|
|
402
|
+
def __init__(self, f: Flowable) -> None: ...
|
|
403
|
+
def __setattr__(self, a: str, v: Any) -> None: ...
|
|
404
|
+
def __getattr__(self, a: str) -> Any: ...
|
|
405
|
+
def __delattr__(self, a: str) -> None: ...
|
|
406
|
+
|
|
407
|
+
class DocAssign(NullDraw):
|
|
408
|
+
args: tuple[Any, ...]
|
|
409
|
+
def __init__(self, var: str, expr: object, life: str = "forever") -> None: ...
|
|
410
|
+
def funcWrap(self, aW: float, aH: float) -> None: ...
|
|
411
|
+
def func(self) -> None: ...
|
|
412
|
+
|
|
413
|
+
class DocExec(DocAssign):
|
|
414
|
+
def __init__(self, stmt: str, lifetime: str = "forever") -> None: ...
|
|
415
|
+
|
|
416
|
+
class DocPara(DocAssign):
|
|
417
|
+
expr: object
|
|
418
|
+
format: str | None
|
|
419
|
+
style: PropertySet | None
|
|
420
|
+
klass: Incomplete
|
|
421
|
+
escape: bool
|
|
422
|
+
def __init__(
|
|
423
|
+
self,
|
|
424
|
+
expr: object,
|
|
425
|
+
format: str | None = None,
|
|
426
|
+
style: PropertySet | None = None,
|
|
427
|
+
klass: _StyledFlowableFactory | None = None,
|
|
428
|
+
escape: bool = True,
|
|
429
|
+
) -> None: ...
|
|
430
|
+
def funcWrap(self, aW: float, aH: float) -> Any: ...
|
|
431
|
+
def func(self) -> Any: ...
|
|
432
|
+
def add_content(self, *args: Flowable) -> None: ...
|
|
433
|
+
def get_value(self, aW: float, aH: float) -> str: ...
|
|
434
|
+
|
|
435
|
+
class DocAssert(DocPara):
|
|
436
|
+
def __init__(self, cond: object, format: str | None = None) -> None: ...
|
|
437
|
+
|
|
438
|
+
class DocIf(DocPara):
|
|
439
|
+
blocks: tuple[_FlowableSublist, _FlowableSublist]
|
|
440
|
+
def __init__(self, cond: object, thenBlock: _FlowableSublist, elseBlock: _FlowableSublist = []) -> None: ...
|
|
441
|
+
def checkBlock(self, block: _FlowableSublist) -> list[Flowable] | tuple[Flowable, ...]: ...
|
|
442
|
+
|
|
443
|
+
class DocWhile(DocIf):
|
|
444
|
+
block: _FlowableSublist
|
|
445
|
+
def __init__(self, cond: object, whileBlock: _FlowableSublist) -> None: ...
|
|
446
|
+
|
|
447
|
+
class SetTopFlowables(NullDraw):
|
|
448
|
+
def __init__(self, F: list[Flowable], show: bool = False) -> None: ...
|
|
449
|
+
|
|
450
|
+
class SetPageTopFlowables(NullDraw):
|
|
451
|
+
def __init__(self, F: list[Flowable], show: bool = False) -> None: ...
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from typing import Literal
|
|
3
|
+
|
|
4
|
+
from reportlab.pdfgen.canvas import Canvas
|
|
5
|
+
from reportlab.platypus.flowables import Flowable
|
|
6
|
+
|
|
7
|
+
class Frame:
|
|
8
|
+
id: str | None
|
|
9
|
+
x1: float
|
|
10
|
+
y1: float
|
|
11
|
+
width: float
|
|
12
|
+
height: float
|
|
13
|
+
leftPadding: float
|
|
14
|
+
bottomPadding: float
|
|
15
|
+
rightPadding: float
|
|
16
|
+
topPadding: float
|
|
17
|
+
showBoundary: int
|
|
18
|
+
def __init__(
|
|
19
|
+
self,
|
|
20
|
+
x1: float,
|
|
21
|
+
y1: float,
|
|
22
|
+
width: float,
|
|
23
|
+
height: float,
|
|
24
|
+
leftPadding: float = 6,
|
|
25
|
+
bottomPadding: float = 6,
|
|
26
|
+
rightPadding: float = 6,
|
|
27
|
+
topPadding: float = 6,
|
|
28
|
+
id: str | None = None,
|
|
29
|
+
showBoundary: int = 0,
|
|
30
|
+
overlapAttachedSpace: Incomplete | None = None,
|
|
31
|
+
_debug: Incomplete | None = None,
|
|
32
|
+
) -> None: ...
|
|
33
|
+
def add(self, flowable: Flowable, canv: Canvas, trySplit: int = 0) -> Literal[0, 1]: ...
|
|
34
|
+
def split(self, flowable: Flowable, canv: Canvas) -> list[Flowable]: ...
|
|
35
|
+
def drawBoundary(self, canv: Canvas) -> None: ...
|
|
36
|
+
def addFromList(self, drawlist: list[Flowable], canv: Canvas) -> None: ...
|
|
37
|
+
def add_generated_content(self, *C: Flowable) -> None: ...
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from collections.abc import Sequence
|
|
2
|
+
|
|
3
|
+
from .flowables import Flowable, _Container, _FindSplitterMixin
|
|
4
|
+
|
|
5
|
+
class MultiCol(_Container, _FindSplitterMixin, Flowable):
|
|
6
|
+
contents: Sequence[Flowable]
|
|
7
|
+
widths: Sequence[float | str]
|
|
8
|
+
minHeightNeeded: float
|
|
9
|
+
def __init__(
|
|
10
|
+
self,
|
|
11
|
+
contents: Sequence[Flowable],
|
|
12
|
+
widths: Sequence[float | str],
|
|
13
|
+
minHeightNeeded: float = 36,
|
|
14
|
+
spaceBefore: float | None = None,
|
|
15
|
+
spaceAfter: float | None = None,
|
|
16
|
+
) -> None: ...
|
|
17
|
+
def nWidths(self, aW: float) -> list[float]: ...
|