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
@@ -15,7 +15,7 @@ def PrepareToHostSingle(klass: Incomplete | None = ..., /) -> None: ...
15
15
  def PrepareToHostMultiple(service_name: str, klass, /) -> None: ...
16
16
  def RunningAsService(): ...
17
17
  def SetEventSourceName(sourceName: str, registerNow: bool = ..., /) -> None: ...
18
- def StartServiceCtrlDispatcher(*args): ... # incomplete
18
+ def StartServiceCtrlDispatcher(): ...
19
19
 
20
20
  COINIT_APARTMENTTHREADED: int
21
21
  COINIT_DISABLE_OLE1DDE: int
@@ -1,7 +1,7 @@
1
1
  from win32.lib.pywintypes import error as error
2
2
 
3
3
  def GetHandle(*args): ... # incomplete
4
- def GetTracer(*args): ... # incomplete
4
+ def GetTracer(): ...
5
5
  def InitRead(*args): ... # incomplete
6
6
  def InitWrite(*args): ... # incomplete
7
7
  def TermRead(*args): ... # incomplete
@@ -32,6 +32,7 @@ WTSClientHardwareId: int
32
32
  WTSClientName: int
33
33
  WTSClientProductId: int
34
34
  WTSClientProtocolType: int
35
+ WTSIsRemoteSession: int
35
36
  WTSConnectQuery: int
36
37
  WTSConnectState: int
37
38
  WTSConnected: int
@@ -3,6 +3,7 @@ from typing import Final
3
3
  from typing_extensions import TypeAlias
4
4
 
5
5
  import _win32typing
6
+ from pythoncom import com_record
6
7
  from win32com.client import dynamic
7
8
 
8
9
  _Stringifiable: TypeAlias = object
@@ -46,7 +47,8 @@ class EventsProxy:
46
47
  def DispatchWithEvents(clsid, user_event_class): ...
47
48
  def WithEvents(disp, user_event_class): ...
48
49
  def getevents(clsid): ...
49
- def Record(name, object): ...
50
+ def Record(name, object) -> com_record: ...
51
+ def register_record_class(cls) -> None: ...
50
52
 
51
53
  class DispatchBaseClass:
52
54
  def __init__(self, oobj: Incomplete | None = ...) -> None: ...
@@ -1,5 +1,5 @@
1
1
  import sys
2
- from _typeshed import ReadableBuffer
2
+ from _typeshed import ReadableBuffer, Unused
3
3
  from collections.abc import Callable, Mapping
4
4
  from typing import Any, AnyStr, Generic, Literal, TypeVar, final, overload
5
5
  from typing_extensions import Self
@@ -568,7 +568,7 @@ class Pattern(Generic[AnyStr]):
568
568
  timeout: float | None = None,
569
569
  ) -> _regex.Scanner[bytes]: ...
570
570
  def __copy__(self) -> Self: ...
571
- def __deepcopy__(self) -> Self: ...
571
+ def __deepcopy__(self, memo: Unused, /) -> Self: ...
572
572
  if sys.version_info >= (3, 9):
573
573
  def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
574
574
 
@@ -632,8 +632,8 @@ class Match(Generic[AnyStr]):
632
632
  def ends(self, group: int | str = ..., /) -> list[int]: ...
633
633
  @overload
634
634
  def ends(self, group1: int | str, group2: int | str, /, *groups: int | str) -> tuple[list[int], ...]: ...
635
- def expand(self, template: AnyStr) -> AnyStr: ...
636
- def expandf(self, format: AnyStr) -> AnyStr: ...
635
+ def expand(self, template: AnyStr, /) -> AnyStr: ...
636
+ def expandf(self, format: AnyStr, /) -> AnyStr: ...
637
637
  @overload
638
638
  def captures(self, group: int | str = ..., /) -> list[AnyStr]: ...
639
639
  @overload
@@ -647,6 +647,6 @@ class Match(Generic[AnyStr]):
647
647
  @overload
648
648
  def __getitem__(self, key: int | str, /) -> AnyStr | Any: ...
649
649
  def __copy__(self) -> Self: ...
650
- def __deepcopy__(self) -> Self: ...
650
+ def __deepcopy__(self, memo: Unused, /) -> Self: ...
651
651
  if sys.version_info >= (3, 9):
652
652
  def __class_getitem__(cls, item: Any, /) -> GenericAlias: ...
@@ -1,16 +1,4 @@
1
- from . import packages as packages, utils as utils
2
- from .__version__ import (
3
- __author__ as __author__,
4
- __author_email__ as __author_email__,
5
- __build__ as __build__,
6
- __cake__ as __cake__,
7
- __copyright__ as __copyright__,
8
- __description__ as __description__,
9
- __license__ as __license__,
10
- __title__ as __title__,
11
- __url__ as __url__,
12
- __version__ as __version__,
13
- )
1
+ from . import __version__ as version_mod, packages as packages, utils as utils
14
2
  from .api import (
15
3
  delete as delete,
16
4
  get as get,
@@ -37,4 +25,15 @@ from .models import PreparedRequest as PreparedRequest, Request as Request, Resp
37
25
  from .sessions import Session as Session, session as session
38
26
  from .status_codes import codes as codes
39
27
 
28
+ __author__ = version_mod.__author__
29
+ __author_email__ = version_mod.__author_email__
30
+ __build__ = version_mod.__build__
31
+ __cake__ = version_mod.__cake__
32
+ __copyright__ = version_mod.__copyright__
33
+ __description__ = version_mod.__description__
34
+ __license__ = version_mod.__license__
35
+ __title__ = version_mod.__title__
36
+ __url__ = version_mod.__url__
37
+ __version__ = version_mod.__version__
38
+
40
39
  def check_compatibility(urllib3_version: str, chardet_version: str | None, charset_normalizer_version: str | None) -> None: ...
@@ -1,5 +1,6 @@
1
1
  from _typeshed import Incomplete
2
2
  from logging import Logger
3
+ from typing import Any
3
4
 
4
5
  from oauthlib.oauth1 import Client
5
6
  from requests.auth import AuthBase
@@ -27,7 +28,9 @@ class OAuth1(AuthBase):
27
28
  client_class: type[Client] | None = None,
28
29
  force_include_body: bool = False,
29
30
  *,
31
+ realm: Incomplete | None = None,
30
32
  encoding: str = "utf-8",
31
33
  nonce: Incomplete | None = None,
32
34
  timestamp: Incomplete | None = None,
35
+ **kwargs: Any, # passed to client_class's __init__
33
36
  ) -> None: ...
@@ -1,9 +1,10 @@
1
- version = "75.8.*"
1
+ version = "~=76.0.0"
2
2
  upstream_repository = "https://github.com/pypa/setuptools"
3
3
  extra_description = """\
4
- If using `setuptools >= 71.1` *only* for `pkg_resources`,
5
- you don't need `types-setuptools` since `pkg_resources` is now typed.\
4
+ Given that `pkg_resources` is typed since `setuptools >= 71.1`, \
5
+ it is no longer included with `types-setuptools`.
6
6
  """
7
+ requires = ["setuptools"] # For pkg_resources
7
8
 
8
9
  [tool.stubtest]
9
10
  # darwin is equivalent to linux for OS-specific methods
@@ -1 +1,12 @@
1
1
  from setuptools._distutils.ccompiler import *
2
+ from setuptools._distutils.ccompiler import CCompiler as CCompiler
3
+
4
+ __all__ = [
5
+ "CompileError",
6
+ "LinkError",
7
+ "gen_lib_options",
8
+ "gen_preprocess_options",
9
+ "get_default_compiler",
10
+ "new_compiler",
11
+ "show_compilers",
12
+ ]
@@ -0,0 +1 @@
1
+ from setuptools._distutils.compilers.C.base import *
@@ -0,0 +1 @@
1
+ from setuptools._distutils.compilers.C.errors import *
@@ -0,0 +1 @@
1
+ from setuptools._distutils.compilers.C.msvc import *
@@ -1,22 +1,3 @@
1
- from binascii import Incomplete
2
- from typing import ClassVar, Final
1
+ from .compilers.C import msvc
3
2
 
4
- from .ccompiler import CCompiler
5
-
6
- PLAT_SPEC_TO_RUNTIME: Final[dict[str, str]]
7
-
8
- class MSVCCompiler(CCompiler):
9
- compiler_type: ClassVar[str]
10
- executables: ClassVar[dict[Incomplete, Incomplete]]
11
- src_extensions: ClassVar[list[str]]
12
- res_extension: ClassVar[str]
13
- obj_extension: ClassVar[str]
14
- static_lib_extension: ClassVar[str]
15
- shared_lib_extension: ClassVar[str]
16
- shared_lib_format: ClassVar[str]
17
- static_lib_format = shared_lib_format
18
- exe_extension: ClassVar[str]
19
- initialized: bool
20
- def initialize(self, plat_name: str | None = None) -> None: ...
21
- @property
22
- def out_extensions(self) -> dict[str, str]: ...
3
+ MSVCCompiler = msvc.Compiler
@@ -32,4 +32,4 @@ def make_tarball(
32
32
  owner: str | None = None,
33
33
  group: str | None = None,
34
34
  ) -> str: ...
35
- def make_zipfile(base_name: str, base_dir: str, verbose: bool = False, dry_run: bool = False) -> str: ...
35
+ def make_zipfile(base_name: str, base_dir: StrPath, verbose: bool = False, dry_run: bool = False) -> str: ...
@@ -1,180 +1,15 @@
1
- from _typeshed import BytesPath, StrPath, Unused
2
- from collections.abc import Callable, Iterable, MutableSequence, Sequence
3
- from typing import ClassVar, Literal, TypeVar, overload
4
- from typing_extensions import TypeAlias, TypeVarTuple, Unpack
1
+ from .compilers.C import base
2
+ from .compilers.C.base import gen_lib_options, gen_preprocess_options, get_default_compiler, new_compiler, show_compilers
3
+ from .compilers.C.errors import CompileError, LinkError
5
4
 
6
- _Macro: TypeAlias = tuple[str] | tuple[str, str | None]
7
- _StrPathT = TypeVar("_StrPathT", bound=StrPath)
8
- _BytesPathT = TypeVar("_BytesPathT", bound=BytesPath)
9
- _Ts = TypeVarTuple("_Ts")
5
+ __all__ = [
6
+ "CompileError",
7
+ "LinkError",
8
+ "gen_lib_options",
9
+ "gen_preprocess_options",
10
+ "get_default_compiler",
11
+ "new_compiler",
12
+ "show_compilers",
13
+ ]
10
14
 
11
- def gen_lib_options(
12
- compiler: CCompiler, library_dirs: list[str], runtime_library_dirs: list[str], libraries: list[str]
13
- ) -> list[str]: ...
14
- def gen_preprocess_options(macros: list[_Macro], include_dirs: list[str]) -> list[str]: ...
15
- def get_default_compiler(osname: str | None = None, platform: str | None = None) -> str: ...
16
- def new_compiler(
17
- plat: str | None = None, compiler: str | None = None, verbose: bool = False, dry_run: bool = False, force: bool = False
18
- ) -> CCompiler: ...
19
- def show_compilers() -> None: ...
20
-
21
- class CCompiler:
22
- src_extensions: ClassVar[list[str] | None]
23
- obj_extension: ClassVar[str | None]
24
- static_lib_extension: ClassVar[str | None]
25
- shared_lib_extension: ClassVar[str | None]
26
- static_lib_format: ClassVar[str | None]
27
- shared_lib_format: ClassVar[str | None]
28
- exe_extension: ClassVar[str | None]
29
- language_map: ClassVar[dict[str, str]]
30
- language_order: ClassVar[list[str]]
31
- dry_run: bool
32
- force: bool
33
- verbose: bool
34
- output_dir: str | None
35
- macros: list[_Macro]
36
- include_dirs: list[str]
37
- libraries: list[str]
38
- library_dirs: list[str]
39
- runtime_library_dirs: list[str]
40
- objects: list[str]
41
- def __init__(self, verbose: bool = False, dry_run: bool = False, force: bool = False) -> None: ...
42
- def add_include_dir(self, dir: str) -> None: ...
43
- def set_include_dirs(self, dirs: list[str]) -> None: ...
44
- def add_library(self, libname: str) -> None: ...
45
- def set_libraries(self, libnames: list[str]) -> None: ...
46
- def add_library_dir(self, dir: str) -> None: ...
47
- def set_library_dirs(self, dirs: list[str]) -> None: ...
48
- def add_runtime_library_dir(self, dir: str) -> None: ...
49
- def set_runtime_library_dirs(self, dirs: list[str]) -> None: ...
50
- def define_macro(self, name: str, value: str | None = None) -> None: ...
51
- def undefine_macro(self, name: str) -> None: ...
52
- def add_link_object(self, object: str) -> None: ...
53
- def set_link_objects(self, objects: list[str]) -> None: ...
54
- def detect_language(self, sources: str | list[str]) -> str | None: ...
55
- def find_library_file(self, dirs: list[str], lib: str, debug: bool = False) -> str | None: ...
56
- def has_function(
57
- self,
58
- funcname: str,
59
- includes: list[str] | None = None,
60
- include_dirs: list[str] | None = None,
61
- libraries: list[str] | None = None,
62
- library_dirs: list[str] | None = None,
63
- ) -> bool: ...
64
- def library_dir_option(self, dir: str) -> str: ...
65
- def library_option(self, lib: str) -> str: ...
66
- def runtime_library_dir_option(self, dir: str) -> str: ...
67
- def set_executables(self, **args: str) -> None: ...
68
- def compile(
69
- self,
70
- sources: Sequence[StrPath],
71
- output_dir: str | None = None,
72
- macros: list[_Macro] | None = None,
73
- include_dirs: list[str] | None = None,
74
- debug: bool = False,
75
- extra_preargs: list[str] | None = None,
76
- extra_postargs: list[str] | None = None,
77
- depends: list[str] | None = None,
78
- ) -> list[str]: ...
79
- def create_static_lib(
80
- self,
81
- objects: list[str],
82
- output_libname: str,
83
- output_dir: str | None = None,
84
- debug: bool = False,
85
- target_lang: str | None = None,
86
- ) -> None: ...
87
- def link(
88
- self,
89
- target_desc: str,
90
- objects: list[str],
91
- output_filename: str,
92
- output_dir: str | None = None,
93
- libraries: list[str] | None = None,
94
- library_dirs: list[str] | None = None,
95
- runtime_library_dirs: list[str] | None = None,
96
- export_symbols: list[str] | None = None,
97
- debug: bool = False,
98
- extra_preargs: list[str] | None = None,
99
- extra_postargs: list[str] | None = None,
100
- build_temp: str | None = None,
101
- target_lang: str | None = None,
102
- ) -> None: ...
103
- def link_executable(
104
- self,
105
- objects: list[str],
106
- output_progname: str,
107
- output_dir: str | None = None,
108
- libraries: list[str] | None = None,
109
- library_dirs: list[str] | None = None,
110
- runtime_library_dirs: list[str] | None = None,
111
- debug: bool = False,
112
- extra_preargs: list[str] | None = None,
113
- extra_postargs: list[str] | None = None,
114
- target_lang: str | None = None,
115
- ) -> None: ...
116
- def link_shared_lib(
117
- self,
118
- objects: list[str],
119
- output_libname: str,
120
- output_dir: str | None = None,
121
- libraries: list[str] | None = None,
122
- library_dirs: list[str] | None = None,
123
- runtime_library_dirs: list[str] | None = None,
124
- export_symbols: list[str] | None = None,
125
- debug: bool = False,
126
- extra_preargs: list[str] | None = None,
127
- extra_postargs: list[str] | None = None,
128
- build_temp: str | None = None,
129
- target_lang: str | None = None,
130
- ) -> None: ...
131
- def link_shared_object(
132
- self,
133
- objects: list[str],
134
- output_filename: str,
135
- output_dir: str | None = None,
136
- libraries: list[str] | None = None,
137
- library_dirs: list[str] | None = None,
138
- runtime_library_dirs: list[str] | None = None,
139
- export_symbols: list[str] | None = None,
140
- debug: bool = False,
141
- extra_preargs: list[str] | None = None,
142
- extra_postargs: list[str] | None = None,
143
- build_temp: str | None = None,
144
- target_lang: str | None = None,
145
- ) -> None: ...
146
- def preprocess(
147
- self,
148
- source: str,
149
- output_file: str | None = None,
150
- macros: list[_Macro] | None = None,
151
- include_dirs: list[str] | None = None,
152
- extra_preargs: list[str] | None = None,
153
- extra_postargs: list[str] | None = None,
154
- ) -> None: ...
155
- @overload
156
- def executable_filename(self, basename: str, strip_dir: Literal[0, False] = 0, output_dir: StrPath = "") -> str: ...
157
- @overload
158
- def executable_filename(self, basename: StrPath, strip_dir: Literal[1, True], output_dir: StrPath = "") -> str: ...
159
- def library_filename(
160
- self, libname: str, lib_type: str = "static", strip_dir: bool = False, output_dir: StrPath = ""
161
- ) -> str: ...
162
- def object_filenames(
163
- self, source_filenames: Iterable[StrPath], strip_dir: bool = False, output_dir: StrPath | None = ""
164
- ) -> list[str]: ...
165
- @overload
166
- def shared_object_filename(self, basename: str, strip_dir: Literal[0, False] = 0, output_dir: StrPath = "") -> str: ...
167
- @overload
168
- def shared_object_filename(self, basename: StrPath, strip_dir: Literal[1, True], output_dir: StrPath = "") -> str: ...
169
- def execute(
170
- self, func: Callable[[Unpack[_Ts]], Unused], args: tuple[Unpack[_Ts]], msg: str | None = None, level: int = 1
171
- ) -> None: ...
172
- def spawn(self, cmd: MutableSequence[str]) -> None: ...
173
- def mkpath(self, name: str, mode: int = 0o777) -> None: ...
174
- @overload
175
- def move_file(self, src: StrPath, dst: _StrPathT) -> _StrPathT | str: ...
176
- @overload
177
- def move_file(self, src: BytesPath, dst: _BytesPathT) -> _BytesPathT | bytes: ...
178
- def announce(self, msg: str, level: int = 1) -> None: ...
179
- def warn(self, msg: str) -> None: ...
180
- def debug_print(self, msg: str) -> None: ...
15
+ CCompiler = base.Compiler
@@ -4,7 +4,7 @@ from typing import ClassVar
4
4
  from ..cmd import Command
5
5
 
6
6
  class bdist_rpm(Command):
7
- description: str
7
+ description: ClassVar[str]
8
8
  user_options: ClassVar[list[tuple[str, str | None, str]]]
9
9
  boolean_options: ClassVar[list[str]]
10
10
  negative_opt: ClassVar[dict[str, str]]
@@ -41,12 +41,12 @@ class bdist_rpm(Command):
41
41
  conflicts: Incomplete
42
42
  build_requires: Incomplete
43
43
  obsoletes: Incomplete
44
- keep_temp: int
45
- use_rpm_opt_flags: int
46
- rpm3_mode: int
47
- no_autoreq: int
44
+ keep_temp: bool
45
+ use_rpm_opt_flags: bool
46
+ rpm3_mode: bool
47
+ no_autoreq: bool
48
48
  force_arch: Incomplete
49
- quiet: int
49
+ quiet: bool
50
50
  def initialize_options(self) -> None: ...
51
51
  def finalize_options(self) -> None: ...
52
52
  def finalize_package_data(self) -> None: ...
@@ -7,7 +7,7 @@ from ..cmd import Command
7
7
  def show_compilers() -> None: ...
8
8
 
9
9
  class build(Command):
10
- description: str
10
+ description: ClassVar[str]
11
11
  user_options: ClassVar[list[tuple[str, str | None, str]]]
12
12
  boolean_options: ClassVar[list[str]]
13
13
  help_options: ClassVar[list[tuple[str, str | None, str, Callable[[], Unused]]]]
@@ -20,7 +20,7 @@ class build(Command):
20
20
  compiler: Incomplete
21
21
  plat_name: Incomplete
22
22
  debug: Incomplete
23
- force: int
23
+ force: bool
24
24
  executable: Incomplete
25
25
  parallel: Incomplete
26
26
  def initialize_options(self) -> None: ...
@@ -5,7 +5,7 @@ from typing import ClassVar
5
5
  from ..cmd import Command
6
6
 
7
7
  class build_clib(Command):
8
- description: str
8
+ description: ClassVar[str]
9
9
  user_options: ClassVar[list[tuple[str, str, str]]]
10
10
  boolean_options: ClassVar[list[str]]
11
11
  help_options: ClassVar[list[tuple[str, str | None, str, Callable[[], Unused]]]]
@@ -16,7 +16,7 @@ class build_clib(Command):
16
16
  define: Incomplete
17
17
  undef: Incomplete
18
18
  debug: Incomplete
19
- force: int
19
+ force: bool
20
20
  compiler: Incomplete
21
21
  def initialize_options(self) -> None: ...
22
22
  def finalize_options(self) -> None: ...
@@ -6,7 +6,7 @@ from ..cmd import Command
6
6
  from ..extension import Extension
7
7
 
8
8
  class build_ext(Command):
9
- description: str
9
+ description: ClassVar[str]
10
10
  sep_by: Incomplete
11
11
  user_options: ClassVar[list[tuple[str, str | None, str]]]
12
12
  boolean_options: ClassVar[list[str]]
@@ -15,7 +15,7 @@ class build_ext(Command):
15
15
  build_lib: Incomplete
16
16
  plat_name: Incomplete
17
17
  build_temp: Incomplete
18
- inplace: int
18
+ inplace: bool
19
19
  package: Incomplete
20
20
  include_dirs: Incomplete
21
21
  define: Incomplete
@@ -4,7 +4,7 @@ from typing import ClassVar
4
4
  from ..cmd import Command
5
5
 
6
6
  class build_py(Command):
7
- description: str
7
+ description: ClassVar[str]
8
8
  user_options: ClassVar[list[tuple[str, str | None, str]]]
9
9
  boolean_options: ClassVar[list[str]]
10
10
  negative_opt: ClassVar[dict[str, str]]
@@ -13,8 +13,8 @@ class build_py(Command):
13
13
  package: Incomplete
14
14
  package_data: Incomplete
15
15
  package_dir: Incomplete
16
- compile: int
17
- optimize: int
16
+ compile: bool
17
+ optimize: bool
18
18
  force: Incomplete
19
19
  def initialize_options(self) -> None: ...
20
20
  packages: Incomplete
@@ -4,7 +4,7 @@ from typing import ClassVar
4
4
  from ..cmd import Command
5
5
 
6
6
  class install(Command):
7
- description: str
7
+ description: ClassVar[str]
8
8
  user_options: ClassVar[list[tuple[str, str | None, str]]]
9
9
  boolean_options: ClassVar[list[str]]
10
10
  negative_opt: ClassVar[dict[str, str]]
@@ -26,10 +26,10 @@ class install(Command):
26
26
  compile: Incomplete
27
27
  optimize: Incomplete
28
28
  extra_path: Incomplete
29
- install_path_file: int
30
- force: int
31
- skip_build: int
32
- warn_dir: int
29
+ install_path_file: bool
30
+ force: bool
31
+ skip_build: bool
32
+ warn_dir: bool
33
33
  build_base: Incomplete
34
34
  build_lib: Incomplete
35
35
  record: Incomplete
@@ -4,7 +4,7 @@ from typing import ClassVar
4
4
  from ..cmd import Command
5
5
 
6
6
  class install_data(Command):
7
- description: str
7
+ description: ClassVar[str]
8
8
  user_options: ClassVar[list[tuple[str, str | None, str]]]
9
9
  boolean_options: Incomplete
10
10
  install_dir: Incomplete
@@ -1,16 +1,16 @@
1
- from _typeshed import Incomplete
1
+ from _typeshed import Incomplete, MaybeNone
2
2
  from typing import ClassVar
3
3
 
4
4
  from ..cmd import Command
5
5
 
6
6
  class install_lib(Command):
7
- description: str
7
+ description: ClassVar[str]
8
8
  user_options: ClassVar[list[tuple[str, str | None, str]]]
9
9
  boolean_options: ClassVar[list[str]]
10
10
  negative_opt: ClassVar[dict[str, str]]
11
11
  install_dir: Incomplete
12
12
  build_dir: Incomplete
13
- force: int
13
+ force: bool
14
14
  compile: Incomplete
15
15
  optimize: Incomplete
16
16
  skip_build: Incomplete
@@ -18,7 +18,7 @@ class install_lib(Command):
18
18
  def finalize_options(self) -> None: ...
19
19
  def run(self) -> None: ...
20
20
  def build(self) -> None: ...
21
- def install(self) -> list[str]: ...
21
+ def install(self) -> list[str] | MaybeNone: ...
22
22
  def byte_compile(self, files) -> None: ...
23
23
  def get_outputs(self): ...
24
24
  def get_inputs(self): ...
@@ -4,11 +4,11 @@ from typing import ClassVar
4
4
  from ..cmd import Command
5
5
 
6
6
  class install_scripts(Command):
7
- description: str
7
+ description: ClassVar[str]
8
8
  user_options: ClassVar[list[tuple[str, str | None, str]]]
9
9
  boolean_options: ClassVar[list[str]]
10
10
  install_dir: Incomplete
11
- force: int
11
+ force: bool
12
12
  build_dir: Incomplete
13
13
  skip_build: Incomplete
14
14
  def initialize_options(self) -> None: ...
@@ -18,15 +18,15 @@ class sdist(Command):
18
18
  READMES: ClassVar[tuple[str, ...]]
19
19
  template: Incomplete
20
20
  manifest: Incomplete
21
- use_defaults: int
22
- prune: int
23
- manifest_only: int
24
- force_manifest: int
21
+ use_defaults: bool
22
+ prune: bool
23
+ manifest_only: bool
24
+ force_manifest: bool
25
25
  formats: Incomplete
26
- keep_temp: int
26
+ keep_temp: bool
27
27
  dist_dir: Incomplete
28
28
  archive_files: Incomplete
29
- metadata_check: int
29
+ metadata_check: int # Soon to be updated to boolean upstream
30
30
  owner: Incomplete
31
31
  group: Incomplete
32
32
  def initialize_options(self) -> None: ...
@@ -1 +1,6 @@
1
- def consolidate_linker_args(args: list[str]) -> str | list[str]: ...
1
+ from collections.abc import Iterable
2
+ from typing import TypeVar
3
+
4
+ _IterableT = TypeVar("_IterableT", bound=Iterable[str])
5
+
6
+ def consolidate_linker_args(args: _IterableT) -> _IterableT | str: ...