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.
Files changed (398) hide show
  1. package/dist/pyright-langserver.js +1 -1
  2. package/dist/pyright-langserver.js.map +1 -1
  3. package/dist/pyright.js +1 -1
  4. package/dist/pyright.js.map +1 -1
  5. package/dist/typeshed-fallback/commit.txt +1 -1
  6. package/dist/typeshed-fallback/stdlib/_ast.pyi +3 -0
  7. package/dist/typeshed-fallback/stdlib/_json.pyi +1 -1
  8. package/dist/typeshed-fallback/stdlib/argparse.pyi +211 -53
  9. package/dist/typeshed-fallback/stdlib/asyncio/__init__.pyi +5 -5
  10. package/dist/typeshed-fallback/stdlib/asyncio/events.pyi +2 -2
  11. package/dist/typeshed-fallback/stdlib/base64.pyi +6 -0
  12. package/dist/typeshed-fallback/stdlib/builtins.pyi +22 -5
  13. package/dist/typeshed-fallback/stdlib/configparser.pyi +143 -52
  14. package/dist/typeshed-fallback/stdlib/dataclasses.pyi +3 -5
  15. package/dist/typeshed-fallback/stdlib/datetime.pyi +32 -0
  16. package/dist/typeshed-fallback/stdlib/enum.pyi +10 -2
  17. package/dist/typeshed-fallback/stdlib/glob.pyi +9 -1
  18. package/dist/typeshed-fallback/stdlib/importlib/metadata/__init__.pyi +4 -1
  19. package/dist/typeshed-fallback/stdlib/io.pyi +1 -1
  20. package/dist/typeshed-fallback/stdlib/ipaddress.pyi +5 -1
  21. package/dist/typeshed-fallback/stdlib/itertools.pyi +58 -0
  22. package/dist/typeshed-fallback/stdlib/json/encoder.pyi +2 -2
  23. package/dist/typeshed-fallback/stdlib/locale.pyi +6 -2
  24. package/dist/typeshed-fallback/stdlib/logging/__init__.pyi +1 -1
  25. package/dist/typeshed-fallback/stdlib/logging/handlers.pyi +1 -1
  26. package/dist/typeshed-fallback/stdlib/math.pyi +1 -1
  27. package/dist/typeshed-fallback/stdlib/mimetypes.pyi +9 -0
  28. package/dist/typeshed-fallback/stdlib/mmap.pyi +2 -0
  29. package/dist/typeshed-fallback/stdlib/multiprocessing/managers.pyi +4 -0
  30. package/dist/typeshed-fallback/stdlib/multiprocessing/shared_memory.pyi +5 -1
  31. package/dist/typeshed-fallback/stdlib/pathlib.pyi +44 -11
  32. package/dist/typeshed-fallback/stdlib/pdb.pyi +3 -1
  33. package/dist/typeshed-fallback/stdlib/platform.pyi +25 -0
  34. package/dist/typeshed-fallback/stdlib/pydoc.pyi +79 -30
  35. package/dist/typeshed-fallback/stdlib/shutil.pyi +9 -6
  36. package/dist/typeshed-fallback/stdlib/sqlite3/dbapi2.pyi +5 -1
  37. package/dist/typeshed-fallback/stdlib/tarfile.pyi +37 -16
  38. package/dist/typeshed-fallback/stdlib/time.pyi +4 -1
  39. package/dist/typeshed-fallback/stdlib/tokenize.pyi +1 -1
  40. package/dist/typeshed-fallback/stdlib/traceback.pyi +54 -18
  41. package/dist/typeshed-fallback/stdlib/types.pyi +4 -0
  42. package/dist/typeshed-fallback/stdlib/typing.pyi +14 -2
  43. package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +5 -3
  44. package/dist/typeshed-fallback/stubs/Flask-Cors/flask_cors/extension.pyi +1 -1
  45. package/dist/typeshed-fallback/stubs/PyMySQL/pymysql/__init__.pyi +5 -0
  46. package/dist/typeshed-fallback/stubs/PyMySQL/pymysql/connections.pyi +2 -0
  47. package/dist/typeshed-fallback/stubs/PyMySQL/pymysql/converters.pyi +4 -3
  48. package/dist/typeshed-fallback/stubs/docker/METADATA.toml +1 -1
  49. package/dist/typeshed-fallback/stubs/docker/docker/api/client.pyi +1 -1
  50. package/dist/typeshed-fallback/stubs/docker/docker/api/container.pyi +17 -2
  51. package/dist/typeshed-fallback/stubs/docker/docker/client.pyi +16 -2
  52. package/dist/typeshed-fallback/stubs/docker/docker/models/containers.pyi +30 -4
  53. package/dist/typeshed-fallback/stubs/docker/docker/models/networks.pyi +1 -1
  54. package/dist/typeshed-fallback/stubs/greenlet/greenlet/__init__.pyi +4 -0
  55. package/dist/typeshed-fallback/stubs/hvac/METADATA.toml +1 -1
  56. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/aws.pyi +7 -1
  57. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/jwt.pyi +2 -1
  58. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/__init__.pyi +2 -0
  59. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/identity.pyi +0 -1
  60. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/ldap.pyi +41 -0
  61. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/transit.pyi +4 -2
  62. package/dist/typeshed-fallback/stubs/hvac/hvac/api/vault_api_base.pyi +4 -1
  63. package/dist/typeshed-fallback/stubs/hvac/hvac/constants/identity.pyi +2 -0
  64. package/dist/typeshed-fallback/stubs/hvac/hvac/exceptions.pyi +2 -0
  65. package/dist/typeshed-fallback/stubs/nanoid/METADATA.toml +2 -0
  66. package/dist/typeshed-fallback/stubs/nanoid/nanoid/__init__.pyi +4 -0
  67. package/dist/typeshed-fallback/stubs/nanoid/nanoid/algorithm.pyi +1 -0
  68. package/dist/typeshed-fallback/stubs/nanoid/nanoid/generate.pyi +3 -0
  69. package/dist/typeshed-fallback/stubs/nanoid/nanoid/method.pyi +6 -0
  70. package/dist/typeshed-fallback/stubs/nanoid/nanoid/non_secure_generate.pyi +3 -0
  71. package/dist/typeshed-fallback/stubs/nanoid/nanoid/resources.pyi +2 -0
  72. package/dist/typeshed-fallback/stubs/netaddr/METADATA.toml +1 -1
  73. package/dist/typeshed-fallback/stubs/netaddr/netaddr/ip/__init__.pyi +4 -2
  74. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dag.pyi +12 -9
  75. package/dist/typeshed-fallback/stubs/openpyxl/METADATA.toml +1 -1
  76. package/dist/typeshed-fallback/stubs/pep8-naming/METADATA.toml +1 -1
  77. package/dist/typeshed-fallback/stubs/pep8-naming/pep8ext_naming.pyi +0 -1
  78. package/dist/typeshed-fallback/stubs/pynput/METADATA.toml +1 -1
  79. package/dist/typeshed-fallback/stubs/pynput/pynput/_util.pyi +1 -1
  80. package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/_base.pyi +64 -64
  81. package/dist/typeshed-fallback/stubs/pyserial/serial/serialutil.pyi +1 -1
  82. package/dist/typeshed-fallback/stubs/python-crontab/METADATA.toml +1 -1
  83. package/dist/typeshed-fallback/stubs/python-crontab/crontab.pyi +1 -0
  84. package/dist/typeshed-fallback/stubs/reportlab/METADATA.toml +6 -0
  85. package/dist/typeshed-fallback/stubs/reportlab/reportlab/__init__.pyi +11 -0
  86. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/__init__.pyi +3 -0
  87. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/__init__.pyi +5 -0
  88. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/code128.pyi +33 -0
  89. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/code39.pyi +32 -0
  90. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/code93.pyi +28 -0
  91. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/common.pyi +124 -0
  92. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/dmtx.pyi +68 -0
  93. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/eanbc.pyi +41 -0
  94. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/ecc200datamatrix.pyi +22 -0
  95. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/fourstate.pyi +0 -0
  96. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/lto.pyi +41 -0
  97. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/qr.pyi +52 -0
  98. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/qrencoder.pyi +202 -0
  99. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/usps.pyi +36 -0
  100. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/usps4s.pyi +85 -0
  101. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/barcode/widgets.pyi +65 -0
  102. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/__init__.pyi +3 -0
  103. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/areas.pyi +19 -0
  104. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/axes.pyi +205 -0
  105. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/barcharts.pyi +105 -0
  106. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/dotbox.pyi +24 -0
  107. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/doughnut.pyi +34 -0
  108. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/legends.pyi +101 -0
  109. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/linecharts.pyi +67 -0
  110. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/lineplots.pyi +119 -0
  111. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/markers.pyi +10 -0
  112. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/piecharts.pyi +182 -0
  113. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/slidebox.pyi +38 -0
  114. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/spider.pyi +60 -0
  115. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/textlabels.pyi +60 -0
  116. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/utils.pyi +49 -0
  117. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/charts/utils3d.pyi +26 -0
  118. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/renderPDF.pyi +39 -0
  119. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/renderPM.pyi +127 -0
  120. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/renderPS.pyi +73 -0
  121. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/renderSVG.pyi +131 -0
  122. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/renderbase.pyi +40 -0
  123. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/__init__.pyi +0 -0
  124. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/bubble.pyi +5 -0
  125. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/clustered_bar.pyi +5 -0
  126. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/clustered_column.pyi +5 -0
  127. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/excelcolors.pyi +33 -0
  128. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/exploded_pie.pyi +8 -0
  129. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/filled_radar.pyi +5 -0
  130. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/line_chart.pyi +5 -0
  131. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/linechart_with_markers.pyi +5 -0
  132. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/radar.pyi +5 -0
  133. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/runall.pyi +3 -0
  134. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/scatter.pyi +5 -0
  135. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/scatter_lines.pyi +5 -0
  136. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/scatter_lines_markers.pyi +5 -0
  137. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/simple_pie.pyi +8 -0
  138. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/stacked_bar.pyi +5 -0
  139. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/samples/stacked_column.pyi +5 -0
  140. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/shapes.pyi +371 -0
  141. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/svgpath.pyi +8 -0
  142. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/transform.pyi +12 -0
  143. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/utils.pyi +22 -0
  144. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/widgetbase.pyi +112 -0
  145. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/widgets/__init__.pyi +3 -0
  146. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/widgets/adjustableArrow.pyi +11 -0
  147. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/widgets/eventcal.pyi +29 -0
  148. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/widgets/flags.pyi +32 -0
  149. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/widgets/grids.pyi +76 -0
  150. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/widgets/markers.pyi +21 -0
  151. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/widgets/signsandsymbols.pyi +164 -0
  152. package/dist/typeshed-fallback/stubs/reportlab/reportlab/graphics/widgets/table.pyi +32 -0
  153. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/PyFontify.pyi +21 -0
  154. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/__init__.pyi +4 -0
  155. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/abag.pyi +11 -0
  156. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/arciv.pyi +7 -0
  157. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/attrmap.pyi +40 -0
  158. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/boxstuff.pyi +6 -0
  159. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/codecharts.pyi +80 -0
  160. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/colors.pyi +318 -0
  161. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/corp.pyi +79 -0
  162. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/enums.pyi +7 -0
  163. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/extformat.pyi +6 -0
  164. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/fontfinder.pyi +59 -0
  165. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/fonts.pyi +10 -0
  166. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/formatters.pyi +24 -0
  167. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/geomutils.pyi +5 -0
  168. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/logger.pyi +24 -0
  169. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/normalDate.pyi +82 -0
  170. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/pagesizes.pyi +51 -0
  171. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/pdfencrypt.pyi +133 -0
  172. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/pygments2xpre.pyi +1 -0
  173. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/randomtext.pyi +19 -0
  174. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/rl_accel.pyi +11 -0
  175. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/rl_safe_eval.pyi +253 -0
  176. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/rltempfile.pyi +2 -0
  177. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/rparsexml.pyi +32 -0
  178. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/sequencer.pyi +31 -0
  179. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/styles.pyi +181 -0
  180. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/testutils.pyi +67 -0
  181. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/textsplit.pyi +19 -0
  182. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/units.pyi +9 -0
  183. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/utils.pyi +190 -0
  184. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/validators.pyi +171 -0
  185. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/yaml.pyi +26 -0
  186. package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/__init__.pyi +3 -0
  187. package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/acroform.pyi +214 -0
  188. package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/cidfonts.pyi +51 -0
  189. package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/pdfdoc.pyi +627 -0
  190. package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/pdfform.pyi +81 -0
  191. package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/pdfmetrics.pyi +93 -0
  192. package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/pdfpattern.pyi +21 -0
  193. package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/pdfutils.pyi +16 -0
  194. package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/rl_codecs.pyi +24 -0
  195. package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfbase/ttfonts.pyi +150 -0
  196. package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfgen/__init__.pyi +3 -0
  197. package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfgen/canvas.pyi +306 -0
  198. package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfgen/pathobject.pyi +18 -0
  199. package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfgen/pdfgeom.pyi +5 -0
  200. package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfgen/pdfimages.pyi +38 -0
  201. package/dist/typeshed-fallback/stubs/reportlab/reportlab/pdfgen/textobject.pyi +52 -0
  202. package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/__init__.pyi +12 -0
  203. package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/doctemplate.pyi +267 -0
  204. package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/figures.pyi +118 -0
  205. package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/flowables.pyi +451 -0
  206. package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/frames.pyi +37 -0
  207. package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/multicol.pyi +17 -0
  208. package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/para.pyi +271 -0
  209. package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/paragraph.pyi +38 -0
  210. package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/paraparser.pyi +117 -0
  211. package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/tableofcontents.pyi +108 -0
  212. package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/tables.pyi +124 -0
  213. package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/xpreformatted.pyi +30 -0
  214. package/dist/typeshed-fallback/stubs/reportlab/reportlab/rl_config.pyi +71 -0
  215. package/dist/typeshed-fallback/stubs/reportlab/reportlab/rl_settings.pyi +72 -0
  216. package/dist/typeshed-fallback/stubs/requests/requests/__version__.pyi +12 -10
  217. package/dist/typeshed-fallback/stubs/requests/requests/adapters.pyi +38 -7
  218. package/dist/typeshed-fallback/stubs/requests/requests/models.pyi +21 -21
  219. package/dist/typeshed-fallback/stubs/requests/requests/utils.pyi +8 -6
  220. package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +1 -1
  221. package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/__init__.pyi +25 -19
  222. package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/build.pyi +1 -2
  223. package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/editable_wheel.pyi +3 -0
  224. package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py311.pyi +3 -2
  225. package/dist/typeshed-fallback/stubs/shapely/METADATA.toml +4 -0
  226. package/dist/typeshed-fallback/stubs/shapely/shapely/__init__.pyi +34 -0
  227. package/dist/typeshed-fallback/stubs/shapely/shapely/_enum.pyi +5 -0
  228. package/dist/typeshed-fallback/stubs/shapely/shapely/_geometry.pyi +184 -0
  229. package/dist/typeshed-fallback/stubs/shapely/shapely/_ragged_array.pyi +12 -0
  230. package/dist/typeshed-fallback/stubs/shapely/shapely/_typing.pyi +58 -0
  231. package/dist/typeshed-fallback/stubs/shapely/shapely/_version.pyi +6 -0
  232. package/dist/typeshed-fallback/stubs/shapely/shapely/affinity.pyi +23 -0
  233. package/dist/typeshed-fallback/stubs/shapely/shapely/algorithms/__init__.pyi +0 -0
  234. package/dist/typeshed-fallback/stubs/shapely/shapely/algorithms/cga.pyi +6 -0
  235. package/dist/typeshed-fallback/stubs/shapely/shapely/algorithms/polylabel.pyi +19 -0
  236. package/dist/typeshed-fallback/stubs/shapely/shapely/constructive.pyi +430 -0
  237. package/dist/typeshed-fallback/stubs/shapely/shapely/coordinates.pyi +43 -0
  238. package/dist/typeshed-fallback/stubs/shapely/shapely/coords.pyi +18 -0
  239. package/dist/typeshed-fallback/stubs/shapely/shapely/creation.pyi +242 -0
  240. package/dist/typeshed-fallback/stubs/shapely/shapely/decorators.pyi +11 -0
  241. package/dist/typeshed-fallback/stubs/shapely/shapely/errors.pyi +17 -0
  242. package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/__init__.pyi +25 -0
  243. package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/base.pyi +285 -0
  244. package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/collection.pyi +18 -0
  245. package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/geo.pyi +9 -0
  246. package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/linestring.pyi +45 -0
  247. package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/multilinestring.pyi +15 -0
  248. package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/multipoint.pyi +20 -0
  249. package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/multipolygon.pyi +22 -0
  250. package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/point.pyi +39 -0
  251. package/dist/typeshed-fallback/stubs/shapely/shapely/geometry/polygon.pyi +45 -0
  252. package/dist/typeshed-fallback/stubs/shapely/shapely/geos.pyi +3 -0
  253. package/dist/typeshed-fallback/stubs/shapely/shapely/io.pyi +140 -0
  254. package/dist/typeshed-fallback/stubs/shapely/shapely/lib.pyi +167 -0
  255. package/dist/typeshed-fallback/stubs/shapely/shapely/linear.pyi +69 -0
  256. package/dist/typeshed-fallback/stubs/shapely/shapely/measurement.pyi +68 -0
  257. package/dist/typeshed-fallback/stubs/shapely/shapely/ops.pyi +106 -0
  258. package/dist/typeshed-fallback/stubs/shapely/shapely/plotting.pyi +76 -0
  259. package/dist/typeshed-fallback/stubs/shapely/shapely/predicates.pyi +214 -0
  260. package/dist/typeshed-fallback/stubs/shapely/shapely/prepared.pyi +20 -0
  261. package/dist/typeshed-fallback/stubs/shapely/shapely/set_operations.pyi +86 -0
  262. package/dist/typeshed-fallback/stubs/shapely/shapely/speedups.pyi +12 -0
  263. package/dist/typeshed-fallback/stubs/shapely/shapely/strtree.pyi +82 -0
  264. package/dist/typeshed-fallback/stubs/shapely/shapely/testing.pyi +14 -0
  265. package/dist/typeshed-fallback/stubs/shapely/shapely/validation.pyi +7 -0
  266. package/dist/typeshed-fallback/stubs/shapely/shapely/vectorized/__init__.pyi +37 -0
  267. package/dist/typeshed-fallback/stubs/shapely/shapely/wkb.pyi +16 -0
  268. package/dist/typeshed-fallback/stubs/shapely/shapely/wkt.pyi +8 -0
  269. package/package.json +1 -1
  270. package/dist/typeshed-fallback/stubs/setuptools/setuptools/dep_util.pyi +0 -1
  271. package/dist/typeshed-fallback/stubs/stripe/METADATA.toml +0 -7
  272. package/dist/typeshed-fallback/stubs/stripe/stripe/__init__.pyi +0 -25
  273. package/dist/typeshed-fallback/stubs/stripe/stripe/api_requestor.pyi +0 -38
  274. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/__init__.pyi +0 -82
  275. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/__init__.pyi +0 -12
  276. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/api_resource.pyi +0 -13
  277. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/createable_api_resource.pyi +0 -16
  278. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/custom_method.pyi +0 -3
  279. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/deletable_api_resource.pyi +0 -7
  280. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/listable_api_resource.pyi +0 -19
  281. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/nested_resource_class_methods.pyi +0 -7
  282. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/searchable_api_resource.pyi +0 -11
  283. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/singleton_api_resource.pyi +0 -8
  284. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/updateable_api_resource.pyi +0 -8
  285. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/abstract/verify_mixin.pyi +0 -2
  286. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/account.pyi +0 -75
  287. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/account_link.pyi +0 -4
  288. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/alipay_account.pyi +0 -23
  289. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/apple_pay_domain.pyi +0 -10
  290. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/application_fee.pyi +0 -8
  291. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/application_fee_refund.pyi +0 -14
  292. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/balance.pyi +0 -4
  293. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/balance_transaction.pyi +0 -4
  294. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/bank_account.pyi +0 -26
  295. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/billing_portal/__init__.pyi +0 -2
  296. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/billing_portal/configuration.pyi +0 -8
  297. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/billing_portal/session.pyi +0 -4
  298. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/bitcoin_receiver.pyi +0 -8
  299. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/bitcoin_transaction.pyi +0 -4
  300. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/capability.pyi +0 -13
  301. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/card.pyi +0 -26
  302. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/charge.pyi +0 -17
  303. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/checkout/__init__.pyi +0 -1
  304. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/checkout/session.pyi +0 -16
  305. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/country_spec.pyi +0 -4
  306. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/coupon.pyi +0 -9
  307. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/credit_note.pyi +0 -21
  308. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/credit_note_line_item.pyi +0 -4
  309. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/customer.pyi +0 -58
  310. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/customer_balance_transaction.pyi +0 -11
  311. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/dispute.pyi +0 -9
  312. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/ephemeral_key.pyi +0 -16
  313. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/error_object.pyi +0 -25
  314. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/event.pyi +0 -4
  315. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/exchange_rate.pyi +0 -4
  316. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/file.pyi +0 -21
  317. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/file_link.pyi +0 -8
  318. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/identity/__init__.pyi +0 -2
  319. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/identity/verification_report.pyi +0 -4
  320. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/identity/verification_session.pyi +0 -11
  321. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/invoice.pyi +0 -28
  322. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/invoice_item.pyi +0 -9
  323. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/invoice_line_item.pyi +0 -4
  324. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/issuer_fraud_record.pyi +0 -4
  325. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/issuing/__init__.pyi +0 -6
  326. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/issuing/authorization.pyi +0 -10
  327. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/issuing/card.pyi +0 -10
  328. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/issuing/card_details.pyi +0 -4
  329. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/issuing/cardholder.pyi +0 -8
  330. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/issuing/dispute.pyi +0 -10
  331. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/issuing/transaction.pyi +0 -7
  332. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/line_item.pyi +0 -4
  333. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/list_object.pyi +0 -57
  334. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/login_link.pyi +0 -4
  335. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/mandate.pyi +0 -4
  336. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/order.pyi +0 -13
  337. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/payment_intent.pyi +0 -22
  338. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/payment_link.pyi +0 -24
  339. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/payment_method.pyi +0 -13
  340. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/payout.pyi +0 -11
  341. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/person.pyi +0 -13
  342. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/plan.pyi +0 -9
  343. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/price.pyi +0 -9
  344. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/product.pyi +0 -10
  345. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/promotion_code.pyi +0 -8
  346. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/quote.pyi +0 -24
  347. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/radar/__init__.pyi +0 -3
  348. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/radar/early_fraud_warning.pyi +0 -4
  349. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/radar/value_list.pyi +0 -9
  350. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/radar/value_list_item.pyi +0 -8
  351. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/recipient.pyi +0 -9
  352. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/recipient_transfer.pyi +0 -4
  353. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/refund.pyi +0 -8
  354. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/reporting/__init__.pyi +0 -2
  355. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/reporting/report_run.pyi +0 -7
  356. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/reporting/report_type.pyi +0 -4
  357. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/reversal.pyi +0 -13
  358. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/review.pyi +0 -5
  359. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/search_result_object.pyi +0 -32
  360. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/setup_attempt.pyi +0 -4
  361. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/setup_intent.pyi +0 -11
  362. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/shipping_rate.pyi +0 -9
  363. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/sigma/__init__.pyi +0 -1
  364. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/sigma/scheduled_query_run.pyi +0 -6
  365. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/sku.pyi +0 -9
  366. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/source.pyi +0 -13
  367. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/source_transaction.pyi +0 -4
  368. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/subscription.pyi +0 -15
  369. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/subscription_item.pyi +0 -27
  370. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/subscription_schedule.pyi +0 -11
  371. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/tax_code.pyi +0 -4
  372. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/tax_id.pyi +0 -11
  373. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/tax_rate.pyi +0 -8
  374. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/terminal/__init__.pyi +0 -3
  375. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/terminal/connection_token.pyi +0 -4
  376. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/terminal/location.pyi +0 -9
  377. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/terminal/reader.pyi +0 -9
  378. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/test_helpers/__init__.pyi +0 -1
  379. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/test_helpers/test_clock.pyi +0 -10
  380. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/three_d_secure.pyi +0 -6
  381. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/token.pyi +0 -4
  382. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/topup.pyi +0 -10
  383. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/transfer.pyi +0 -11
  384. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/usage_record.pyi +0 -16
  385. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/usage_record_summary.pyi +0 -4
  386. package/dist/typeshed-fallback/stubs/stripe/stripe/api_resources/webhook_endpoint.pyi +0 -9
  387. package/dist/typeshed-fallback/stubs/stripe/stripe/error.pyi +0 -76
  388. package/dist/typeshed-fallback/stubs/stripe/stripe/http_client.pyi +0 -52
  389. package/dist/typeshed-fallback/stubs/stripe/stripe/multipart_data_generator.pyi +0 -11
  390. package/dist/typeshed-fallback/stubs/stripe/stripe/oauth.pyi +0 -11
  391. package/dist/typeshed-fallback/stubs/stripe/stripe/oauth_error.pyi +0 -22
  392. package/dist/typeshed-fallback/stubs/stripe/stripe/object_classes.pyi +0 -5
  393. package/dist/typeshed-fallback/stubs/stripe/stripe/request_metrics.pyi +0 -7
  394. package/dist/typeshed-fallback/stubs/stripe/stripe/stripe_object.pyi +0 -62
  395. package/dist/typeshed-fallback/stubs/stripe/stripe/stripe_response.pyi +0 -19
  396. package/dist/typeshed-fallback/stubs/stripe/stripe/util.pyi +0 -42
  397. package/dist/typeshed-fallback/stubs/stripe/stripe/version.pyi +0 -1
  398. package/dist/typeshed-fallback/stubs/stripe/stripe/webhook.pyi +0 -17
@@ -0,0 +1,20 @@
1
+ from collections.abc import Collection
2
+ from typing_extensions import Self
3
+
4
+ from .base import BaseMultipartGeometry
5
+ from .collection import GeometryCollection
6
+ from .point import Point, _PointLike
7
+
8
+ __all__ = ["MultiPoint"]
9
+
10
+ class MultiPoint(BaseMultipartGeometry[Point]):
11
+ # Note on "points" type in `__new__`:
12
+ # * `Collection` here is loose as the expected type should support "__getitem__".
13
+ # * `Sequence` is more correct but it will lead to False positives with common types
14
+ # like np.ndarray, pd.Index, pd.Series, ...
15
+ # I went with Collection as false negatives seem better to me than false positives in this case
16
+ def __new__(self, points: MultiPoint | Collection[_PointLike] | None = None) -> Self: ...
17
+ def svg(self, scale_factor: float = 1.0, fill_color: str | None = None, opacity: float | None = None) -> str: ... # type: ignore[override]
18
+ # more precise base overrides
19
+ @property
20
+ def boundary(self) -> GeometryCollection: ... # empty geometry collection
@@ -0,0 +1,22 @@
1
+ from collections.abc import Collection
2
+ from typing_extensions import Self
3
+
4
+ from .base import BaseMultipartGeometry
5
+ from .multilinestring import MultiLineString
6
+ from .polygon import Polygon, _PolygonHolesLike, _PolygonShellLike
7
+
8
+ __all__ = ["MultiPolygon"]
9
+
10
+ class MultiPolygon(BaseMultipartGeometry[Polygon]):
11
+ def __new__(
12
+ self,
13
+ polygons: (
14
+ BaseMultipartGeometry
15
+ | Collection[Polygon | tuple[_PolygonShellLike] | tuple[_PolygonShellLike, _PolygonHolesLike] | None]
16
+ | None
17
+ ) = None,
18
+ ) -> Self: ...
19
+ def svg(self, scale_factor: float = 1.0, fill_color: str | None = None, opacity: float | None = None) -> str: ... # type: ignore[override]
20
+ # more precise base overrides
21
+ @property
22
+ def boundary(self) -> MultiLineString: ...
@@ -0,0 +1,39 @@
1
+ from collections.abc import Iterable
2
+ from typing import overload
3
+ from typing_extensions import Self, TypeAlias
4
+
5
+ from .._typing import ArrayLikeSeq
6
+ from .base import BaseGeometry
7
+ from .collection import GeometryCollection
8
+
9
+ __all__ = ["Point"]
10
+
11
+ _PointLike: TypeAlias = Point | Iterable[float] | ArrayLikeSeq[float]
12
+
13
+ class Point(BaseGeometry):
14
+ @overload # no args: empty point
15
+ def __new__(self) -> Self: ...
16
+ @overload # one arg: (x, y[, z]) tuple or a Point instance
17
+ def __new__(self, coords: _PointLike, /) -> Self: ...
18
+ @overload # two args: (x, y) tuple
19
+ def __new__(self, x: float, y: float, /) -> Self: ...
20
+ @overload # three args: (x, y, z) tuple
21
+ def __new__(self, x: float, y: float, z: float, /) -> Self: ...
22
+ @property
23
+ def x(self) -> float: ...
24
+ @property
25
+ def y(self) -> float: ...
26
+ @property
27
+ def z(self) -> float: ...
28
+ def svg(self, scale_factor: float = 1.0, fill_color: str | None = None, opacity: float | None = None) -> str: ... # type: ignore[override]
29
+ # more precise base overrides
30
+ @property
31
+ def boundary(self) -> GeometryCollection: ... # empty geometry collection
32
+ @property
33
+ def convex_hull(self) -> Point: ...
34
+ @property
35
+ def envelope(self) -> Point: ...
36
+ @property
37
+ def oriented_envelope(self) -> Point: ...
38
+ @property
39
+ def minimum_rotated_rectangle(self) -> Point: ...
@@ -0,0 +1,45 @@
1
+ from collections.abc import Collection
2
+ from typing import NoReturn, overload
3
+ from typing_extensions import Self, TypeAlias
4
+
5
+ from .base import BaseGeometry
6
+ from .linestring import LineString, _ConvertibleToLineString
7
+ from .multilinestring import MultiLineString
8
+
9
+ __all__ = ["orient", "Polygon", "LinearRing"]
10
+
11
+ _ConvertibleToLinearRing: TypeAlias = _ConvertibleToLineString # same alias but with better name for doc purposes
12
+ _PolygonShellLike: TypeAlias = Polygon | _ConvertibleToLinearRing | None
13
+ _PolygonHolesLike: TypeAlias = Collection[_ConvertibleToLinearRing | None] | None
14
+
15
+ class LinearRing(LineString):
16
+ def __new__(self, coordinates: _ConvertibleToLinearRing | None = None) -> Self: ...
17
+ @property
18
+ def is_ccw(self) -> bool: ...
19
+
20
+ class InteriorRingSequence:
21
+ def __init__(self, parent: Polygon) -> None: ...
22
+ def __iter__(self) -> Self: ...
23
+ def __next__(self) -> LinearRing: ...
24
+ def __len__(self) -> int: ...
25
+ @overload
26
+ def __getitem__(self, key: int) -> LinearRing: ...
27
+ @overload
28
+ def __getitem__(self, key: slice) -> list[LinearRing]: ...
29
+
30
+ class Polygon(BaseGeometry):
31
+ def __new__(self, shell: _PolygonShellLike = None, holes: _PolygonHolesLike = None) -> Self: ...
32
+ @property
33
+ def exterior(self) -> LinearRing: ...
34
+ @property
35
+ def interiors(self) -> list[LinearRing] | InteriorRingSequence: ...
36
+ @property
37
+ def coords(self) -> NoReturn: ...
38
+ def svg(self, scale_factor: float = 1.0, fill_color: str | None = None, opacity: float | None = None) -> str: ... # type: ignore[override]
39
+ @classmethod
40
+ def from_bounds(cls, xmin: float, ymin: float, xmax: float, ymax: float) -> Self: ...
41
+ # more precise base overrides
42
+ @property
43
+ def boundary(self) -> MultiLineString: ...
44
+
45
+ def orient(polygon: Polygon, sign: float = 1.0) -> Polygon: ...
@@ -0,0 +1,3 @@
1
+ geos_version_string: str
2
+ geos_version: tuple[int, int, int]
3
+ geos_capi_version: tuple[int, int, int]
@@ -0,0 +1,140 @@
1
+ from _typeshed import Incomplete
2
+ from typing import Literal, overload
3
+
4
+ import numpy as np
5
+ from numpy.typing import NDArray
6
+
7
+ from ._enum import ParamEnum
8
+ from ._ragged_array import from_ragged_array as from_ragged_array, to_ragged_array as to_ragged_array
9
+ from ._typing import ArrayLikeSeq, GeoArray, OptGeoArrayLikeSeq
10
+ from .geometry.base import BaseGeometry
11
+ from .lib import Geometry
12
+
13
+ __all__ = ["from_geojson", "from_ragged_array", "from_wkb", "from_wkt", "to_geojson", "to_ragged_array", "to_wkb", "to_wkt"]
14
+
15
+ # Mypy and stubtest aren't happy with the following definition and
16
+ # raise is a reserved keyword, so we cannot use the class syntax of enums
17
+ # DecodingErrorOptions = ParamEnum("DecodingErrorOptions", {"ignore": 0, "warn": 1, "raise": 2})
18
+ DecodingErrorOptions: Incomplete
19
+
20
+ class WKBFlavorOptions(ParamEnum):
21
+ extended = 1 # noqa: Y052
22
+ iso = 2 # noqa: Y052
23
+
24
+ @overload
25
+ def to_wkt(
26
+ geometry: None, rounding_precision: int = 6, trim: bool = True, output_dimension: int = 3, old_3d: bool = False, **kwargs
27
+ ) -> None: ...
28
+ @overload
29
+ def to_wkt(
30
+ geometry: Geometry, rounding_precision: int = 6, trim: bool = True, output_dimension: int = 3, old_3d: bool = False, **kwargs
31
+ ) -> str: ...
32
+ @overload
33
+ def to_wkt(
34
+ geometry: OptGeoArrayLikeSeq,
35
+ rounding_precision: int = 6,
36
+ trim: bool = True,
37
+ output_dimension: int = 3,
38
+ old_3d: bool = False,
39
+ **kwargs,
40
+ ) -> NDArray[np.str_]: ...
41
+ @overload
42
+ def to_wkb(
43
+ geometry: None,
44
+ hex: bool = False,
45
+ output_dimension: int = 3,
46
+ byte_order: int = -1,
47
+ include_srid: bool = False,
48
+ flavor: Literal["iso", "extended"] = "extended",
49
+ **kwargs,
50
+ ) -> None: ...
51
+ @overload
52
+ def to_wkb(
53
+ geometry: Geometry,
54
+ hex: Literal[False] = False,
55
+ output_dimension: int = 3,
56
+ byte_order: int = -1,
57
+ include_srid: bool = False,
58
+ flavor: Literal["iso", "extended"] = "extended",
59
+ **kwargs,
60
+ ) -> bytes: ...
61
+ @overload
62
+ def to_wkb(
63
+ geometry: Geometry,
64
+ hex: Literal[True],
65
+ output_dimension: int = 3,
66
+ byte_order: int = -1,
67
+ include_srid: bool = False,
68
+ flavor: Literal["iso", "extended"] = "extended",
69
+ **kwargs,
70
+ ) -> str: ...
71
+ @overload
72
+ def to_wkb(
73
+ geometry: Geometry,
74
+ hex: bool,
75
+ output_dimension: int = 3,
76
+ byte_order: int = -1,
77
+ include_srid: bool = False,
78
+ flavor: Literal["iso", "extended"] = "extended",
79
+ **kwargs,
80
+ ) -> bytes | str: ...
81
+ @overload
82
+ def to_wkb(
83
+ geometry: OptGeoArrayLikeSeq,
84
+ hex: Literal[False] = False,
85
+ output_dimension: int = 3,
86
+ byte_order: int = -1,
87
+ include_srid: bool = False,
88
+ flavor: Literal["iso", "extended"] = "extended",
89
+ **kwargs,
90
+ ) -> NDArray[np.bytes_]: ...
91
+ @overload
92
+ def to_wkb(
93
+ geometry: OptGeoArrayLikeSeq,
94
+ hex: Literal[True],
95
+ output_dimension: int = 3,
96
+ byte_order: int = -1,
97
+ include_srid: bool = False,
98
+ flavor: Literal["iso", "extended"] = "extended",
99
+ **kwargs,
100
+ ) -> NDArray[np.str_]: ...
101
+ @overload
102
+ def to_wkb(
103
+ geometry: OptGeoArrayLikeSeq,
104
+ hex: bool,
105
+ output_dimension: int = 3,
106
+ byte_order: int = -1,
107
+ include_srid: bool = False,
108
+ flavor: Literal["iso", "extended"] = "extended",
109
+ **kwargs,
110
+ ) -> NDArray[np.bytes_] | NDArray[np.str_]: ...
111
+ @overload
112
+ def to_geojson(geometry: None, indent: int | None = None, **kwargs) -> None: ...
113
+ @overload
114
+ def to_geojson(geometry: Geometry, indent: int | None = None, **kwargs) -> str: ...
115
+ @overload
116
+ def to_geojson(geometry: OptGeoArrayLikeSeq, indent: int | None = None, **kwargs) -> NDArray[np.str_]: ...
117
+ @overload
118
+ def from_wkt(geometry: None, on_invalid: Literal["raise", "warn", "ignore"] = "raise", **kwargs) -> None: ...
119
+ @overload
120
+ def from_wkt(geometry: str, on_invalid: Literal["raise", "warn", "ignore"] = "raise", **kwargs) -> BaseGeometry: ... # type: ignore[overload-overlap]
121
+ @overload
122
+ def from_wkt(
123
+ geometry: ArrayLikeSeq[str | None], on_invalid: Literal["raise", "warn", "ignore"] = "raise", **kwargs
124
+ ) -> GeoArray: ...
125
+ @overload
126
+ def from_wkb(geometry: None, on_invalid: Literal["raise", "warn", "ignore"] = "raise", **kwargs) -> None: ...
127
+ @overload
128
+ def from_wkb(geometry: str | bytes, on_invalid: Literal["raise", "warn", "ignore"] = "raise", **kwargs) -> BaseGeometry: ... # type: ignore[overload-overlap]
129
+ @overload
130
+ def from_wkb(
131
+ geometry: ArrayLikeSeq[str | bytes | None], on_invalid: Literal["raise", "warn", "ignore"] = "raise", **kwargs
132
+ ) -> GeoArray: ...
133
+ @overload
134
+ def from_geojson(geometry: None, on_invalid: Literal["raise", "warn", "ignore"] = "raise", **kwargs) -> None: ...
135
+ @overload
136
+ def from_geojson(geometry: str | bytes, on_invalid: Literal["raise", "warn", "ignore"] = "raise", **kwargs) -> BaseGeometry: ... # type: ignore[overload-overlap]
137
+ @overload
138
+ def from_geojson(
139
+ geometry: ArrayLikeSeq[str | bytes | None], on_invalid: Literal["raise", "warn", "ignore"] = "raise", **kwargs
140
+ ) -> GeoArray: ...
@@ -0,0 +1,167 @@
1
+ from typing import Literal, SupportsIndex, final, overload
2
+ from typing_extensions import Never
3
+
4
+ import numpy as np
5
+ from numpy.typing import NDArray
6
+
7
+ area: np.ufunc
8
+ boundary: np.ufunc
9
+ bounds: np.ufunc
10
+ box: np.ufunc
11
+ buffer: np.ufunc
12
+ build_area: np.ufunc
13
+ centroid: np.ufunc
14
+ clip_by_rect: np.ufunc
15
+ concave_hull: np.ufunc
16
+ contains: np.ufunc
17
+ contains_properly: np.ufunc
18
+ contains_xy: np.ufunc
19
+ convex_hull: np.ufunc
20
+ coverage_union: np.ufunc
21
+ covered_by: np.ufunc
22
+ covers: np.ufunc
23
+ create_collection: np.ufunc
24
+ crosses: np.ufunc
25
+ delaunay_triangles: np.ufunc
26
+ destroy_prepared: np.ufunc
27
+ difference: np.ufunc
28
+ difference_prec: np.ufunc
29
+ disjoint: np.ufunc
30
+ distance: np.ufunc
31
+ dwithin: np.ufunc
32
+ envelope: np.ufunc
33
+ equals: np.ufunc
34
+ equals_exact: np.ufunc
35
+ extract_unique_points: np.ufunc
36
+ force_2d: np.ufunc
37
+ force_3d: np.ufunc
38
+ frechet_distance: np.ufunc
39
+ frechet_distance_densify: np.ufunc
40
+ from_geojson: np.ufunc
41
+ from_wkb: np.ufunc
42
+ from_wkt: np.ufunc
43
+ get_coordinate_dimension: np.ufunc
44
+ get_dimensions: np.ufunc
45
+ get_exterior_ring: np.ufunc
46
+ get_geometry: np.ufunc
47
+ get_interior_ring: np.ufunc
48
+ get_num_coordinates: np.ufunc
49
+ get_num_geometries: np.ufunc
50
+ get_num_interior_rings: np.ufunc
51
+ get_num_points: np.ufunc
52
+ get_point: np.ufunc
53
+ get_precision: np.ufunc
54
+ get_srid: np.ufunc
55
+ get_type_id: np.ufunc
56
+ get_x: np.ufunc
57
+ get_y: np.ufunc
58
+ get_z: np.ufunc
59
+ has_z: np.ufunc
60
+ hausdorff_distance: np.ufunc
61
+ hausdorff_distance_densify: np.ufunc
62
+ intersection: np.ufunc
63
+ intersection_all: np.ufunc
64
+ intersection_prec: np.ufunc
65
+ intersects: np.ufunc
66
+ intersects_xy: np.ufunc
67
+ is_ccw: np.ufunc
68
+ is_closed: np.ufunc
69
+ is_empty: np.ufunc
70
+ is_geometry: np.ufunc
71
+ is_missing: np.ufunc
72
+ is_prepared: np.ufunc
73
+ is_ring: np.ufunc
74
+ is_simple: np.ufunc
75
+ is_valid: np.ufunc
76
+ is_valid_input: np.ufunc
77
+ is_valid_reason: np.ufunc
78
+ length: np.ufunc
79
+ line_interpolate_point: np.ufunc
80
+ line_interpolate_point_normalized: np.ufunc
81
+ line_locate_point: np.ufunc
82
+ line_locate_point_normalized: np.ufunc
83
+ line_merge: np.ufunc
84
+ line_merge_directed: np.ufunc
85
+ linearrings: np.ufunc
86
+ linestrings: np.ufunc
87
+ make_valid: np.ufunc
88
+ minimum_bounding_circle: np.ufunc
89
+ minimum_bounding_radius: np.ufunc
90
+ minimum_clearance: np.ufunc
91
+ node: np.ufunc
92
+ normalize: np.ufunc
93
+ offset_curve: np.ufunc
94
+ oriented_envelope: np.ufunc
95
+ overlaps: np.ufunc
96
+ point_on_surface: np.ufunc
97
+ points: np.ufunc
98
+ polygonize: np.ufunc
99
+ polygonize_full: np.ufunc
100
+ polygons: np.ufunc
101
+ prepare: np.ufunc
102
+ relate: np.ufunc
103
+ relate_pattern: np.ufunc
104
+ remove_repeated_points: np.ufunc
105
+ reverse: np.ufunc
106
+ segmentize: np.ufunc
107
+ set_precision: np.ufunc
108
+ set_srid: np.ufunc
109
+ shared_paths: np.ufunc
110
+ shortest_line: np.ufunc
111
+ simplify: np.ufunc
112
+ simplify_preserve_topology: np.ufunc
113
+ snap: np.ufunc
114
+ symmetric_difference: np.ufunc
115
+ symmetric_difference_all: np.ufunc
116
+ symmetric_difference_prec: np.ufunc
117
+ to_geojson: np.ufunc
118
+ to_wkb: np.ufunc
119
+ to_wkt: np.ufunc
120
+ touches: np.ufunc
121
+ unary_union: np.ufunc
122
+ unary_union_prec: np.ufunc
123
+ union: np.ufunc
124
+ union_prec: np.ufunc
125
+ voronoi_polygons: np.ufunc
126
+ within: np.ufunc
127
+ geos_capi_version: tuple[int, int, int]
128
+ geos_capi_version_string: str
129
+ geos_version: tuple[int, int, int]
130
+ geos_version_string: str
131
+ registry: list[type[Geometry]]
132
+
133
+ class Geometry:
134
+ def __hash__(self) -> int: ...
135
+ def __eq__(self, other: object) -> bool: ...
136
+ def __ne__(self, other: object) -> bool: ...
137
+ def __ge__(self, other: Never) -> bool: ...
138
+ def __gt__(self, other: Never) -> bool: ...
139
+ def __le__(self, other: Never) -> bool: ...
140
+ def __lt__(self, other: Never) -> bool: ...
141
+
142
+ @final
143
+ class STRtree:
144
+ count: int
145
+ def __init__(self, geoms: NDArray[np.object_], node_capacity: SupportsIndex, /, **kwargs: object) -> None: ...
146
+ def dwithin(self, geoms: NDArray[np.object_], distances: NDArray[np.float64], /) -> NDArray[np.int64]: ...
147
+ def nearest(self, geoms: NDArray[np.object_], /) -> NDArray[np.int64]: ...
148
+ def query(self, geoms: NDArray[np.object_], predicate: SupportsIndex, /) -> NDArray[np.int64]: ...
149
+ def query_nearest(
150
+ self, geoms: NDArray[np.object_], max_distance: float, exclusive: SupportsIndex, all_matches: SupportsIndex, /
151
+ ) -> tuple[NDArray[np.int64], NDArray[np.float64]]: ...
152
+
153
+ class ShapelyError(Exception): ...
154
+ class GEOSException(ShapelyError): ...
155
+
156
+ def count_coordinates(geoms: NDArray[np.object_], /) -> int: ...
157
+ @overload
158
+ def get_coordinates(arr: NDArray[np.object_], include_z: bool, return_index: Literal[False], /) -> NDArray[np.float64]: ...
159
+ @overload
160
+ def get_coordinates(
161
+ arr: NDArray[np.object_], include_z: bool, return_index: Literal[True], /
162
+ ) -> tuple[NDArray[np.float64], NDArray[np.int64]]: ...
163
+ @overload
164
+ def get_coordinates(
165
+ arr: NDArray[np.object_], include_z: bool, return_index: bool, /
166
+ ) -> NDArray[np.float64] | tuple[NDArray[np.float64], NDArray[np.int64]]: ...
167
+ def set_coordinates(geoms: NDArray[np.object_], coords: NDArray[np.float64], /) -> NDArray[np.object_]: ...
@@ -0,0 +1,69 @@
1
+ from typing import overload
2
+
3
+ import numpy as np
4
+ from numpy.typing import NDArray
5
+
6
+ from ._typing import ArrayLike, ArrayLikeSeq, GeoArray, OptGeoArrayLike, OptGeoArrayLikeSeq
7
+ from .geometry import GeometryCollection, LineString, MultiLineString, Point
8
+ from .lib import Geometry
9
+
10
+ __all__ = ["line_interpolate_point", "line_locate_point", "line_merge", "shared_paths", "shortest_line"]
11
+
12
+ @overload
13
+ def line_interpolate_point(line: None, distance: float, normalized: bool = False, **kwargs) -> None: ...
14
+ @overload
15
+ def line_interpolate_point(
16
+ line: None, distance: ArrayLikeSeq[float], normalized: bool = False, **kwargs
17
+ ) -> NDArray[np.object_]: ... # Array of None
18
+ @overload
19
+ def line_interpolate_point(
20
+ line: LineString | MultiLineString | GeometryCollection, distance: float, normalized: bool = False, **kwargs
21
+ ) -> Point: ...
22
+ @overload
23
+ def line_interpolate_point(
24
+ line: LineString | MultiLineString | GeometryCollection, distance: ArrayLikeSeq[float], normalized: bool = False, **kwargs
25
+ ) -> GeoArray: ...
26
+ @overload
27
+ def line_interpolate_point(
28
+ line: OptGeoArrayLikeSeq, distance: ArrayLike[float], normalized: bool = False, **kwargs
29
+ ) -> GeoArray: ...
30
+ @overload
31
+ def line_locate_point(
32
+ line: LineString | MultiLineString | GeometryCollection | None, other: Point | None, normalized: bool = False, **kwargs
33
+ ) -> float: ...
34
+ @overload
35
+ def line_locate_point(
36
+ line: LineString | MultiLineString | GeometryCollection | None, other: OptGeoArrayLikeSeq, normalized: bool = False, **kwargs
37
+ ) -> NDArray[np.float64]: ...
38
+ @overload
39
+ def line_locate_point(
40
+ line: OptGeoArrayLikeSeq, other: OptGeoArrayLike, normalized: bool = False, **kwargs
41
+ ) -> NDArray[np.float64]: ...
42
+ @overload
43
+ def line_merge(line: None, directed: bool = False, **kwargs) -> None: ...
44
+ @overload
45
+ def line_merge(line: Geometry, directed: bool = False, **kwargs) -> LineString | MultiLineString | GeometryCollection: ...
46
+ @overload
47
+ def line_merge(line: OptGeoArrayLikeSeq, directed: bool = False, **kwargs) -> GeoArray: ...
48
+ @overload
49
+ def shared_paths(a: LineString | MultiLineString | None, b: None, **kwargs) -> None: ...
50
+ @overload
51
+ def shared_paths(a: None, b: LineString | MultiLineString | None, **kwargs) -> None: ...
52
+ @overload
53
+ def shared_paths(
54
+ a: LineString | MultiLineString, b: LineString | MultiLineString, **kwargs
55
+ ) -> GeometryCollection[MultiLineString]: ...
56
+ @overload
57
+ def shared_paths(a: LineString | MultiLineString | None, b: OptGeoArrayLikeSeq, **kwargs) -> GeoArray: ...
58
+ @overload
59
+ def shared_paths(a: OptGeoArrayLikeSeq, b: OptGeoArrayLike, **kwargs) -> GeoArray: ...
60
+ @overload
61
+ def shortest_line(a: Geometry | None, b: None, **kwargs) -> None: ...
62
+ @overload
63
+ def shortest_line(a: None, b: Geometry | None, **kwargs) -> None: ...
64
+ @overload
65
+ def shortest_line(a: Geometry, b: Geometry, **kwargs) -> LineString: ...
66
+ @overload
67
+ def shortest_line(a: Geometry | None, b: OptGeoArrayLikeSeq, **kwargs) -> GeoArray: ...
68
+ @overload
69
+ def shortest_line(a: OptGeoArrayLikeSeq, b: OptGeoArrayLike, **kwargs) -> GeoArray: ...
@@ -0,0 +1,68 @@
1
+ from typing import overload
2
+
3
+ import numpy as np
4
+ from numpy.typing import NDArray
5
+
6
+ from ._typing import ArrayLike, ArrayLikeSeq, OptGeoArrayLike, OptGeoArrayLikeSeq
7
+ from .lib import Geometry
8
+
9
+ __all__ = [
10
+ "area",
11
+ "distance",
12
+ "bounds",
13
+ "total_bounds",
14
+ "length",
15
+ "hausdorff_distance",
16
+ "frechet_distance",
17
+ "minimum_clearance",
18
+ "minimum_bounding_radius",
19
+ ]
20
+
21
+ @overload
22
+ def area(geometry: Geometry | None, **kwargs) -> float: ...
23
+ @overload
24
+ def area(geometry: OptGeoArrayLikeSeq, **kwargs) -> NDArray[np.float64]: ...
25
+ @overload
26
+ def distance(a: Geometry | None, b: Geometry | None, **kwargs) -> float: ...
27
+ @overload
28
+ def distance(a: OptGeoArrayLikeSeq, b: OptGeoArrayLike, **kwargs) -> NDArray[np.float64]: ...
29
+ @overload
30
+ def distance(a: OptGeoArrayLike, b: OptGeoArrayLikeSeq, **kwargs) -> NDArray[np.float64]: ...
31
+ def bounds(geometry: OptGeoArrayLike, **kwargs) -> NDArray[np.float64]: ...
32
+ def total_bounds(geometry: OptGeoArrayLike, **kwargs) -> NDArray[np.float64]: ...
33
+ @overload
34
+ def length(geometry: Geometry | None, **kwargs) -> float: ...
35
+ @overload
36
+ def length(geometry: OptGeoArrayLikeSeq, **kwargs) -> NDArray[np.float64]: ...
37
+ @overload
38
+ def hausdorff_distance(a: Geometry | None, b: Geometry | None, densify: float | None = None, **kwargs) -> float: ...
39
+ @overload
40
+ def hausdorff_distance(a: OptGeoArrayLike, b: OptGeoArrayLike, densify: ArrayLikeSeq[float], **kwargs) -> NDArray[np.float64]: ...
41
+ @overload
42
+ def hausdorff_distance(
43
+ a: OptGeoArrayLikeSeq, b: OptGeoArrayLike, densify: ArrayLike[float] | None = None, **kwargs
44
+ ) -> NDArray[np.float64]: ...
45
+ @overload
46
+ def hausdorff_distance(
47
+ a: OptGeoArrayLike, b: OptGeoArrayLikeSeq, densify: ArrayLike[float] | None = None, **kwargs
48
+ ) -> NDArray[np.float64]: ...
49
+ @overload
50
+ def frechet_distance(a: Geometry | None, b: Geometry | None, densify: float | None = None, **kwargs) -> float: ...
51
+ @overload
52
+ def frechet_distance(a: OptGeoArrayLike, b: OptGeoArrayLike, densify: ArrayLikeSeq[float], **kwargs) -> NDArray[np.float64]: ...
53
+ @overload
54
+ def frechet_distance(
55
+ a: OptGeoArrayLikeSeq, b: OptGeoArrayLike, densify: ArrayLike[float] | None = None, **kwargs
56
+ ) -> NDArray[np.float64]: ...
57
+ @overload
58
+ def frechet_distance(
59
+ a: OptGeoArrayLike, b: OptGeoArrayLikeSeq, densify: ArrayLike[float] | None = None, **kwargs
60
+ ) -> NDArray[np.float64]: ...
61
+ @overload
62
+ def minimum_clearance(geometry: Geometry | None, **kwargs) -> float: ...
63
+ @overload
64
+ def minimum_clearance(geometry: OptGeoArrayLikeSeq, **kwargs) -> NDArray[np.float64]: ...
65
+ @overload
66
+ def minimum_bounding_radius(geometry: Geometry | None, **kwargs) -> float: ...
67
+ @overload
68
+ def minimum_bounding_radius(geometry: OptGeoArrayLikeSeq, **kwargs) -> NDArray[np.float64]: ...
@@ -0,0 +1,106 @@
1
+ from collections.abc import Callable, Iterable
2
+ from typing import Any, Literal, overload
3
+ from typing_extensions import deprecated
4
+
5
+ from ._typing import GeoT, OptGeoArrayLike, SupportsGeoInterface
6
+ from .algorithms.polylabel import polylabel as polylabel
7
+ from .geometry import GeometryCollection, LineString, MultiLineString, Point, Polygon
8
+ from .geometry.base import BaseGeometry, BaseMultipartGeometry, GeometrySequence
9
+ from .geometry.linestring import _ConvertibleToLineString
10
+ from .lib import Geometry
11
+
12
+ __all__ = [
13
+ "cascaded_union",
14
+ "linemerge",
15
+ "operator",
16
+ "polygonize",
17
+ "polygonize_full",
18
+ "transform",
19
+ "unary_union",
20
+ "triangulate",
21
+ "voronoi_diagram",
22
+ "split",
23
+ "nearest_points",
24
+ "validate",
25
+ "snap",
26
+ "shared_paths",
27
+ "clip_by_rect",
28
+ "orient",
29
+ "substring",
30
+ ]
31
+
32
+ class CollectionOperator:
33
+ @overload
34
+ def shapeup(self, ob: GeoT) -> GeoT: ... # type: ignore[overload-overlap]
35
+ @overload
36
+ def shapeup(self, ob: dict[str, Any] | SupportsGeoInterface) -> BaseGeometry: ... # type: ignore[overload-overlap]
37
+ @overload
38
+ def shapeup(self, ob: _ConvertibleToLineString) -> LineString: ...
39
+ def polygonize(
40
+ self, lines: OptGeoArrayLike | Iterable[_ConvertibleToLineString | None]
41
+ ) -> GeometrySequence[GeometryCollection[Polygon]]: ...
42
+ def polygonize_full(
43
+ self, lines: OptGeoArrayLike | Iterable[_ConvertibleToLineString | None]
44
+ ) -> tuple[
45
+ GeometryCollection[Polygon], GeometryCollection[LineString], GeometryCollection[LineString], GeometryCollection[Polygon]
46
+ ]: ...
47
+ def linemerge(
48
+ self, lines: MultiLineString | BaseMultipartGeometry | Iterable[_ConvertibleToLineString], directed: bool = False
49
+ ) -> LineString | MultiLineString: ...
50
+ @deprecated("The `cascaded_union()` function is deprecated. Use `unary_union()` instead.")
51
+ def cascaded_union(self, geoms: OptGeoArrayLike) -> BaseGeometry: ...
52
+ def unary_union(self, geoms: OptGeoArrayLike) -> BaseGeometry: ...
53
+
54
+ operator: CollectionOperator
55
+ polygonize = operator.polygonize
56
+ polygonize_full = operator.polygonize_full
57
+ linemerge = operator.linemerge
58
+ unary_union = operator.unary_union
59
+
60
+ # This is also an alias to operator method but we want to mark it as deprecated
61
+ @deprecated("The `cascaded_union()` function is deprecated. Use `unary_union()` instead.")
62
+ def cascaded_union(geoms: OptGeoArrayLike) -> BaseGeometry: ...
63
+ @overload # edges false
64
+ def triangulate(geom: Geometry, tolerance: float = 0.0, edges: Literal[False] = False) -> list[Polygon]: ...
65
+ @overload # edges true (keyword)
66
+ def triangulate(geom: Geometry, tolerance: float = 0.0, *, edges: Literal[True]) -> list[LineString]: ...
67
+ @overload # edges true (positional)
68
+ def triangulate(geom: Geometry, tolerance: float, edges: Literal[True]) -> list[LineString]: ...
69
+ @overload # fallback
70
+ def triangulate(geom: Geometry, tolerance: float = 0.0, edges: bool = False) -> list[Polygon] | list[LineString]: ...
71
+ @overload
72
+ def voronoi_diagram(
73
+ geom: Geometry, envelope: Geometry | None = None, tolerance: float = 0.0, edges: Literal[False] = False
74
+ ) -> GeometryCollection[Polygon]: ...
75
+ @overload
76
+ def voronoi_diagram(
77
+ geom: Geometry, envelope: Geometry | None, tolerance: float, edges: Literal[True]
78
+ ) -> GeometryCollection[LineString | MultiLineString]: ...
79
+ @overload
80
+ def voronoi_diagram(
81
+ geom: Geometry, envelope: Geometry | None = None, tolerance: float = 0.0, *, edges: Literal[True]
82
+ ) -> GeometryCollection[LineString | MultiLineString]: ...
83
+ @overload
84
+ def voronoi_diagram(
85
+ geom: Geometry, envelope: Geometry | None = None, tolerance: float = 0.0, edges: bool = False
86
+ ) -> GeometryCollection[Polygon | LineString | MultiLineString]: ...
87
+ @overload
88
+ def validate(geom: None) -> None: ...
89
+ @overload
90
+ def validate(geom: Geometry) -> str: ...
91
+ @overload
92
+ def validate(geom: Geometry | None) -> str | None: ...
93
+ def transform(func: Callable[[float, float, float | None], tuple[float, ...]], geom: GeoT) -> GeoT: ...
94
+ def nearest_points(g1: Geometry, g2: Geometry) -> tuple[Point, Point]: ...
95
+ def snap(g1: GeoT, g2: Geometry, tolerance: float) -> GeoT: ...
96
+ def shared_paths(g1: LineString, g2: LineString) -> GeometryCollection[MultiLineString]: ...
97
+
98
+ class SplitOp:
99
+ @staticmethod
100
+ def split(geom: Geometry, splitter: Geometry) -> GeometryCollection: ...
101
+
102
+ split = SplitOp.split
103
+
104
+ def substring(geom: LineString, start_dist: float, end_dist: float, normalized: bool = False) -> Point | LineString: ...
105
+ def clip_by_rect(geom: Geometry, xmin: float, ymin: float, xmax: float, ymax: float) -> BaseGeometry: ...
106
+ def orient(geom: GeoT, sign: float = 1.0) -> GeoT: ...