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,184 @@
|
|
|
1
|
+
from enum import IntEnum
|
|
2
|
+
from typing import Any, Literal, SupportsIndex, overload
|
|
3
|
+
from typing_extensions import TypeAlias
|
|
4
|
+
|
|
5
|
+
import numpy as np
|
|
6
|
+
from numpy.typing import NDArray
|
|
7
|
+
|
|
8
|
+
from ._enum import ParamEnum
|
|
9
|
+
from ._typing import ArrayLike, ArrayLikeSeq, GeoArray, OptGeoArrayLike, OptGeoArrayLikeSeq, OptGeoT
|
|
10
|
+
from .geometry import LinearRing, LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon
|
|
11
|
+
from .geometry.base import BaseGeometry, BaseMultipartGeometry
|
|
12
|
+
from .lib import Geometry
|
|
13
|
+
|
|
14
|
+
__all__ = [
|
|
15
|
+
"GeometryType",
|
|
16
|
+
"get_type_id",
|
|
17
|
+
"get_dimensions",
|
|
18
|
+
"get_coordinate_dimension",
|
|
19
|
+
"get_num_coordinates",
|
|
20
|
+
"get_srid",
|
|
21
|
+
"set_srid",
|
|
22
|
+
"get_x",
|
|
23
|
+
"get_y",
|
|
24
|
+
"get_z",
|
|
25
|
+
"get_exterior_ring",
|
|
26
|
+
"get_num_points",
|
|
27
|
+
"get_num_interior_rings",
|
|
28
|
+
"get_num_geometries",
|
|
29
|
+
"get_point",
|
|
30
|
+
"get_interior_ring",
|
|
31
|
+
"get_geometry",
|
|
32
|
+
"get_parts",
|
|
33
|
+
"get_rings",
|
|
34
|
+
"get_precision",
|
|
35
|
+
"set_precision",
|
|
36
|
+
"force_2d",
|
|
37
|
+
"force_3d",
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
_PrecisionMode: TypeAlias = Literal["valid_output", "pointwise", "keep_collapsed", 0, 1, 2]
|
|
41
|
+
|
|
42
|
+
class GeometryType(IntEnum):
|
|
43
|
+
MISSING = -1
|
|
44
|
+
POINT = 0
|
|
45
|
+
LINESTRING = 1
|
|
46
|
+
LINEARRING = 2
|
|
47
|
+
POLYGON = 3
|
|
48
|
+
MULTIPOINT = 4
|
|
49
|
+
MULTILINESTRING = 5
|
|
50
|
+
MULTIPOLYGON = 6
|
|
51
|
+
GEOMETRYCOLLECTION = 7
|
|
52
|
+
|
|
53
|
+
@overload
|
|
54
|
+
def get_type_id(geometry: Geometry | None, **kwargs) -> int: ...
|
|
55
|
+
@overload
|
|
56
|
+
def get_type_id(geometry: OptGeoArrayLikeSeq, **kwargs) -> NDArray[np.int64]: ...
|
|
57
|
+
@overload
|
|
58
|
+
def get_dimensions(geometry: Geometry | None, **kwargs) -> int: ...
|
|
59
|
+
@overload
|
|
60
|
+
def get_dimensions(geometry: OptGeoArrayLikeSeq, **kwargs) -> NDArray[np.int64]: ...
|
|
61
|
+
@overload
|
|
62
|
+
def get_coordinate_dimension(geometry: Geometry | None, **kwargs) -> int: ...
|
|
63
|
+
@overload
|
|
64
|
+
def get_coordinate_dimension(geometry: OptGeoArrayLikeSeq, **kwargs) -> NDArray[np.int64]: ...
|
|
65
|
+
@overload
|
|
66
|
+
def get_num_coordinates(geometry: Geometry | None, **kwargs) -> int: ...
|
|
67
|
+
@overload
|
|
68
|
+
def get_num_coordinates(geometry: OptGeoArrayLikeSeq, **kwargs) -> NDArray[np.int64]: ...
|
|
69
|
+
@overload
|
|
70
|
+
def get_srid(geometry: Geometry | None, **kwargs) -> int: ...
|
|
71
|
+
@overload
|
|
72
|
+
def get_srid(geometry: OptGeoArrayLikeSeq, **kwargs) -> NDArray[np.int64]: ...
|
|
73
|
+
@overload
|
|
74
|
+
def set_srid(geometry: OptGeoT, srid: SupportsIndex, **kwargs) -> OptGeoT: ...
|
|
75
|
+
@overload
|
|
76
|
+
def set_srid(geometry: OptGeoArrayLikeSeq, srid: ArrayLike[SupportsIndex], **kwargs) -> GeoArray: ...
|
|
77
|
+
@overload
|
|
78
|
+
def set_srid(geometry: OptGeoArrayLike, srid: ArrayLikeSeq[SupportsIndex], **kwargs) -> GeoArray: ...
|
|
79
|
+
@overload
|
|
80
|
+
def get_x(point: Geometry | None, **kwargs) -> float: ...
|
|
81
|
+
@overload
|
|
82
|
+
def get_x(point: OptGeoArrayLikeSeq, **kwargs) -> NDArray[np.float64]: ...
|
|
83
|
+
@overload
|
|
84
|
+
def get_y(point: Geometry | None, **kwargs) -> float: ...
|
|
85
|
+
@overload
|
|
86
|
+
def get_y(point: OptGeoArrayLikeSeq, **kwargs) -> NDArray[np.float64]: ...
|
|
87
|
+
@overload
|
|
88
|
+
def get_z(point: Geometry | None, **kwargs) -> float: ...
|
|
89
|
+
@overload
|
|
90
|
+
def get_z(point: OptGeoArrayLikeSeq, **kwargs) -> NDArray[np.float64]: ...
|
|
91
|
+
@overload
|
|
92
|
+
def get_point(geometry: LineString, index: SupportsIndex, **kwargs) -> Point | Any: ...
|
|
93
|
+
@overload
|
|
94
|
+
def get_point(geometry: Point | Polygon | BaseMultipartGeometry | None, index: SupportsIndex, **kwargs) -> None: ...
|
|
95
|
+
@overload
|
|
96
|
+
def get_point(geometry: Geometry, index: SupportsIndex, **kwargs) -> Point | None: ...
|
|
97
|
+
@overload
|
|
98
|
+
def get_point(geometry: OptGeoArrayLikeSeq, index: ArrayLike[SupportsIndex], **kwargs) -> GeoArray: ...
|
|
99
|
+
@overload
|
|
100
|
+
def get_point(geometry: OptGeoArrayLike, index: ArrayLikeSeq[SupportsIndex], **kwargs) -> GeoArray: ...
|
|
101
|
+
@overload
|
|
102
|
+
def get_num_points(geometry: Geometry | None, **kwargs) -> int: ...
|
|
103
|
+
@overload
|
|
104
|
+
def get_num_points(geometry: OptGeoArrayLikeSeq, **kwargs) -> NDArray[np.int64]: ...
|
|
105
|
+
@overload
|
|
106
|
+
def get_exterior_ring(geometry: Polygon, **kwargs) -> LinearRing: ...
|
|
107
|
+
@overload
|
|
108
|
+
def get_exterior_ring(geometry: Point | LineString | BaseMultipartGeometry | None, **kwargs) -> None: ...
|
|
109
|
+
@overload
|
|
110
|
+
def get_exterior_ring(geometry: Geometry, **kwargs) -> LinearRing | None: ...
|
|
111
|
+
@overload
|
|
112
|
+
def get_exterior_ring(geometry: OptGeoArrayLikeSeq, **kwargs) -> GeoArray: ...
|
|
113
|
+
@overload
|
|
114
|
+
def get_interior_ring(geometry: Polygon, index: SupportsIndex, **kwargs) -> LinearRing | Any: ...
|
|
115
|
+
@overload
|
|
116
|
+
def get_interior_ring(geometry: Point | LineString | BaseMultipartGeometry | None, index: SupportsIndex, **kwargs) -> None: ...
|
|
117
|
+
@overload
|
|
118
|
+
def get_interior_ring(geometry: Geometry, index: SupportsIndex, **kwargs) -> LinearRing | None: ...
|
|
119
|
+
@overload
|
|
120
|
+
def get_interior_ring(geometry: OptGeoArrayLikeSeq, index: ArrayLike[SupportsIndex], **kwargs) -> GeoArray: ...
|
|
121
|
+
@overload
|
|
122
|
+
def get_interior_ring(geometry: OptGeoArrayLike, index: ArrayLikeSeq[SupportsIndex], **kwargs) -> GeoArray: ...
|
|
123
|
+
@overload
|
|
124
|
+
def get_num_interior_rings(geometry: Geometry | None, **kwargs) -> int: ...
|
|
125
|
+
@overload
|
|
126
|
+
def get_num_interior_rings(geometry: OptGeoArrayLikeSeq, **kwargs) -> NDArray[np.int64]: ...
|
|
127
|
+
@overload
|
|
128
|
+
def get_geometry(geometry: MultiPoint, index: SupportsIndex, **kwargs) -> Point | Any: ...
|
|
129
|
+
@overload
|
|
130
|
+
def get_geometry(geometry: MultiLineString, index: SupportsIndex, **kwargs) -> LineString | Any: ...
|
|
131
|
+
@overload
|
|
132
|
+
def get_geometry(geometry: MultiPolygon, index: SupportsIndex, **kwargs) -> Polygon | Any: ...
|
|
133
|
+
@overload
|
|
134
|
+
def get_geometry(geometry: BaseMultipartGeometry, index: SupportsIndex, **kwargs) -> BaseGeometry | Any: ...
|
|
135
|
+
@overload
|
|
136
|
+
def get_geometry(geometry: None, index: SupportsIndex, **kwargs) -> None: ...
|
|
137
|
+
@overload
|
|
138
|
+
def get_geometry(geometry: Geometry | None, index: SupportsIndex, **kwargs) -> BaseGeometry | None: ...
|
|
139
|
+
@overload
|
|
140
|
+
def get_geometry(geometry: OptGeoArrayLikeSeq, index: ArrayLike[SupportsIndex], **kwargs) -> GeoArray: ...
|
|
141
|
+
@overload
|
|
142
|
+
def get_geometry(geometry: OptGeoArrayLike, index: ArrayLikeSeq[SupportsIndex], **kwargs) -> GeoArray: ...
|
|
143
|
+
@overload
|
|
144
|
+
def get_parts(geometry: OptGeoArrayLike, return_index: Literal[False] = False) -> GeoArray: ...
|
|
145
|
+
@overload
|
|
146
|
+
def get_parts(geometry: OptGeoArrayLike, return_index: Literal[True]) -> tuple[GeoArray, NDArray[np.int64]]: ...
|
|
147
|
+
@overload
|
|
148
|
+
def get_parts(geometry: OptGeoArrayLike, return_index: bool) -> GeoArray | tuple[GeoArray, NDArray[np.int64]]: ...
|
|
149
|
+
@overload
|
|
150
|
+
def get_rings(geometry: OptGeoArrayLike, return_index: Literal[False] = False) -> GeoArray: ...
|
|
151
|
+
@overload
|
|
152
|
+
def get_rings(geometry: OptGeoArrayLike, return_index: Literal[True]) -> tuple[GeoArray, NDArray[np.int64]]: ...
|
|
153
|
+
@overload
|
|
154
|
+
def get_rings(geometry: OptGeoArrayLike, return_index: bool) -> GeoArray | tuple[GeoArray, NDArray[np.int64]]: ...
|
|
155
|
+
@overload
|
|
156
|
+
def get_num_geometries(geometry: Geometry | None, **kwargs) -> int: ...
|
|
157
|
+
@overload
|
|
158
|
+
def get_num_geometries(geometry: OptGeoArrayLikeSeq, **kwargs) -> NDArray[np.int64]: ...
|
|
159
|
+
@overload
|
|
160
|
+
def get_precision(geometry: Geometry | None, **kwargs) -> float: ...
|
|
161
|
+
@overload
|
|
162
|
+
def get_precision(geometry: OptGeoArrayLikeSeq, **kwargs) -> NDArray[np.float64]: ...
|
|
163
|
+
|
|
164
|
+
class SetPrecisionMode(ParamEnum):
|
|
165
|
+
valid_output = 0 # noqa: Y052
|
|
166
|
+
pointwise = 1 # noqa: Y052
|
|
167
|
+
keep_collapsed = 2 # noqa: Y052
|
|
168
|
+
|
|
169
|
+
@overload
|
|
170
|
+
def set_precision(geometry: OptGeoT, grid_size: float, mode: _PrecisionMode = "valid_output", **kwargs) -> OptGeoT: ...
|
|
171
|
+
@overload
|
|
172
|
+
def set_precision(
|
|
173
|
+
geometry: OptGeoArrayLikeSeq, grid_size: float, mode: _PrecisionMode = "valid_output", **kwargs
|
|
174
|
+
) -> GeoArray: ...
|
|
175
|
+
@overload
|
|
176
|
+
def force_2d(geometry: OptGeoT, **kwargs) -> OptGeoT: ...
|
|
177
|
+
@overload
|
|
178
|
+
def force_2d(geometry: OptGeoArrayLikeSeq, **kwargs) -> GeoArray: ...
|
|
179
|
+
@overload
|
|
180
|
+
def force_3d(geometry: OptGeoT, z: float = 0.0, **kwargs) -> OptGeoT: ...
|
|
181
|
+
@overload
|
|
182
|
+
def force_3d(geometry: OptGeoArrayLikeSeq, z: ArrayLike[float] = 0.0, **kwargs) -> GeoArray: ...
|
|
183
|
+
@overload
|
|
184
|
+
def force_3d(geometry: OptGeoArrayLike, z: ArrayLikeSeq[float], **kwargs) -> GeoArray: ...
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import numpy as np
|
|
2
|
+
from numpy.typing import NDArray
|
|
3
|
+
|
|
4
|
+
from ._geometry import GeometryType
|
|
5
|
+
from ._typing import ArrayLike, ArrayLikeSeq, GeoArray, OptGeoArrayLikeSeq
|
|
6
|
+
|
|
7
|
+
def to_ragged_array(
|
|
8
|
+
geometries: OptGeoArrayLikeSeq, include_z: bool | None = None
|
|
9
|
+
) -> tuple[GeometryType, NDArray[np.float64], tuple[NDArray[np.int64], ...]]: ...
|
|
10
|
+
def from_ragged_array(
|
|
11
|
+
geometry_type: GeometryType, coords: ArrayLike[float], offsets: ArrayLikeSeq[int] | None = None
|
|
12
|
+
) -> GeoArray: ...
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import sys
|
|
2
|
+
from _typeshed import SupportsWrite as SupportsWrite
|
|
3
|
+
from collections.abc import Sequence
|
|
4
|
+
from typing import Any, Protocol, TypeVar, type_check_only
|
|
5
|
+
from typing_extensions import TypeAlias
|
|
6
|
+
|
|
7
|
+
import numpy as np
|
|
8
|
+
from numpy.typing import NDArray
|
|
9
|
+
|
|
10
|
+
from .lib import Geometry
|
|
11
|
+
|
|
12
|
+
if sys.version_info >= (3, 12):
|
|
13
|
+
from collections.abc import Buffer
|
|
14
|
+
|
|
15
|
+
_T = TypeVar("_T")
|
|
16
|
+
_T_co = TypeVar("_T_co", covariant=True)
|
|
17
|
+
_DType = TypeVar("_DType", bound=np.dtype[Any])
|
|
18
|
+
_DType_co = TypeVar("_DType_co", covariant=True, bound=np.dtype[Any])
|
|
19
|
+
|
|
20
|
+
GeoT = TypeVar("GeoT", bound=Geometry) # noqa: Y001
|
|
21
|
+
OptGeoT = TypeVar("OptGeoT", bound=Geometry | None) # noqa: Y001
|
|
22
|
+
|
|
23
|
+
@type_check_only
|
|
24
|
+
class SupportsArray(Protocol[_DType_co]):
|
|
25
|
+
def __array__(self) -> np.ndarray[Any, _DType_co]: ...
|
|
26
|
+
|
|
27
|
+
# TODO revisit when mypy is happy with generic recursive type alias
|
|
28
|
+
# NestedSequence: TypeAlias = Sequence[_T] | Sequence[NestedSequence[_T]]
|
|
29
|
+
NestedSequence: TypeAlias = Sequence[_T] | Sequence[Sequence[_T]] | Sequence[Sequence[Sequence[_T]]]
|
|
30
|
+
DualArrayLike: TypeAlias = SupportsArray[_DType] | NestedSequence[SupportsArray[_DType]] | NestedSequence[_T]
|
|
31
|
+
|
|
32
|
+
# array-like sequences: objects accepted by np.array that produce at least 1-D arrays
|
|
33
|
+
if sys.version_info >= (3, 12):
|
|
34
|
+
ArrayLikeSeq: TypeAlias = Buffer | DualArrayLike[np.dtype[Any], _T]
|
|
35
|
+
else:
|
|
36
|
+
ArrayLikeSeq: TypeAlias = DualArrayLike[np.dtype[Any], _T]
|
|
37
|
+
GeoArrayLikeSeq: TypeAlias = ArrayLikeSeq[Geometry]
|
|
38
|
+
OptGeoArrayLikeSeq: TypeAlias = ArrayLikeSeq[Geometry | None]
|
|
39
|
+
|
|
40
|
+
# array-like: objects accepted by np.array that may also produce 0-D array
|
|
41
|
+
ArrayLike: TypeAlias = _T | ArrayLikeSeq[_T]
|
|
42
|
+
GeoArrayLike: TypeAlias = ArrayLike[Geometry]
|
|
43
|
+
OptGeoArrayLike: TypeAlias = ArrayLike[Geometry | None]
|
|
44
|
+
|
|
45
|
+
# There is no way to pronounce "array of BaseGeometry" currently because of the restriction on
|
|
46
|
+
# NDArray type variable to np.dtype and because np.object_ is not generic.
|
|
47
|
+
# Note the use of `BaseGeometry` instead of `Geometry` as the alias is used in return types.
|
|
48
|
+
GeoArray: TypeAlias = NDArray[np.object_]
|
|
49
|
+
|
|
50
|
+
@type_check_only
|
|
51
|
+
class SupportsGeoInterface(Protocol):
|
|
52
|
+
@property
|
|
53
|
+
def __geo_interface__(self) -> dict[str, Any]: ...
|
|
54
|
+
|
|
55
|
+
# Unlike _typeshed.SupportsRead, this protocol does not require a length parameter
|
|
56
|
+
@type_check_only
|
|
57
|
+
class SupportsRead(Protocol[_T_co]):
|
|
58
|
+
def read(self) -> _T_co: ...
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from collections.abc import Collection
|
|
2
|
+
from typing import Literal, overload
|
|
3
|
+
from typing_extensions import TypeAlias
|
|
4
|
+
|
|
5
|
+
from ._typing import GeoT
|
|
6
|
+
from .geometry import Point
|
|
7
|
+
from .lib import Geometry
|
|
8
|
+
|
|
9
|
+
__all__ = ["affine_transform", "rotate", "scale", "skew", "translate"]
|
|
10
|
+
|
|
11
|
+
_Origin: TypeAlias = Literal["center", "centroid"] | Point | tuple[float, float] | tuple[float, float, float]
|
|
12
|
+
|
|
13
|
+
def affine_transform(geom: GeoT, matrix: Collection[float]) -> GeoT: ...
|
|
14
|
+
@overload
|
|
15
|
+
def interpret_origin(geom: Geometry, origin: _Origin, ndim: Literal[2]) -> tuple[float, float]: ...
|
|
16
|
+
@overload
|
|
17
|
+
def interpret_origin(geom: Geometry, origin: _Origin, ndim: Literal[3]) -> tuple[float, float, float]: ...
|
|
18
|
+
@overload
|
|
19
|
+
def interpret_origin(geom: Geometry, origin: _Origin, ndim: int) -> tuple[float, float] | tuple[float, float, float]: ...
|
|
20
|
+
def rotate(geom: GeoT, angle: float, origin: _Origin = "center", use_radians: bool = False) -> GeoT: ...
|
|
21
|
+
def scale(geom: GeoT, xfact: float = 1.0, yfact: float = 1.0, zfact: float = 1.0, origin: _Origin = "center") -> GeoT: ...
|
|
22
|
+
def skew(geom: GeoT, xs: float = 0.0, ys: float = 0.0, origin: _Origin = "center", use_radians: bool = False) -> GeoT: ...
|
|
23
|
+
def translate(geom: GeoT, xoff: float = 0.0, yoff: float = 0.0, zoff: float = 0.0) -> GeoT: ...
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from ..errors import TopologicalError as TopologicalError
|
|
2
|
+
from ..geometry import Point, Polygon
|
|
3
|
+
|
|
4
|
+
class Cell:
|
|
5
|
+
x: float
|
|
6
|
+
y: float
|
|
7
|
+
h: float
|
|
8
|
+
centroid: Point
|
|
9
|
+
distance: float
|
|
10
|
+
max_distance: float
|
|
11
|
+
def __init__(self, x: float, y: float, h: float, polygon: Polygon) -> None: ...
|
|
12
|
+
def __lt__(self, other: Cell) -> bool: ...
|
|
13
|
+
def __le__(self, other: Cell) -> bool: ...
|
|
14
|
+
def __eq__(self, other: object) -> bool: ...
|
|
15
|
+
def __ne__(self, other: object) -> bool: ...
|
|
16
|
+
def __gt__(self, other: Cell) -> bool: ...
|
|
17
|
+
def __ge__(self, other: Cell) -> bool: ...
|
|
18
|
+
|
|
19
|
+
def polylabel(polygon: Polygon, tolerance: float = 1.0) -> Point: ...
|