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,451 @@
1
+ from _typeshed import Incomplete, SupportsRead
2
+ from collections.abc import Callable, Iterable, Sequence
3
+ from typing import Any, Literal, NoReturn, Protocol
4
+ from typing_extensions import Self, TypeAlias
5
+
6
+ from reportlab.lib.colors import Color
7
+ from reportlab.lib.styles import ListStyle, ParagraphStyle, PropertySet
8
+ from reportlab.pdfgen.canvas import Canvas
9
+ from reportlab.pdfgen.textobject import _Color
10
+ from reportlab.platypus.paragraph import Paragraph
11
+
12
+ __all__ = [
13
+ "AnchorFlowable",
14
+ "BalancedColumns",
15
+ "BulletDrawer",
16
+ "CallerMacro",
17
+ "CondPageBreak",
18
+ "DDIndenter",
19
+ "DocAssert",
20
+ "DocAssign",
21
+ "DocExec",
22
+ "DocIf",
23
+ "DocPara",
24
+ "DocWhile",
25
+ "FailOnDraw",
26
+ "FailOnWrap",
27
+ "Flowable",
28
+ "FrameBG",
29
+ "FrameSplitter",
30
+ "HRFlowable",
31
+ "Image",
32
+ "ImageAndFlowables",
33
+ "KeepInFrame",
34
+ "KeepTogether",
35
+ "LIIndenter",
36
+ "ListFlowable",
37
+ "ListItem",
38
+ "Macro",
39
+ "NullDraw",
40
+ "PTOContainer",
41
+ "PageBreak",
42
+ "PageBreakIfNotEmpty",
43
+ "ParagraphAndImage",
44
+ "Preformatted",
45
+ "SetPageTopFlowables",
46
+ "SetTopFlowables",
47
+ "SlowPageBreak",
48
+ "Spacer",
49
+ "TopPadder",
50
+ "TraceInfo",
51
+ "UseUpSpace",
52
+ "XBox",
53
+ "splitLine",
54
+ "splitLines",
55
+ ]
56
+
57
+ _HAlignment: TypeAlias = Literal["LEFT", "CENTER", "CENTRE", "RIGHT", 0, 1, 2]
58
+ _VAlignment: TypeAlias = Literal["BOTTOM", "MIDDLE", "TOP"]
59
+ # FIXME: Consider using Sequence[Flowable] for covariance on list, even though
60
+ # that will give false negatives for non list or tuple sequences, it also
61
+ # would reduce type safety, since flowables don't copy the list
62
+ _FlowableSublist: TypeAlias = Flowable | list[Flowable] | tuple[Flowable, ...]
63
+ # NOTE: Technically can only be list or tuple, but would be annoying for variance
64
+ _NestedFlowable: TypeAlias = Flowable | Sequence[_NestedFlowable]
65
+
66
+ class _StyledFlowableFactory(Protocol):
67
+ # NOTE: We leave style at Any so people can specify a specifc property set
68
+ def __call__(self, value: str, /, *, style: Any) -> Flowable: ...
69
+
70
+ class TraceInfo:
71
+ srcFile: str
72
+ startLineNo: int
73
+ startLinePos: int
74
+ endLineNo: int
75
+ endLinePos: int
76
+ def __init__(self) -> None: ...
77
+
78
+ class Flowable:
79
+ width: float
80
+ height: float
81
+ wrapped: int
82
+ hAlign: _HAlignment
83
+ vAlign: _VAlignment
84
+ encoding: str | None
85
+ # NOTE: this only exists during drawing, splitting and wrapping
86
+ canv: Canvas
87
+ # NOTE: The following attributes will not exist on all flowables, but
88
+ # they need to be settable on individual instances
89
+ keepWithNext: Incomplete
90
+ spaceAfter: float
91
+ spaceBefore: float
92
+ def __init__(self) -> None: ...
93
+ # NOTE: We pretend the optional internal _sW argument does not exist
94
+ # since not all flowables support it and we'd have to deal with
95
+ # a bunch of LSP errors. Conversely we will get type errors in
96
+ # subclasses that rely on the argument existing when called through
97
+ # super() inside their own implementation, so we can't really
98
+ # make everyone happy here, sigh...
99
+ def drawOn(self, canvas: Canvas, x: float, y: float) -> None: ...
100
+ def wrapOn(self, canv: Canvas, aW: float, aH: float) -> tuple[float, float]: ...
101
+ def wrap(self, aW: float, aH: float, /) -> tuple[float, float]: ...
102
+ def minWidth(self) -> float: ...
103
+ def splitOn(self, canv: Canvas, aW: float, aH: float) -> list[Flowable]: ...
104
+ def split(self, aW: float, aH: float, /) -> list[Flowable]: ...
105
+ def getKeepWithNext(self): ...
106
+ def getSpaceAfter(self) -> float: ...
107
+ def getSpaceBefore(self) -> float: ...
108
+ def isIndexing(self) -> int: ...
109
+ def identity(self, maxLen: int | None = None) -> str: ...
110
+
111
+ class XBox(Flowable):
112
+ text: str
113
+ def __init__(self, width: float, height: float, text: str = "A Box") -> None: ...
114
+ def draw(self) -> None: ...
115
+
116
+ def splitLines(lines, maximum_length, split_characters, new_line_characters): ...
117
+ def splitLine(line_to_split, lines_splitted, maximum_length, split_characters, new_line_characters) -> None: ...
118
+
119
+ class Preformatted(Flowable):
120
+ style: ParagraphStyle
121
+ bulletText: str | None
122
+ lines: list[str]
123
+ def __init__(
124
+ self,
125
+ text: str,
126
+ # NOTE: Technically has to be a ParagraphStyle, but that would
127
+ # conflict with stylesheet["Style"] usage
128
+ style: PropertySet,
129
+ bulletText: str | None = None,
130
+ dedent: int = 0,
131
+ maxLineLength: int | None = None,
132
+ splitChars: str | None = None,
133
+ newLineChars: str = "",
134
+ ) -> None: ...
135
+ def draw(self) -> None: ...
136
+
137
+ class Image(Flowable):
138
+ filename: str
139
+ # these are lazy, but __getattr__ ensures the image gets loaded
140
+ # as soon as these attributes are accessed
141
+ imageWidth: int
142
+ imageHeight: int
143
+ drawWidth: float
144
+ drawHeight: float
145
+ def __init__(
146
+ self,
147
+ # TODO: I think this might also accept a PIL.Image and other
148
+ # kinds of path represenations, should be kept in sync
149
+ # with reportlab.lib.utils.ImageReader, except for the
150
+ # potential PIL.Image shortcut
151
+ filename: str | SupportsRead[bytes] | Incomplete,
152
+ width: float | None = None,
153
+ height: float | None = None,
154
+ kind: str = "direct",
155
+ mask: str = "auto",
156
+ lazy: int = 1,
157
+ hAlign: _HAlignment = "CENTER",
158
+ useDPI: bool = False,
159
+ ) -> None: ...
160
+ def draw(self) -> None: ...
161
+
162
+ class NullDraw(Flowable):
163
+ def draw(self) -> None: ...
164
+
165
+ class Spacer(NullDraw):
166
+ # NOTE: This may actually be a bug, it seems likely that Spacer is meant
167
+ # to set spaceBefore in the isGlue case.
168
+ spacebefore: float
169
+ def __init__(self, width: float, height: float, isGlue: bool = False) -> None: ...
170
+
171
+ class UseUpSpace(NullDraw): ...
172
+
173
+ class PageBreak(UseUpSpace):
174
+ locChanger: int
175
+ nextTemplate: str | None
176
+ def __init__(self, nextTemplate: str | None = None) -> None: ...
177
+
178
+ class SlowPageBreak(PageBreak): ...
179
+ class PageBreakIfNotEmpty(PageBreak): ...
180
+
181
+ class CondPageBreak(Spacer):
182
+ locChanger: int
183
+ def __init__(self, height: float) -> None: ...
184
+
185
+ class _ContainerSpace:
186
+ def getSpaceBefore(self) -> float: ...
187
+ def getSpaceAfter(self) -> float: ...
188
+
189
+ class KeepTogether(_ContainerSpace, Flowable):
190
+ splitAtTop: bool
191
+ # TODO: Consider using Sequence[Flowable] for covariance, even if reportlab
192
+ # only supports list/tuple
193
+ def __init__(self, flowables: _FlowableSublist | None, maxHeight: Incomplete | None = None) -> None: ...
194
+
195
+ class KeepTogetherSplitAtTop(KeepTogether):
196
+ splitAtTop: bool
197
+
198
+ class Macro(Flowable):
199
+ command: str
200
+ def __init__(self, command: str) -> None: ...
201
+ def draw(self) -> None: ...
202
+
203
+ class CallerMacro(Flowable):
204
+ def __init__(
205
+ self,
206
+ drawCallable: Callable[[CallerMacro, float, float], object] | None = None,
207
+ wrapCallable: Callable[[CallerMacro, float, float], object] | None = None,
208
+ ) -> None: ...
209
+ def draw(self) -> None: ...
210
+
211
+ class ParagraphAndImage(Flowable):
212
+ P: Paragraph
213
+ I: Image
214
+ xpad: float
215
+ ypad: float
216
+ def __init__(self, P: Paragraph, I: Image, xpad: float = 3, ypad: float = 3, side: str = "right") -> None: ...
217
+ def draw(self) -> None: ...
218
+
219
+ class FailOnWrap(NullDraw):
220
+ def wrap(self, aW: float, aH: float, /) -> NoReturn: ...
221
+
222
+ class FailOnDraw(Flowable):
223
+ def draw(self) -> NoReturn: ...
224
+
225
+ class HRFlowable(Flowable):
226
+ width: float | str # type: ignore[assignment]
227
+ lineWidth: float
228
+ lineCap: str
229
+ color: _Color
230
+ dash: Incomplete | None
231
+ def __init__(
232
+ self,
233
+ width: float | str = "80%",
234
+ thickness: float = 1,
235
+ lineCap: str = "round",
236
+ color: _Color = ...,
237
+ spaceBefore: float = 1,
238
+ spaceAfter: float = 1,
239
+ hAlign: _HAlignment = "CENTER",
240
+ vAlign: _VAlignment = "BOTTOM",
241
+ dash: Incomplete | None = None,
242
+ ) -> None: ...
243
+ def draw(self) -> None: ...
244
+
245
+ class _Container(_ContainerSpace):
246
+ def drawOn(self, canv: Canvas, x: float, y: float) -> None: ...
247
+ def copyContent(self, content: _FlowableSublist | None = None) -> None: ...
248
+
249
+ class PTOContainer(_Container, Flowable):
250
+ def __init__(
251
+ self, content: _FlowableSublist | None, trailer: _FlowableSublist | None = None, header: _FlowableSublist | None = None
252
+ ) -> None: ...
253
+
254
+ class KeepInFrame(_Container, Flowable):
255
+ name: str
256
+ maxWidth: float
257
+ maxHeight: float
258
+ mode: Literal["error", "continue", "shrink", "truncate"]
259
+ mergespace: Incomplete | None
260
+ fakeWidth: bool | None
261
+ def __init__(
262
+ self,
263
+ maxWidth: float,
264
+ maxHeight: float,
265
+ content: list[Flowable] = [],
266
+ mergeSpace: Incomplete | None = 1,
267
+ mode: Literal["error", "continue", "shrink", "truncate"] = "shrink",
268
+ name: str = "",
269
+ hAlign: str = "LEFT",
270
+ vAlign: str = "BOTTOM",
271
+ fakeWidth: bool | None = None,
272
+ ) -> None: ...
273
+
274
+ class _FindSplitterMixin: ...
275
+
276
+ class ImageAndFlowables(_Container, _FindSplitterMixin, Flowable):
277
+ imageHref: str | None
278
+ def __init__(
279
+ self,
280
+ I: Image,
281
+ F: _FlowableSublist | None,
282
+ imageLeftPadding: float = 0,
283
+ imageRightPadding: float = 3,
284
+ imageTopPadding: float = 0,
285
+ imageBottomPadding: float = 3,
286
+ imageSide: str = "right",
287
+ imageHref: str | None = None,
288
+ ) -> None: ...
289
+ def deepcopy(self) -> Self: ...
290
+
291
+ class BalancedColumns(_FindSplitterMixin, NullDraw):
292
+ name: str
293
+ showBoundary: Incomplete | None
294
+ endSlack: float
295
+ def __init__(
296
+ self,
297
+ F: _FlowableSublist | None,
298
+ nCols: int = 2,
299
+ needed: float = 72,
300
+ spaceBefore: float = 0,
301
+ spaceAfter: float = 0,
302
+ showBoundary: Incomplete | None = None,
303
+ leftPadding: float | None = None,
304
+ innerPadding: float | None = None,
305
+ rightPadding: float | None = None,
306
+ topPadding: float | None = None,
307
+ bottomPadding: float | None = None,
308
+ name: str = "",
309
+ endSlack: float = 0.1,
310
+ boxStrokeColor: Color | None = None,
311
+ boxStrokeWidth: float = 0,
312
+ boxFillColor: Color | None = None,
313
+ boxMargin: tuple[int, int, int, int] | tuple[int, int, int] | tuple[int, int] | tuple[int] | None = None,
314
+ vLinesStrokeColor: Color | None = None,
315
+ vLinesStrokeWidth: float | None = None,
316
+ ) -> None: ...
317
+
318
+ class AnchorFlowable(Spacer):
319
+ def __init__(self, name: str) -> None: ...
320
+
321
+ class FrameBG(AnchorFlowable):
322
+ start: bool
323
+ left: float
324
+ right: float
325
+ color: Color
326
+ strokeWidth: float
327
+ strokeColor: Color
328
+ strokeDashArray: list[float] | tuple[float, ...] | None
329
+ def __init__(
330
+ self,
331
+ color: Color | None = None,
332
+ left: float | str = 0,
333
+ right: float | str = 0,
334
+ start: bool = True,
335
+ strokeWidth: float | None = None,
336
+ strokeColor: Color | None = None,
337
+ strokeDashArray: list[float] | tuple[float, ...] | None = None,
338
+ ) -> None: ...
339
+
340
+ class FrameSplitter(NullDraw):
341
+ nextTemplate: str
342
+ nextFrames: list[str]
343
+ gap: float
344
+ required: float
345
+ adjustHeight: bool
346
+ def __init__(
347
+ self,
348
+ nextTemplate: str,
349
+ nextFrames: list[str] | None = [],
350
+ gap: float = 10,
351
+ required: float = 72,
352
+ adjustHeight: bool = True,
353
+ ) -> None: ...
354
+
355
+ class BulletDrawer:
356
+ value: str
357
+ def __init__(
358
+ self,
359
+ value: str = "0",
360
+ bulletAlign: str = "left",
361
+ bulletType: str = "1",
362
+ bulletColor: str = "black",
363
+ bulletFontName: str = "Helvetica",
364
+ bulletFontSize: int = 12,
365
+ bulletOffsetY: int = 0,
366
+ bulletDedent: int = 0,
367
+ bulletDir: str = "ltr",
368
+ bulletFormat: Incomplete | None = None,
369
+ ) -> None: ...
370
+ def drawOn(self, indenter: DDIndenter, canv: Canvas, x: float, y: float) -> None: ...
371
+
372
+ class DDIndenter(Flowable):
373
+ def __init__(self, flowable: Flowable, leftIndent: float = 0, rightIndent: float = 0) -> None: ...
374
+
375
+ class LIIndenter(DDIndenter):
376
+ def __init__(
377
+ self,
378
+ flowable: Flowable,
379
+ leftIndent: float = 0,
380
+ rightIndent: float = 0,
381
+ bullet: Incomplete | None = None,
382
+ spaceBefore: float | None = None,
383
+ spaceAfter: float | None = None,
384
+ ) -> None: ...
385
+
386
+ class ListItem:
387
+ # NOTE: style has to be a ListStyle, but this will be annoying with sheet["ul"]
388
+ # TODO: Use Unpack for kwds with the ListStyle properties + value/spaceBefore/spaceAfter
389
+ def __init__(self, flowables: _FlowableSublist, style: PropertySet | None = None, **kwds) -> None: ...
390
+
391
+ class ListFlowable(_Container, Flowable):
392
+ style: ListStyle
393
+ # NOTE: style has to be a ListStyle, but this will be annoying with sheet["ul"]
394
+ # TODO: Use Unpack for kwds with the ListStyle properties + spaceBefore/spaceAfter
395
+ def __init__(
396
+ self, flowables: Iterable[_NestedFlowable], start: Incomplete | None = None, style: PropertySet | None = None, **kwds
397
+ ) -> None: ...
398
+
399
+ class TopPadder(Flowable):
400
+ # NOTE: TopPadder is mostly a transparent wrapper, we may consider trying
401
+ # something using __new__ in the future
402
+ def __init__(self, f: Flowable) -> None: ...
403
+ def __setattr__(self, a: str, v: Any) -> None: ...
404
+ def __getattr__(self, a: str) -> Any: ...
405
+ def __delattr__(self, a: str) -> None: ...
406
+
407
+ class DocAssign(NullDraw):
408
+ args: tuple[Any, ...]
409
+ def __init__(self, var: str, expr: object, life: str = "forever") -> None: ...
410
+ def funcWrap(self, aW: float, aH: float) -> None: ...
411
+ def func(self) -> None: ...
412
+
413
+ class DocExec(DocAssign):
414
+ def __init__(self, stmt: str, lifetime: str = "forever") -> None: ...
415
+
416
+ class DocPara(DocAssign):
417
+ expr: object
418
+ format: str | None
419
+ style: PropertySet | None
420
+ klass: Incomplete
421
+ escape: bool
422
+ def __init__(
423
+ self,
424
+ expr: object,
425
+ format: str | None = None,
426
+ style: PropertySet | None = None,
427
+ klass: _StyledFlowableFactory | None = None,
428
+ escape: bool = True,
429
+ ) -> None: ...
430
+ def funcWrap(self, aW: float, aH: float) -> Any: ...
431
+ def func(self) -> Any: ...
432
+ def add_content(self, *args: Flowable) -> None: ...
433
+ def get_value(self, aW: float, aH: float) -> str: ...
434
+
435
+ class DocAssert(DocPara):
436
+ def __init__(self, cond: object, format: str | None = None) -> None: ...
437
+
438
+ class DocIf(DocPara):
439
+ blocks: tuple[_FlowableSublist, _FlowableSublist]
440
+ def __init__(self, cond: object, thenBlock: _FlowableSublist, elseBlock: _FlowableSublist = []) -> None: ...
441
+ def checkBlock(self, block: _FlowableSublist) -> list[Flowable] | tuple[Flowable, ...]: ...
442
+
443
+ class DocWhile(DocIf):
444
+ block: _FlowableSublist
445
+ def __init__(self, cond: object, whileBlock: _FlowableSublist) -> None: ...
446
+
447
+ class SetTopFlowables(NullDraw):
448
+ def __init__(self, F: list[Flowable], show: bool = False) -> None: ...
449
+
450
+ class SetPageTopFlowables(NullDraw):
451
+ def __init__(self, F: list[Flowable], show: bool = False) -> None: ...
@@ -0,0 +1,37 @@
1
+ from _typeshed import Incomplete
2
+ from typing import Literal
3
+
4
+ from reportlab.pdfgen.canvas import Canvas
5
+ from reportlab.platypus.flowables import Flowable
6
+
7
+ class Frame:
8
+ id: str | None
9
+ x1: float
10
+ y1: float
11
+ width: float
12
+ height: float
13
+ leftPadding: float
14
+ bottomPadding: float
15
+ rightPadding: float
16
+ topPadding: float
17
+ showBoundary: int
18
+ def __init__(
19
+ self,
20
+ x1: float,
21
+ y1: float,
22
+ width: float,
23
+ height: float,
24
+ leftPadding: float = 6,
25
+ bottomPadding: float = 6,
26
+ rightPadding: float = 6,
27
+ topPadding: float = 6,
28
+ id: str | None = None,
29
+ showBoundary: int = 0,
30
+ overlapAttachedSpace: Incomplete | None = None,
31
+ _debug: Incomplete | None = None,
32
+ ) -> None: ...
33
+ def add(self, flowable: Flowable, canv: Canvas, trySplit: int = 0) -> Literal[0, 1]: ...
34
+ def split(self, flowable: Flowable, canv: Canvas) -> list[Flowable]: ...
35
+ def drawBoundary(self, canv: Canvas) -> None: ...
36
+ def addFromList(self, drawlist: list[Flowable], canv: Canvas) -> None: ...
37
+ def add_generated_content(self, *C: Flowable) -> None: ...
@@ -0,0 +1,17 @@
1
+ from collections.abc import Sequence
2
+
3
+ from .flowables import Flowable, _Container, _FindSplitterMixin
4
+
5
+ class MultiCol(_Container, _FindSplitterMixin, Flowable):
6
+ contents: Sequence[Flowable]
7
+ widths: Sequence[float | str]
8
+ minHeightNeeded: float
9
+ def __init__(
10
+ self,
11
+ contents: Sequence[Flowable],
12
+ widths: Sequence[float | str],
13
+ minHeightNeeded: float = 36,
14
+ spaceBefore: float | None = None,
15
+ spaceAfter: float | None = None,
16
+ ) -> None: ...
17
+ def nWidths(self, aW: float) -> list[float]: ...