basedpyright 1.28.3 → 1.28.4

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 (375) 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/_hashlib.pyi +15 -2
  7. package/dist/typeshed-fallback/stdlib/_socket.pyi +2 -2
  8. package/dist/typeshed-fallback/stdlib/_typeshed/__init__.pyi +7 -4
  9. package/dist/typeshed-fallback/stdlib/asyncio/__init__.pyi +2 -178
  10. package/dist/typeshed-fallback/stdlib/asyncio/base_events.pyi +3 -2
  11. package/dist/typeshed-fallback/stdlib/asyncio/events.pyi +3 -2
  12. package/dist/typeshed-fallback/stdlib/builtins.pyi +51 -33
  13. package/dist/typeshed-fallback/stdlib/configparser.pyi +61 -42
  14. package/dist/typeshed-fallback/stdlib/contextlib.pyi +5 -5
  15. package/dist/typeshed-fallback/stdlib/distutils/cmd.pyi +1 -1
  16. package/dist/typeshed-fallback/stdlib/distutils/dist.pyi +3 -3
  17. package/dist/typeshed-fallback/stdlib/distutils/fancy_getopt.pyi +15 -5
  18. package/dist/typeshed-fallback/stdlib/functools.pyi +18 -13
  19. package/dist/typeshed-fallback/stdlib/getopt.pyi +15 -3
  20. package/dist/typeshed-fallback/stdlib/hashlib.pyi +2 -1
  21. package/dist/typeshed-fallback/stdlib/heapq.pyi +2 -2
  22. package/dist/typeshed-fallback/stdlib/hmac.pyi +2 -2
  23. package/dist/typeshed-fallback/stdlib/http/server.pyi +2 -1
  24. package/dist/typeshed-fallback/stdlib/importlib/metadata/__init__.pyi +1 -1
  25. package/dist/typeshed-fallback/stdlib/importlib/readers.pyi +11 -7
  26. package/dist/typeshed-fallback/stdlib/inspect.pyi +10 -10
  27. package/dist/typeshed-fallback/stdlib/logging/config.pyi +6 -1
  28. package/dist/typeshed-fallback/stdlib/math.pyi +33 -3
  29. package/dist/typeshed-fallback/stdlib/multiprocessing/connection.pyi +9 -9
  30. package/dist/typeshed-fallback/stdlib/pathlib.pyi +13 -9
  31. package/dist/typeshed-fallback/stdlib/pkgutil.pyi +6 -6
  32. package/dist/typeshed-fallback/stdlib/shutil.pyi +9 -5
  33. package/dist/typeshed-fallback/stdlib/socketserver.pyi +8 -8
  34. package/dist/typeshed-fallback/stdlib/statistics.pyi +14 -15
  35. package/dist/typeshed-fallback/stdlib/tarfile.pyi +181 -162
  36. package/dist/typeshed-fallback/stdlib/types.pyi +27 -4
  37. package/dist/typeshed-fallback/stdlib/typing.pyi +10 -7
  38. package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +95 -48
  39. package/dist/typeshed-fallback/stdlib/unittest/case.pyi +5 -1
  40. package/dist/typeshed-fallback/stdlib/xml/dom/NodeFilter.pyi +7 -4
  41. package/dist/typeshed-fallback/stdlib/xml/dom/__init__.pyi +84 -53
  42. package/dist/typeshed-fallback/stdlib/xml/dom/expatbuilder.pyi +66 -45
  43. package/dist/typeshed-fallback/stdlib/xml/dom/minidom.pyi +524 -193
  44. package/dist/typeshed-fallback/stdlib/xml/dom/pulldom.pyi +70 -55
  45. package/dist/typeshed-fallback/stdlib/xml/dom/xmlbuilder.pyi +20 -49
  46. package/dist/typeshed-fallback/stdlib/xml/etree/ElementInclude.pyi +13 -10
  47. package/dist/typeshed-fallback/stdlib/xml/etree/ElementPath.pyi +19 -12
  48. package/dist/typeshed-fallback/stdlib/xml/etree/ElementTree.pyi +83 -41
  49. package/dist/typeshed-fallback/stdlib/xml/sax/_exceptions.pyi +5 -5
  50. package/dist/typeshed-fallback/stdlib/xml/sax/expatreader.pyi +53 -24
  51. package/dist/typeshed-fallback/stdlib/xml/sax/handler.pyi +48 -17
  52. package/dist/typeshed-fallback/stdlib/xml/sax/saxutils.pyi +24 -16
  53. package/dist/typeshed-fallback/stdlib/xml/sax/xmlreader.pyi +59 -56
  54. package/dist/typeshed-fallback/stdlib/zipfile/__init__.pyi +0 -8
  55. package/dist/typeshed-fallback/stdlib/zipfile/_path/__init__.pyi +32 -52
  56. package/dist/typeshed-fallback/stubs/Deprecated/deprecated/classic.pyi +6 -1
  57. package/dist/typeshed-fallback/stubs/Deprecated/deprecated/sphinx.pyi +1 -0
  58. package/dist/typeshed-fallback/stubs/Pygments/METADATA.toml +1 -1
  59. package/dist/typeshed-fallback/stubs/Pygments/pygments/plugin.pyi +11 -3
  60. package/dist/typeshed-fallback/stubs/RPi.GPIO/RPi/GPIO/__init__.pyi +1 -1
  61. package/dist/typeshed-fallback/stubs/WTForms/wtforms/validators.pyi +13 -5
  62. package/dist/typeshed-fallback/stubs/WebOb/webob/__init__.pyi +15 -0
  63. package/dist/typeshed-fallback/stubs/WebOb/webob/_types.pyi +21 -0
  64. package/dist/typeshed-fallback/stubs/WebOb/webob/acceptparse.pyi +496 -285
  65. package/dist/typeshed-fallback/stubs/WebOb/webob/byterange.pyi +2 -0
  66. package/dist/typeshed-fallback/stubs/WebOb/webob/cachecontrol.pyi +75 -75
  67. package/dist/typeshed-fallback/stubs/WebOb/webob/client.pyi +2 -0
  68. package/dist/typeshed-fallback/stubs/WebOb/webob/compat.pyi +24 -0
  69. package/dist/typeshed-fallback/stubs/WebOb/webob/cookies.pyi +39 -34
  70. package/dist/typeshed-fallback/stubs/WebOb/webob/datetime_utils.pyi +16 -0
  71. package/dist/typeshed-fallback/stubs/WebOb/webob/dec.pyi +40 -40
  72. package/dist/typeshed-fallback/stubs/WebOb/webob/descriptors.pyi +23 -34
  73. package/dist/typeshed-fallback/stubs/WebOb/webob/etag.pyi +11 -18
  74. package/dist/typeshed-fallback/stubs/WebOb/webob/exc.pyi +70 -7
  75. package/dist/typeshed-fallback/stubs/WebOb/webob/headers.pyi +20 -2
  76. package/dist/typeshed-fallback/stubs/WebOb/webob/multidict.pyi +97 -31
  77. package/dist/typeshed-fallback/stubs/WebOb/webob/request.pyi +70 -79
  78. package/dist/typeshed-fallback/stubs/WebOb/webob/response.pyi +62 -62
  79. package/dist/typeshed-fallback/stubs/WebOb/webob/static.pyi +12 -9
  80. package/dist/typeshed-fallback/stubs/WebOb/webob/util.pyi +2 -5
  81. package/dist/typeshed-fallback/stubs/atheris/METADATA.toml +4 -0
  82. package/dist/typeshed-fallback/stubs/boltons/boltons/dictutils.pyi +1 -3
  83. package/dist/typeshed-fallback/stubs/boltons/boltons/tbutils.pyi +13 -13
  84. package/dist/typeshed-fallback/stubs/braintree/METADATA.toml +1 -1
  85. package/dist/typeshed-fallback/stubs/braintree/braintree/__init__.pyi +1 -0
  86. package/dist/typeshed-fallback/stubs/braintree/braintree/braintree_gateway.pyi +2 -0
  87. package/dist/typeshed-fallback/stubs/braintree/braintree/credit_card.pyi +1 -0
  88. package/dist/typeshed-fallback/stubs/braintree/braintree/error_codes.pyi +40 -0
  89. package/dist/typeshed-fallback/stubs/braintree/braintree/paypal_payment_resource.pyi +10 -0
  90. package/dist/typeshed-fallback/stubs/braintree/braintree/paypal_payment_resource_gateway.pyi +10 -0
  91. package/dist/typeshed-fallback/stubs/braintree/braintree/test/credit_card_numbers.pyi +1 -0
  92. package/dist/typeshed-fallback/stubs/braintree/braintree/test/nonces.pyi +1 -0
  93. package/dist/typeshed-fallback/stubs/cffi/METADATA.toml +2 -2
  94. package/dist/typeshed-fallback/stubs/cffi/_cffi_backend.pyi +8 -8
  95. package/dist/typeshed-fallback/stubs/cffi/cffi/recompiler.pyi +1 -0
  96. package/dist/typeshed-fallback/stubs/corus/METADATA.toml +4 -0
  97. package/dist/typeshed-fallback/stubs/dirhash/METADATA.toml +2 -0
  98. package/dist/typeshed-fallback/stubs/dirhash/dirhash/__init__.pyi +93 -0
  99. package/dist/typeshed-fallback/stubs/dirhash/dirhash/cli.pyi +5 -0
  100. package/dist/typeshed-fallback/stubs/fanstatic/METADATA.toml +1 -1
  101. package/dist/typeshed-fallback/stubs/fanstatic/fanstatic/registry.pyi +8 -3
  102. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fonts.pyi +2 -8
  103. package/dist/typeshed-fallback/stubs/geopandas/geopandas/geodataframe.pyi +1 -1
  104. package/dist/typeshed-fallback/stubs/geopandas/geopandas/io/sql.pyi +0 -3
  105. package/dist/typeshed-fallback/stubs/gevent/gevent/hub.pyi +1 -1
  106. package/dist/typeshed-fallback/stubs/gevent/gevent/libev/corecext.pyi +1 -1
  107. package/dist/typeshed-fallback/stubs/gevent/gevent/libev/corecffi.pyi +1 -1
  108. package/dist/typeshed-fallback/stubs/gevent/gevent/libuv/loop.pyi +1 -1
  109. package/dist/typeshed-fallback/stubs/google-cloud-ndb/METADATA.toml +0 -1
  110. package/dist/typeshed-fallback/stubs/greenlet/greenlet/_greenlet.pyi +5 -1
  111. package/dist/typeshed-fallback/stubs/hdbcli/hdbcli/dbapi.pyi +1 -1
  112. package/dist/typeshed-fallback/stubs/hnswlib/METADATA.toml +1 -1
  113. package/dist/typeshed-fallback/stubs/hnswlib/hnswlib.pyi +8 -6
  114. package/dist/typeshed-fallback/stubs/humanfriendly/METADATA.toml +3 -0
  115. package/dist/typeshed-fallback/stubs/ibm-db/METADATA.toml +1 -1
  116. package/dist/typeshed-fallback/stubs/icalendar/icalendar/__init__.pyi +6 -6
  117. package/dist/typeshed-fallback/stubs/mock/METADATA.toml +1 -1
  118. package/dist/typeshed-fallback/stubs/mock/mock/backports.pyi +6 -1
  119. package/dist/typeshed-fallback/stubs/mock/mock/mock.pyi +1 -1
  120. package/dist/typeshed-fallback/stubs/mysqlclient/MySQLdb/_mysql.pyi +32 -32
  121. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/__init__.pyi +3 -0
  122. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/clique.pyi +5 -4
  123. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/clustering_coefficient.pyi +3 -3
  124. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/connectivity.pyi +5 -3
  125. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/distance_measures.pyi +3 -3
  126. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/dominating_set.pyi +3 -4
  127. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/kcomponents.pyi +2 -1
  128. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/matching.pyi +2 -1
  129. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/maxcut.pyi +8 -2
  130. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/ramsey.pyi +2 -1
  131. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/steinertree.pyi +4 -2
  132. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/traveling_salesman.pyi +33 -23
  133. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/treewidth.pyi +4 -2
  134. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/vertex_cover.pyi +2 -3
  135. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/connectivity.pyi +3 -1
  136. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/correlation.pyi +6 -4
  137. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/mixing.pyi +16 -8
  138. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/neighbor_degree.pyi +7 -1
  139. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/pairs.pyi +6 -3
  140. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/asteroidal.pyi +3 -2
  141. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/__init__.pyi +1 -0
  142. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/basic.pyi +8 -6
  143. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/centrality.pyi +4 -3
  144. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/cluster.pyi +5 -3
  145. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/covering.pyi +3 -1
  146. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/edgelist.pyi +13 -12
  147. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/extendability.pyi +5 -0
  148. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/generators.pyi +22 -8
  149. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/matching.pyi +11 -5
  150. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/matrix.pyi +9 -7
  151. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/projection.pyi +9 -5
  152. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/redundancy.pyi +3 -1
  153. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/spectral.pyi +2 -3
  154. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/boundary.pyi +53 -58
  155. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bridges.pyi +5 -6
  156. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/betweenness.pyi +7 -5
  157. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/betweenness_subset.pyi +10 -2
  158. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/closeness.pyi +7 -7
  159. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/current_flow_betweenness.pyi +9 -9
  160. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/current_flow_betweenness_subset.pyi +16 -3
  161. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/current_flow_closeness.pyi +2 -3
  162. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/eigenvector.pyi +10 -3
  163. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/flow_matrix.pyi +4 -0
  164. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/group.pyi +16 -12
  165. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/harmonic.pyi +3 -1
  166. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/katz.pyi +15 -10
  167. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/laplacian.pyi +6 -4
  168. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/load.pyi +3 -4
  169. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/percolation.pyi +6 -2
  170. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/reaching.pyi +9 -3
  171. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/second_order.pyi +2 -1
  172. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/subgraph_alg.pyi +5 -4
  173. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/trophic.pyi +5 -3
  174. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/voterank_alg.pyi +2 -3
  175. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/chordal.pyi +3 -3
  176. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/clique.pyi +9 -14
  177. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/cluster.pyi +10 -7
  178. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/coloring/equitable_coloring.pyi +2 -1
  179. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/coloring/greedy_coloring.pyi +2 -20
  180. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/communicability_alg.pyi +3 -2
  181. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/asyn_fluid.pyi +3 -3
  182. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/centrality.pyi +5 -2
  183. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/community_utils.pyi +2 -1
  184. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/divisive.pyi +5 -2
  185. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/kclique.pyi +2 -1
  186. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/kernighan_lin.pyi +7 -1
  187. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/label_propagation.pyi +4 -2
  188. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/louvain.pyi +13 -2
  189. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/lukes.pyi +2 -3
  190. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/modularity_max.pyi +3 -4
  191. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/quality.pyi +3 -2
  192. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/biconnected.pyi +5 -4
  193. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/connected.pyi +5 -4
  194. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/semiconnected.pyi +2 -3
  195. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/strongly_connected.pyi +5 -5
  196. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/components/weakly_connected.pyi +3 -3
  197. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/connectivity.pyi +29 -23
  198. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/cuts.pyi +21 -5
  199. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/disjoint_paths.pyi +17 -16
  200. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/edge_augmentation.pyi +5 -4
  201. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/edge_kcomponents.pyi +7 -5
  202. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/kcomponents.pyi +3 -2
  203. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/kcutsets.pyi +5 -3
  204. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/connectivity/stoerwagner.pyi +2 -1
  205. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/core.pyi +9 -8
  206. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/covering.pyi +4 -2
  207. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/cuts.pyi +10 -9
  208. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/cycles.pyi +9 -6
  209. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/d_separation.pyi +3 -1
  210. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dag.pyi +13 -10
  211. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/distance_measures.pyi +8 -9
  212. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/distance_regular.pyi +4 -3
  213. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dominance.pyi +3 -2
  214. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dominating.pyi +4 -2
  215. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/efficiency_measures.pyi +2 -1
  216. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/euler.pyi +8 -5
  217. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/boykovkolmogorov.pyi +6 -7
  218. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/capacityscaling.pyi +4 -1
  219. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/dinitz_alg.pyi +6 -7
  220. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/edmondskarp.pyi +6 -7
  221. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/gomory_hu.pyi +3 -2
  222. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/maxflow.pyi +34 -5
  223. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/mincost.pyi +7 -4
  224. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/networksimplex.pyi +3 -1
  225. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/preflowpush.pyi +5 -6
  226. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/shortestaugmentingpath.pyi +6 -7
  227. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/flow/utils.pyi +1 -0
  228. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/graph_hashing.pyi +12 -4
  229. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/graphical.pyi +9 -6
  230. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/hierarchy.pyi +1 -3
  231. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/hybrid.pyi +3 -2
  232. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isolate.pyi +4 -3
  233. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/ismags.pyi +1 -0
  234. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/isomorph.pyi +11 -4
  235. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/isomorphvf2.pyi +5 -0
  236. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/temporalisomorphvf2.pyi +2 -0
  237. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/tree_isomorphism.pyi +2 -1
  238. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/vf2pp.pyi +6 -3
  239. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/vf2userfunc.pyi +2 -0
  240. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/link_analysis/hits_alg.pyi +9 -2
  241. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/link_analysis/pagerank_alg.pyi +16 -14
  242. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/link_prediction.pyi +9 -10
  243. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/lowest_common_ancestors.pyi +5 -3
  244. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/matching.pyi +7 -6
  245. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/minors/contraction.pyi +10 -7
  246. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/mis.pyi +6 -1
  247. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/moral.pyi +2 -1
  248. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/node_classification.pyi +3 -2
  249. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/non_randomness.pyi +2 -3
  250. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/all.pyi +7 -4
  251. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/binary.pyi +11 -11
  252. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/product.pyi +14 -7
  253. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/operators/unary.pyi +2 -2
  254. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/planarity.pyi +6 -3
  255. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/polynomials.pyi +3 -2
  256. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/reciprocity.pyi +4 -3
  257. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/regular.pyi +4 -3
  258. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/richclub.pyi +3 -3
  259. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/astar.pyi +22 -3
  260. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/dense.pyi +7 -5
  261. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/generic.pyi +33 -11
  262. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/unweighted.pyi +9 -8
  263. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/shortest_paths/weighted.pyi +116 -30
  264. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/similarity.pyi +69 -55
  265. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/simple_paths.pyi +11 -8
  266. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/smallworld.pyi +6 -6
  267. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/smetric.pyi +2 -1
  268. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/sparsifiers.pyi +3 -3
  269. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/structuralholes.pyi +5 -3
  270. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/summarization.pyi +5 -3
  271. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/swap.pyi +8 -5
  272. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/threshold.pyi +3 -4
  273. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/time_dependent.pyi +5 -0
  274. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tournament.pyi +8 -8
  275. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/beamsearch.pyi +5 -2
  276. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/breadth_first_search.pyi +16 -7
  277. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/depth_first_search.pyi +20 -8
  278. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/edgebfs.pyi +2 -3
  279. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/traversal/edgedfs.pyi +2 -3
  280. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/branchings.pyi +13 -6
  281. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/coding.pyi +8 -4
  282. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/mst.pyi +22 -6
  283. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/operations.pyi +2 -1
  284. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/recognition.pyi +6 -4
  285. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/triads.pyi +11 -8
  286. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/vitality.pyi +2 -1
  287. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/voronoi.pyi +10 -1
  288. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/walks.pyi +5 -0
  289. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/wiener.pyi +2 -3
  290. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/coreviews.pyi +3 -1
  291. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/graph.pyi +4 -3
  292. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multidigraph.pyi +2 -0
  293. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multigraph.pyi +3 -0
  294. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/reportviews.pyi +39 -9
  295. package/dist/typeshed-fallback/stubs/networkx/networkx/generators/__init__.pyi +2 -0
  296. package/dist/typeshed-fallback/stubs/networkx/networkx/generators/time_series.pyi +4 -0
  297. package/dist/typeshed-fallback/stubs/passlib/passlib/hosts.pyi +3 -1
  298. package/dist/typeshed-fallback/stubs/peewee/peewee.pyi +19 -19
  299. package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/descriptor.pyi +6 -0
  300. package/dist/typeshed-fallback/stubs/psycopg2/psycopg2/_psycopg.pyi +1 -1
  301. package/dist/typeshed-fallback/stubs/pycurl/METADATA.toml +1 -1
  302. package/dist/typeshed-fallback/stubs/pycurl/pycurl.pyi +18 -0
  303. package/dist/typeshed-fallback/stubs/pygit2/METADATA.toml +2 -0
  304. package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/building/build_main.pyi +19 -7
  305. package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/building/splash.pyi +18 -16
  306. package/dist/typeshed-fallback/stubs/pyinstaller/PyInstaller/utils/hooks/__init__.pyi +1 -1
  307. package/dist/typeshed-fallback/stubs/pynput/METADATA.toml +1 -1
  308. package/dist/typeshed-fallback/stubs/pynput/pynput/_util.pyi +4 -4
  309. package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/__init__.pyi +4 -2
  310. package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/_base.pyi +3 -0
  311. package/dist/typeshed-fallback/stubs/pynput/pynput/mouse/__init__.pyi +6 -3
  312. package/dist/typeshed-fallback/stubs/pyserial/serial/tools/miniterm.pyi +2 -2
  313. package/dist/typeshed-fallback/stubs/pytz/pytz/tzinfo.pyi +3 -3
  314. package/dist/typeshed-fallback/stubs/pywin32/METADATA.toml +1 -1
  315. package/dist/typeshed-fallback/stubs/pywin32/pythoncom.pyi +19 -2
  316. package/dist/typeshed-fallback/stubs/pywin32/win32/lib/win32con.pyi +4895 -4764
  317. package/dist/typeshed-fallback/stubs/pywin32/win32/lib/win32timezone.pyi +81 -42
  318. package/dist/typeshed-fallback/stubs/pywin32/win32/lib/winerror.pyi +7258 -2574
  319. package/dist/typeshed-fallback/stubs/pywin32/win32/servicemanager.pyi +1 -1
  320. package/dist/typeshed-fallback/stubs/pywin32/win32/win32trace.pyi +1 -1
  321. package/dist/typeshed-fallback/stubs/pywin32/win32/win32ts.pyi +1 -0
  322. package/dist/typeshed-fallback/stubs/pywin32/win32com/client/__init__.pyi +3 -1
  323. package/dist/typeshed-fallback/stubs/regex/regex/regex.pyi +5 -5
  324. package/dist/typeshed-fallback/stubs/requests/requests/__init__.pyi +12 -13
  325. package/dist/typeshed-fallback/stubs/requests-oauthlib/requests_oauthlib/oauth1_auth.pyi +3 -0
  326. package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +4 -3
  327. package/dist/typeshed-fallback/stubs/setuptools/distutils/ccompiler.pyi +11 -0
  328. package/dist/typeshed-fallback/stubs/setuptools/distutils/compilers/C/base.pyi +1 -0
  329. package/dist/typeshed-fallback/stubs/setuptools/distutils/compilers/C/errors.pyi +1 -0
  330. package/dist/typeshed-fallback/stubs/setuptools/distutils/compilers/C/msvc.pyi +1 -0
  331. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/_msvccompiler.pyi +2 -21
  332. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/archive_util.pyi +1 -1
  333. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/ccompiler.pyi +13 -178
  334. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/bdist_rpm.pyi +6 -6
  335. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build.pyi +2 -2
  336. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_clib.pyi +2 -2
  337. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_ext.pyi +2 -2
  338. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/build_py.pyi +3 -3
  339. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install.pyi +5 -5
  340. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_data.pyi +1 -1
  341. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_lib.pyi +4 -4
  342. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_scripts.pyi +2 -2
  343. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/sdist.pyi +6 -6
  344. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compat/__init__.pyi +6 -1
  345. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compilers/C/base.pyi +196 -0
  346. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compilers/C/errors.pyi +6 -0
  347. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compilers/C/msvc.pyi +24 -0
  348. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/dist.pyi +23 -20
  349. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/errors.pyi +12 -6
  350. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/filelist.pyi +12 -11
  351. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/spawn.pyi +6 -1
  352. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/util.pyi +6 -6
  353. package/dist/typeshed-fallback/stubs/setuptools/setuptools/command/bdist_wheel.pyi +0 -2
  354. package/dist/typeshed-fallback/stubs/simplejson/simplejson/encoder.pyi +1 -1
  355. package/dist/typeshed-fallback/stubs/six/six/moves/builtins.pyi +0 -1
  356. package/dist/typeshed-fallback/stubs/tqdm/METADATA.toml +4 -1
  357. package/dist/typeshed-fallback/stubs/tqdm/tqdm/asyncio.pyi +4 -3
  358. package/dist/typeshed-fallback/stubs/tqdm/tqdm/std.pyi +10 -3
  359. package/dist/typeshed-fallback/stubs/tree-sitter-languages/METADATA.toml +6 -0
  360. package/dist/typeshed-fallback/stubs/vobject/vobject/vcard.pyi +15 -8
  361. package/dist/typeshed-fallback/stubs/watchpoints/METADATA.toml +2 -0
  362. package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/__init__.pyi +10 -0
  363. package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/ast_monkey.pyi +3 -0
  364. package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/util.pyi +6 -0
  365. package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/watch.pyi +68 -0
  366. package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/watch_element.pyi +56 -0
  367. package/dist/typeshed-fallback/stubs/watchpoints/watchpoints/watch_print.pyi +24 -0
  368. package/dist/typeshed-fallback/stubs/zstd/METADATA.toml +1 -1
  369. package/package.json +1 -1
  370. package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/__init__.pyi +0 -543
  371. package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/__init__.pyi +0 -8
  372. package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/markers.pyi +0 -13
  373. package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/requirements.pyi +0 -14
  374. package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/specifiers.pyi +0 -66
  375. package/dist/typeshed-fallback/stubs/setuptools/pkg_resources/_vendored_packaging/version.pyi +0 -49
@@ -401,6 +401,46 @@ class ErrorCodes:
401
401
  PaymentMethodNonceUnknown: Final = "92908"
402
402
  TokenIsInUse: Final = "92906"
403
403
 
404
+ class PayPalPaymentResource:
405
+ NonceExpired: Final = "97301"
406
+ IdNotSupported: Final = "97302"
407
+ NonceRequired: Final = "97303"
408
+ InvalidEmail: Final = "97304"
409
+ EmailTooLong: Final = "97305"
410
+ ExpectedLineItemCollection: Final = "97306"
411
+ ExpectedLineItemHash: Final = "97307"
412
+ ExpectedLineItemDebit: Final = "97308"
413
+ InvalidUnitAmount: Final = "97309"
414
+ InvalidUnitTaxAmount: Final = "97310"
415
+ IsoCodeRequired: Final = "97311"
416
+ IsoCodeUnsupported: Final = "97312"
417
+ ShippingFieldsMissing: Final = "97313"
418
+ InvalidAmountBreakdown: Final = "97314"
419
+ ExpectedShippingOptionCollection: Final = "97315"
420
+ ShippingOptionsRequired: Final = "97316"
421
+ ShippingOptionFieldsMissing: Final = "97317"
422
+ InvalidShippingOptionType: Final = "97318"
423
+ ShippingOptionIdReused: Final = "97319"
424
+ TooManyShippingOptionsSelected: Final = "97320"
425
+ ShippingOptionMustMatchBreakdown: Final = "97321"
426
+ LineItemsShouldMatchTotal: Final = "97322"
427
+ LineItemsTaxShouldMatchTotal: Final = "97323"
428
+ PatchCallFailed: Final = "97324"
429
+ InvalidAmount: Final = "97325"
430
+ ShippingIdTooLong: Final = "97326"
431
+ ShippingLabelTooLong: Final = "97327"
432
+ ShippingFullNameTooLong: Final = "97328"
433
+ ShippingAddressTooLong: Final = "97329"
434
+ ShippingExtendedAddressTooLong: Final = "97330"
435
+ ShippingLocalityTooLong: Final = "97331"
436
+ ShippingRegionTooLong: Final = "97332"
437
+ CountryCodeTooLong: Final = "97333"
438
+ NationalNumberTooLong: Final = "97334"
439
+ PostalCodeTooLong: Final = "97335"
440
+ DescriptionTooLong: Final = "97336"
441
+ CustomFieldTooLong: Final = "97337"
442
+ OrderIdTooLong: Final = "97338"
443
+
404
444
  class SettlementBatchSummary:
405
445
  CustomFieldIsInvalid: Final = "82303"
406
446
  SettlementDateIsInvalid: Final = "82302"
@@ -0,0 +1,10 @@
1
+ from _typeshed import Incomplete
2
+
3
+ from braintree.resource import Resource
4
+
5
+ class PayPalPaymentResource(Resource):
6
+ def __init__(self, gateway, attributes) -> None: ...
7
+ @staticmethod
8
+ def update(request): ...
9
+ @staticmethod
10
+ def update_signature() -> list[Incomplete]: ...
@@ -0,0 +1,10 @@
1
+ from braintree.braintree_gateway import BraintreeGateway
2
+ from braintree.configuration import Configuration
3
+ from braintree.error_result import ErrorResult
4
+ from braintree.successful_result import SuccessfulResult
5
+
6
+ class PayPalPaymentResourceGateway:
7
+ config: Configuration
8
+ gateway: BraintreeGateway
9
+ def __init__(self, gateway: BraintreeGateway) -> None: ...
10
+ def update(self, params) -> SuccessfulResult | ErrorResult: ...
@@ -8,6 +8,7 @@ class CreditCardNumbers:
8
8
  Healthcare: Final = "4111111510101010"
9
9
  Payroll: Final = "4111111114101010"
10
10
  Prepaid: Final = "4111111111111210"
11
+ PrepaidReloadable: Final = "4229989900000002"
11
12
  IssuingBank: Final = "4111111141010101"
12
13
  CountryOfIssuance: Final = "4111111111121102"
13
14
  No: Final = "4111111111310101"
@@ -72,6 +72,7 @@ class Nonces:
72
72
  TransactablePayroll: Final = "fake-valid-payroll-nonce"
73
73
  TransactablePinlessDebitVisa: Final = "fake-pinless-debit-visa-nonce"
74
74
  TransactablePrepaid: Final = "fake-valid-prepaid-nonce"
75
+ TransactablePrepaidReloadable: Final = "fake-valid-prepaid-reloadable-nonce"
75
76
  TransactableUnknownIndicators: Final = "fake-valid-unknown-indicators-nonce"
76
77
  TransactableVisa: Final = "fake-valid-visa-nonce"
77
78
  VenmoAccount: Final = "fake-venmo-account-nonce"
@@ -1,5 +1,5 @@
1
- version = "1.16.*"
2
- upstream_repository = "https://foss.heptapod.net/pypy/cffi"
1
+ version = "1.17.*"
2
+ upstream_repository = "https://github.com/python-cffi/cffi/"
3
3
  requires = ["types-setuptools"]
4
4
 
5
5
  [tool.stubtest]
@@ -34,7 +34,7 @@ class CField:
34
34
 
35
35
  @final
36
36
  class CLibrary:
37
- def close_lib(self, *args, **kwargs): ...
37
+ def close_lib(self) -> None: ...
38
38
  def load_function(self, *args, **kwargs): ...
39
39
  def read_variable(self, *args, **kwargs): ...
40
40
  def write_variable(self, *args, **kwargs): ...
@@ -127,13 +127,13 @@ class FFI:
127
127
 
128
128
  def __init__(
129
129
  self,
130
- module_name: str = ...,
130
+ module_name: bytes = ...,
131
131
  _version: int = ...,
132
- _types: str = ...,
133
- _globals: tuple[str | int, ...] = ...,
134
- _struct_unions: tuple[tuple[str, ...], ...] = ...,
135
- _enums: tuple[str, ...] = ...,
136
- _typenames: tuple[str, ...] = ...,
132
+ _types: bytes = ...,
133
+ _globals: tuple[bytes | int, ...] = ...,
134
+ _struct_unions: tuple[tuple[bytes, ...], ...] = ...,
135
+ _enums: tuple[bytes, ...] = ...,
136
+ _typenames: tuple[bytes, ...] = ...,
137
137
  _includes: tuple[FFI, ...] = ...,
138
138
  ) -> None: ...
139
139
  @overload
@@ -204,7 +204,7 @@ class FFI:
204
204
  def release(self, cdata: CData, /) -> None: ...
205
205
  def sizeof(self, cdecl: str | CType | CData, /) -> int: ...
206
206
  def string(self, cdata: CData, maxlen: int = -1) -> bytes | str: ...
207
- def typeof(self, cdecl: str | CData) -> CType: ...
207
+ def typeof(self, cdecl: str | CData, /) -> CType: ...
208
208
  def unpack(self, cdata: CData, length: int) -> bytes | str | list[Any]: ...
209
209
 
210
210
  def alignof(cdecl: CType, /) -> int: ...
@@ -90,5 +90,6 @@ def recompile(
90
90
  compiler_verbose: int = 1,
91
91
  target: Incomplete | None = None,
92
92
  debug: Incomplete | None = None,
93
+ uses_ffiplatform: bool = True,
93
94
  **kwds,
94
95
  ): ...
@@ -1,2 +1,6 @@
1
1
  version = "0.10.*"
2
2
  upstream_repository = "https://github.com/natasha/corus"
3
+
4
+ [tool.stubtest]
5
+ # As of version 0.10.0, corus doesn't support Python 3.13.
6
+ skip = true
@@ -0,0 +1,2 @@
1
+ version = "0.5.*"
2
+ upstream_repository = "https://github.com/andhus/dirhash-python"
@@ -0,0 +1,93 @@
1
+ from _typeshed import Incomplete
2
+ from collections.abc import Generator, Iterable
3
+ from os import PathLike
4
+ from typing import TypeVar
5
+ from typing_extensions import TypeAlias
6
+
7
+ _DirNode: TypeAlias = Incomplete # scantree.DirNode
8
+ _RecursionPath: TypeAlias = Incomplete # scantree.RecursionPath
9
+ _RP = TypeVar("_RP", bound=_RecursionPath)
10
+
11
+ __all__ = [
12
+ "__version__",
13
+ "algorithms_guaranteed",
14
+ "algorithms_available",
15
+ "dirhash",
16
+ "dirhash_impl",
17
+ "included_paths",
18
+ "Filter",
19
+ "get_match_patterns",
20
+ "Protocol",
21
+ ]
22
+
23
+ __version__: str
24
+ algorithms_guaranteed: set[str]
25
+ algorithms_available: set[str]
26
+
27
+ def dirhash(
28
+ directory: str | PathLike[str],
29
+ algorithm: str,
30
+ match: Iterable[str] = ("*",),
31
+ ignore: Iterable[str] | None = None,
32
+ linked_dirs: bool = True,
33
+ linked_files: bool = True,
34
+ empty_dirs: bool = False,
35
+ entry_properties: Iterable[str] = ("name", "data"),
36
+ allow_cyclic_links: bool = False,
37
+ chunk_size: int = 1048576,
38
+ jobs: int = 1,
39
+ ) -> str: ...
40
+ def dirhash_impl(
41
+ directory: str | PathLike[str],
42
+ algorithm: str,
43
+ filter_: Filter | None = None,
44
+ protocol: Protocol | None = None,
45
+ chunk_size: int = 1048576,
46
+ jobs: int = 1,
47
+ ) -> str: ...
48
+ def included_paths(
49
+ directory: str | PathLike[str],
50
+ match: Iterable[str] = ("*",),
51
+ ignore: Iterable[str] | None = None,
52
+ linked_dirs: bool = True,
53
+ linked_files: bool = True,
54
+ empty_dirs: bool = False,
55
+ allow_cyclic_links: bool = False,
56
+ ) -> list[str]: ...
57
+
58
+ class Filter:
59
+ linked_dirs: bool
60
+ linked_files: bool
61
+ empty_dirs: bool
62
+
63
+ def __init__(
64
+ self,
65
+ match_patterns: Iterable[str] | None = None,
66
+ linked_dirs: bool = True,
67
+ linked_files: bool = True,
68
+ empty_dirs: bool = False,
69
+ ) -> None: ...
70
+ @property
71
+ def match_patterns(self) -> tuple[str, ...]: ...
72
+ def include(self, recursion_path: _RecursionPath) -> bool: ...
73
+ def match_file(self, filepath: str | PathLike[str]) -> bool: ...
74
+ def __call__(self, paths: Iterable[_RP]) -> Generator[_RP, None, None]: ...
75
+
76
+ def get_match_patterns(
77
+ match: Iterable[str] | None = None,
78
+ ignore: Iterable[str] | None = None,
79
+ ignore_extensions: Iterable[str] | None = None,
80
+ ignore_hidden: bool = False,
81
+ ) -> list[str]: ...
82
+
83
+ class Protocol:
84
+ class EntryProperties:
85
+ NAME: str
86
+ DATA: str
87
+ IS_LINK: str
88
+ options: set[str]
89
+
90
+ entry_properties: Iterable[str]
91
+ allow_cyclic_links: bool
92
+ def __init__(self, entry_properties: Iterable[str] = ("name", "data"), allow_cyclic_links: bool = False) -> None: ...
93
+ def get_descriptor(self, dir_node: _DirNode) -> str: ...
@@ -0,0 +1,5 @@
1
+ from collections.abc import Sequence
2
+ from typing import Any
3
+
4
+ def main() -> None: ...
5
+ def get_kwargs(args: Sequence[str]) -> dict[str, Any]: ... # value depends on the key
@@ -1,3 +1,3 @@
1
- version = "1.4.*"
1
+ version = "1.5.*"
2
2
  upstream_repository = "https://github.com/zopefoundation/fanstatic"
3
3
  requires = ["types-setuptools", "types-WebOb"]
@@ -1,14 +1,19 @@
1
1
  from abc import abstractmethod
2
2
  from collections.abc import Iterable
3
3
  from threading import Lock
4
- from typing import Any, ClassVar, Literal, Protocol, TypeVar
4
+ from typing import Any, ClassVar, Literal, Protocol, TypeVar, type_check_only
5
5
  from typing_extensions import Self
6
6
 
7
7
  from fanstatic.compiler import Compiler, Minifier
8
8
  from fanstatic.core import Library
9
9
  from fanstatic.injector import InjectorPlugin
10
- from pkg_resources import EntryPoint
11
10
 
11
+ # Used to be pkg_resources.EntryPoint, but any EntryPoint-like class with a `load` method works
12
+ @type_check_only
13
+ class _EntryPoint(Protocol):
14
+ def load(self) -> Any: ... # Can be any attribute in the module
15
+
16
+ @type_check_only
12
17
  class _HasName(Protocol):
13
18
  @property
14
19
  def name(self) -> str: ...
@@ -24,7 +29,7 @@ class Registry(dict[str, _NamedT]):
24
29
  def __init__(self, items: Iterable[_NamedT] = ()) -> None: ...
25
30
  def add(self, item: _NamedT) -> None: ...
26
31
  def load_items_from_entry_points(self) -> None: ...
27
- def make_item_from_entry_point(self, entry_point: EntryPoint) -> Any: ...
32
+ def make_item_from_entry_point(self, entry_point: _EntryPoint) -> Any: ...
28
33
  @classmethod
29
34
  def instance(cls) -> Self: ...
30
35
 
@@ -118,19 +118,13 @@ class PDFFontDescriptor(PDFObject):
118
118
  font_name: Incomplete
119
119
  def __init__(self, ascent, descent, cap_height, flags, font_b_box, italic_angle, stem_v, missing_width) -> None: ...
120
120
 
121
+ @dataclass(order=True)
121
122
  class Glyph:
122
123
  glyph_id: int
123
124
  unicode: tuple[Incomplete, ...]
124
125
  glyph_name: str
125
126
  glyph_width: int
126
- def __hash__(self): ...
127
- def __init__(self, glyph_id, unicode, glyph_name, glyph_width) -> None: ...
128
- def __lt__(self, other): ...
129
- def __gt__(self, other): ...
130
- def __le__(self, other): ...
131
- def __ge__(self, other): ...
132
-
133
- __match_args__ = ("glyph_id", "unicode", "glyph_name", "glyph_width")
127
+ def __hash__(self) -> int: ...
134
128
 
135
129
  class SubsetMap:
136
130
  font: TTFFont
@@ -315,7 +315,7 @@ class GeoDataFrame(GeoPandasBase, pd.DataFrame): # type: ignore[misc]
315
315
  dtype: AstypeArg | Mapping[Any, Dtype] | pd.Series[Any], # any because of mapping invariance and series typevar bounds
316
316
  copy: bool | None = None,
317
317
  errors: Literal["ignore", "raise"] = "raise",
318
- ) -> GeoDataFrame | pd.DataFrame: ...
318
+ ) -> GeoDataFrame: ...
319
319
  def to_postgis(
320
320
  self,
321
321
  name: str,
@@ -10,9 +10,6 @@ from pandas._typing import Scalar
10
10
  from ..base import _ConvertibleToCRS
11
11
  from ..geodataframe import GeoDataFrame
12
12
 
13
- # inline ruff noqa at _SqlalchemyConnectionLike.__enter__ confuses flake8
14
- # ruff: noqa: PYI034
15
-
16
13
  # Start SQLAlchemy hack
17
14
  # ---------------------
18
15
  # The code actually explicitly checks for SQLAlchemy's `Connection` and `Engine` with
@@ -29,7 +29,7 @@ class _DefaultReturnProperty(Protocol[_T]):
29
29
  @overload
30
30
  def __get__(self, obj: object, owner: type[object] | None = None) -> _T: ...
31
31
  def __set__(self, obj: object, value: _T | None) -> None: ...
32
- def __del__(self, obj: object) -> None: ...
32
+ def __del__(self) -> None: ...
33
33
 
34
34
  def spawn_raw(function: Callable[..., object], *args: object, **kwargs: object) -> greenlet.greenlet: ...
35
35
  def sleep(seconds: float = 0, ref: bool = True) -> None: ...
@@ -5,9 +5,9 @@ from types import TracebackType
5
5
  from typing import Any
6
6
  from typing_extensions import ParamSpec
7
7
 
8
- import gevent.libev.watcher as watcher
9
8
  from gevent._ffi.loop import _ErrorHandler
10
9
  from gevent._types import _Callback
10
+ from gevent.libev import watcher
11
11
 
12
12
  # this c extension is only available on posix
13
13
  if sys.platform != "win32":
@@ -2,8 +2,8 @@ import sys
2
2
  from _typeshed import FileDescriptor
3
3
  from collections.abc import Sequence
4
4
 
5
- import gevent.libev.watcher as watcher
6
5
  from gevent._ffi.loop import AbstractLoop
6
+ from gevent.libev import watcher
7
7
 
8
8
  def get_version() -> str: ...
9
9
  def get_header_version() -> str: ...
@@ -2,9 +2,9 @@ import sys
2
2
  from _typeshed import FileDescriptor
3
3
  from typing import NamedTuple
4
4
 
5
- import gevent.libuv.watcher as watcher
6
5
  from gevent._ffi.loop import AbstractLoop
7
6
  from gevent._types import _IoWatcher
7
+ from gevent.libuv import watcher
8
8
 
9
9
  def get_version() -> str: ...
10
10
  def get_header_version() -> str: ...
@@ -3,5 +3,4 @@ upstream_repository = "https://github.com/googleapis/python-ndb"
3
3
  partial_stub = true
4
4
 
5
5
  [tool.stubtest]
6
- stubtest_requirements = ["protobuf==3.20.2", "six"]
7
6
  ignore_missing_stub = true
@@ -1,3 +1,4 @@
1
+ import sys
1
2
  from collections.abc import Callable
2
3
  from contextvars import Context
3
4
  from types import FrameType, TracebackType
@@ -71,7 +72,10 @@ def enable_optional_cleanup(enabled: bool, /) -> None: ...
71
72
  def get_clocks_used_doing_optional_cleanup() -> int: ...
72
73
  def get_pending_cleanup_count() -> int: ...
73
74
  def get_total_main_greenlets() -> int: ...
74
- def get_tstate_trash_delete_nesting() -> int: ...
75
+
76
+ if sys.version_info < (3, 13):
77
+ def get_tstate_trash_delete_nesting() -> int: ...
78
+
75
79
  def getcurrent() -> greenlet: ...
76
80
  def gettrace() -> _TraceCallback | None: ...
77
81
  def set_thread_local(key: object, value: object, /) -> None: ...
@@ -85,7 +85,7 @@ class Cursor:
85
85
  def prepare(self, operation: str, newcursor: Literal[True]) -> Cursor: ...
86
86
  @overload
87
87
  def prepare(self, operation: str, newcursor: Literal[False]) -> Any: ...
88
- def print_message(self, *args, **kwargs): ...
88
+ def print_message(self): ...
89
89
  def parsenamedquery(self, *args, **kwargs): ...
90
90
  def scroll(self, value: int, mode: Literal["absolute", "relative"] = ...) -> None: ...
91
91
  def server_cpu_time(self) -> int: ...
@@ -1,4 +1,4 @@
1
1
  version = "0.8.*"
2
2
  # Requires a version of numpy with a `py.typed` file
3
- requires = ["numpy>=1.20"]
3
+ requires = ["numpy>=1.21"]
4
4
  upstream_repository = "https://github.com/nmslib/hnswlib"
@@ -3,7 +3,7 @@ from collections.abc import Callable
3
3
  from typing import Any, Literal, overload
4
4
 
5
5
  import numpy as np
6
- from numpy.typing import NDArray
6
+ from numpy.typing import ArrayLike, NDArray
7
7
 
8
8
  BFIndex: Incomplete
9
9
 
@@ -17,16 +17,18 @@ class Index:
17
17
  def __init__(self, index: Index) -> None: ...
18
18
  @overload
19
19
  def __init__(self, space: Literal["l2", "ip", "cosine"], dim: int) -> None: ...
20
- def add_items(self, data, ids: Incomplete | None = None, num_threads: int = -1, replace_deleted: bool = False) -> None: ...
20
+ def add_items(
21
+ self, data: ArrayLike, ids: ArrayLike | None = None, num_threads: int = -1, replace_deleted: bool = False
22
+ ) -> None: ...
21
23
  def get_current_count(self) -> int: ...
22
24
  def get_ids_list(self) -> list[int]: ...
23
25
  @overload
24
- def get_items(self, ids: Incomplete | None = ..., return_type: Literal["list"] = ...) -> list[float]: ...
26
+ def get_items(self, ids: ArrayLike | None = ..., return_type: Literal["list"] = ...) -> list[float]: ...
25
27
  @overload
26
- def get_items(self, ids: Incomplete | None = ..., return_type: Literal["numpy"] = ...) -> NDArray[np.float32]: ...
28
+ def get_items(self, ids: ArrayLike | None = ..., return_type: Literal["numpy"] = ...) -> NDArray[np.float32]: ...
27
29
  @overload
28
30
  def get_items(
29
- self, ids: Incomplete | None = None, return_type: Literal["numpy", "list"] = "numpy"
31
+ self, ids: ArrayLike | None = None, return_type: Literal["numpy", "list"] = "numpy"
30
32
  ) -> NDArray[np.float32] | list[float]: ...
31
33
  def get_max_elements(self) -> int: ...
32
34
  def index_file_size(self) -> int: ...
@@ -39,7 +41,7 @@ class Index:
39
41
  allow_replace_delete: bool = False,
40
42
  ) -> None: ...
41
43
  def knn_query(
42
- self, data, k: int = 1, num_threads: int = -1, filter: Callable[[int], bool] | None = None
44
+ self, data: ArrayLike, k: int = 1, num_threads: int = -1, filter: Callable[[int], bool] | None = None
43
45
  ) -> tuple[NDArray[np.uint64], NDArray[np.float32]]: ...
44
46
  def load_index(self, path_to_index: str, max_elements: int = 0, allow_replace_delete: bool = False) -> None: ...
45
47
  def mark_deleted(self, label: int) -> None: ...
@@ -1,5 +1,8 @@
1
1
  version = "10.0.*"
2
2
  upstream_repository = "https://github.com/xolox/python-humanfriendly"
3
+ no_longer_updated = true
3
4
 
4
5
  [tool.stubtest]
5
6
  stubtest_requirements = ["docutils", "mock"]
7
+ # Package is unsupported and doesn't support Python 3.13 as of 2025-03-17.
8
+ skip = true
@@ -1,2 +1,2 @@
1
- version = "3.2.5"
1
+ version = "3.2.6"
2
2
  upstream_repository = "https://github.com/ibmdb/python-ibmdb"
@@ -1,3 +1,4 @@
1
+ from . import version as version_mod
1
2
  from .alarms import (
2
3
  Alarms as Alarms,
3
4
  AlarmTime as AlarmTime,
@@ -45,12 +46,6 @@ from .prop import (
45
46
  vWeekday as vWeekday,
46
47
  )
47
48
  from .timezone import use_pytz, use_zoneinfo
48
- from .version import (
49
- __version__ as __version__,
50
- __version_tuple__ as __version_tuple__,
51
- version as version,
52
- version_tuple as version_tuple,
53
- )
54
49
 
55
50
  __all__ = [
56
51
  "Calendar",
@@ -102,3 +97,8 @@ __all__ = [
102
97
  "IncompleteAlarmInformation",
103
98
  "LocalTimezoneMissing",
104
99
  ]
100
+
101
+ __version__ = version_mod.__version__
102
+ __version_tuple__ = version_mod.__version_tuple__
103
+ version = version_mod.version
104
+ version_tuple = version_mod.version_tuple
@@ -1,2 +1,2 @@
1
- version = "5.1.*"
1
+ version = "5.2.*"
2
2
  upstream_repository = "https://github.com/testing-cabal/mock"
@@ -1,2 +1,7 @@
1
- from asyncio import iscoroutinefunction as iscoroutinefunction
1
+ import sys
2
2
  from unittest import IsolatedAsyncioTestCase as IsolatedAsyncioTestCase
3
+
4
+ if sys.version_info >= (3, 10):
5
+ from inspect import iscoroutinefunction as iscoroutinefunction
6
+ else:
7
+ from asyncio import iscoroutinefunction as iscoroutinefunction
@@ -117,7 +117,7 @@ class NonCallableMock(Base, Any):
117
117
  **kwargs: Any,
118
118
  ) -> None: ...
119
119
  def __getattr__(self, name: str) -> Any: ...
120
- def _calls_repr(self, prefix: str = "Calls") -> str: ...
120
+ def _calls_repr(self) -> str: ...
121
121
  def assert_called_with(_mock_self, *args: Any, **kwargs: Any) -> None: ...
122
122
  def assert_not_called(_mock_self) -> None: ...
123
123
  def assert_called_once_with(_mock_self, *args: Any, **kwargs: Any) -> None: ...
@@ -24,46 +24,46 @@ class connection:
24
24
  port: Incomplete
25
25
  server_capabilities: Incomplete
26
26
  def __init__(self, *args, **kwargs) -> None: ...
27
- def _get_native_connection(self, *args, **kwargs): ...
28
- def affected_rows(self, *args, **kwargs): ...
27
+ def _get_native_connection(self): ...
28
+ def affected_rows(self): ...
29
29
  def autocommit(self, on): ...
30
30
  def change_user(self, *args, **kwargs): ...
31
- def character_set_name(self, *args, **kwargs): ...
32
- def close(self, *args, **kwargs): ...
33
- def commit(self, *args, **kwargs): ...
34
- def dump_debug_info(self, *args, **kwargs): ...
35
- def errno(self, *args, **kwargs): ...
36
- def error(self, *args, **kwargs): ...
31
+ def character_set_name(self): ...
32
+ def close(self): ...
33
+ def commit(self): ...
34
+ def dump_debug_info(self): ...
35
+ def errno(self): ...
36
+ def error(self): ...
37
37
  def escape(self, obj, dict): ...
38
38
  def escape_string(self, s): ...
39
- def field_count(self, *args, **kwargs): ...
40
- def fileno(self, *args, **kwargs): ...
41
- def get_autocommit(self, *args, **kwargs): ...
42
- def get_character_set_info(self, *args, **kwargs): ...
43
- def get_host_info(self, *args, **kwargs): ...
44
- def get_proto_info(self, *args, **kwargs): ...
45
- def get_server_info(self, *args, **kwargs): ...
46
- def info(self, *args, **kwargs): ...
47
- def insert_id(self, *args, **kwargs): ...
39
+ def field_count(self): ...
40
+ def fileno(self): ...
41
+ def get_autocommit(self): ...
42
+ def get_character_set_info(self): ...
43
+ def get_host_info(self): ...
44
+ def get_proto_info(self): ...
45
+ def get_server_info(self): ...
46
+ def info(self): ...
47
+ def insert_id(self): ...
48
48
  def kill(self, *args, **kwargs): ...
49
49
  def next_result(self): ...
50
50
  def ping(self): ...
51
51
  def query(self, query): ...
52
- def read_query_result(self, *args, **kwargs): ...
53
- def rollback(self, *args, **kwargs): ...
52
+ def read_query_result(self): ...
53
+ def rollback(self): ...
54
54
  def select_db(self, *args, **kwargs): ...
55
55
  def send_query(self, *args, **kwargs): ...
56
56
  def set_character_set(self, charset: str) -> None: ...
57
57
  def set_server_option(self, option): ...
58
- def shutdown(self, *args, **kwargs): ...
59
- def sqlstate(self, *args, **kwargs): ...
60
- def stat(self, *args, **kwargs): ...
61
- def store_result(self, *args, **kwargs): ...
62
- def string_literal(self, obj): ...
63
- def thread_id(self, *args, **kwargs): ...
64
- def use_result(self, *args, **kwargs): ...
58
+ def shutdown(self): ...
59
+ def sqlstate(self): ...
60
+ def stat(self): ...
61
+ def store_result(self): ...
62
+ def string_literal(self, obj, /) -> str: ...
63
+ def thread_id(self): ...
64
+ def use_result(self): ...
65
65
  def discard_result(self) -> None: ...
66
- def warning_count(self, *args, **kwargs): ...
66
+ def warning_count(self): ...
67
67
  def __delattr__(self, name: str, /) -> None: ...
68
68
  def __setattr__(self, name: str, value, /) -> None: ...
69
69
 
@@ -72,12 +72,12 @@ class result:
72
72
  has_next: Incomplete
73
73
  def __init__(self, *args, **kwargs) -> None: ...
74
74
  def data_seek(self, n): ...
75
- def describe(self, *args, **kwargs): ...
75
+ def describe(self): ...
76
76
  def fetch_row(self, *args, **kwargs): ...
77
77
  def discard(self) -> None: ...
78
- def field_flags(self, *args, **kwargs): ...
79
- def num_fields(self, *args, **kwargs): ...
80
- def num_rows(self, *args, **kwargs): ...
78
+ def field_flags(self): ...
79
+ def num_fields(self): ...
80
+ def num_rows(self): ...
81
81
  def __delattr__(self, name: str, /) -> None: ...
82
82
  def __setattr__(self, name: str, value, /) -> None: ...
83
83
 
@@ -86,4 +86,4 @@ def debug(*args, **kwargs): ...
86
86
  def escape(obj, dict): ...
87
87
  def escape_string(s): ...
88
88
  def get_client_info(): ...
89
- def string_literal(obj): ...
89
+ def string_literal(obj, /) -> str: ...
@@ -30,6 +30,7 @@ from networkx.algorithms.bipartite import (
30
30
  )
31
31
  from networkx.algorithms.boundary import *
32
32
  from networkx.algorithms.bridges import *
33
+ from networkx.algorithms.broadcasting import *
33
34
  from networkx.algorithms.centrality import *
34
35
  from networkx.algorithms.chains import *
35
36
  from networkx.algorithms.chordal import *
@@ -116,6 +117,7 @@ from networkx.algorithms.sparsifiers import *
116
117
  from networkx.algorithms.structuralholes import *
117
118
  from networkx.algorithms.summarization import *
118
119
  from networkx.algorithms.swap import *
120
+ from networkx.algorithms.time_dependent import *
119
121
  from networkx.algorithms.traversal import *
120
122
  from networkx.algorithms.tree.branchings import (
121
123
  ArborescenceIterator as ArborescenceIterator,
@@ -132,4 +134,5 @@ from networkx.algorithms.tree.recognition import *
132
134
  from networkx.algorithms.triads import *
133
135
  from networkx.algorithms.vitality import *
134
136
  from networkx.algorithms.voronoi import *
137
+ from networkx.algorithms.walks import *
135
138
  from networkx.algorithms.wiener import *