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
@@ -0,0 +1,56 @@
1
+ import ast
2
+ from collections.abc import Callable, Iterable
3
+ from types import FrameType
4
+ from typing import Any, Literal, TypeVar
5
+ from typing_extensions import TypeAlias
6
+
7
+ from .watch_print import WatchPrint
8
+
9
+ _T = TypeVar("_T")
10
+ _TrackKind: TypeAlias = Literal["object", "variable"] | list[Literal["object", "variable"]]
11
+
12
+ class WatchElement:
13
+ # User-defined callbacks passed to `__init__` set as instance variables have arguments of type `Any` to be
14
+ # compatible with more precisely-annotated signatures. These callbacks are passed from `watchpoints.watch.Watch`.
15
+
16
+ alias: str | None
17
+ attr: str | None
18
+ cmp: Callable[[Any, Any], bool] | None
19
+ copy: Callable[[Any], object] | None # User-defined copy callback
20
+ default_alias: str | None
21
+ deepcopy: bool
22
+ exist: bool
23
+ frame: FrameType
24
+ localvar: str | None
25
+ obj: Any
26
+ parent: Any
27
+ prev_obj: Any
28
+ prev_obj_repr: str
29
+ subscr: Any
30
+ watch_print: WatchPrint
31
+ when: Callable[[Any], bool] | None
32
+
33
+ def __init__(
34
+ self,
35
+ frame: FrameType,
36
+ node: ast.expr,
37
+ *,
38
+ alias: str | None = ...,
39
+ callback: Callable[[FrameType, WatchElement, tuple[str, str, int | None]], None] | None = ...,
40
+ cmp: Callable[[Any, Any], bool] | None = ..., # User-defined comparison callback
41
+ copy: Callable[[_T], _T] | None = ...,
42
+ deepcopy: bool = False,
43
+ default_alias: str | None = ...,
44
+ track: _TrackKind = ...,
45
+ watch_print: WatchPrint = ...,
46
+ when: Callable[[Any], bool] | None = ..., # User-defined callback for conditional watchpoints
47
+ ) -> None: ...
48
+ def belong_to(self, lst: Iterable[object]) -> bool: ...
49
+ def changed(self, frame: FrameType) -> tuple[bool, bool]: ...
50
+ def obj_changed(self, other: object) -> bool: ...
51
+ def same(self, other: object) -> bool: ...
52
+ @property
53
+ def track(self) -> _TrackKind: ...
54
+ @track.setter
55
+ def track(self, val: _TrackKind) -> None: ...
56
+ def update(self) -> None: ...
@@ -0,0 +1,24 @@
1
+ from _typeshed import SupportsWrite
2
+ from collections.abc import Callable
3
+ from types import FrameType
4
+ from typing import Any
5
+
6
+ from .watch_element import WatchElement
7
+
8
+ class WatchPrint:
9
+ # User-defined callbacks passed to `__init__` set as instance variables have arguments of type `Any` to be
10
+ # compatible with more precisely-annotated signatures. These callbacks are passed from `watchpoints.watch.Watch`.
11
+
12
+ custom_printer: Callable[[Any], None] | None
13
+ file: str | SupportsWrite[str] | None
14
+ stack_limit: int | None
15
+
16
+ def __init__(
17
+ self,
18
+ file: str | SupportsWrite[str] | None = ...,
19
+ stack_limit: int | None = ...,
20
+ custom_printer: Callable[[Any], None] | None = ..., # User-defined printing callback
21
+ ) -> None: ...
22
+ def __call__(self, frame: FrameType, elem: WatchElement, exec_info: tuple[str, str, int | None]) -> None: ...
23
+ def getsourceline(self, exec_info: tuple[str, str, int | None]) -> str: ...
24
+ def printer(self, obj: object) -> None: ...
@@ -1,2 +1,2 @@
1
- version = "1.5.6.4"
1
+ version = "1.5.6.6"
2
2
  upstream_repository = "https://github.com/sergey-dryabzhinsky/python-zstd"
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "basedpyright",
3
3
  "displayName": "basedpyright",
4
4
  "description": "a fork of pyright with various type checking improvements, pylance features and more.",
5
- "version": "1.28.3",
5
+ "version": "1.28.4",
6
6
  "license": "MIT",
7
7
  "author": {
8
8
  "name": "detachhead"
@@ -1,543 +0,0 @@
1
- # `pkg_resources` package of `types-setuptools` is now obsolete.
2
- # Changes here should be mirrored to https://github.com/pypa/setuptools/tree/main/pkg_resources
3
-
4
- import types
5
- import zipimport
6
- from _typeshed import BytesPath, Incomplete, StrOrBytesPath, StrPath, Unused
7
- from _typeshed.importlib import LoaderProtocol
8
- from collections.abc import Callable, Generator, Iterable, Iterator, Sequence
9
- from io import BytesIO
10
- from itertools import chain
11
- from pkgutil import get_importer as get_importer
12
- from re import Pattern
13
- from typing import IO, Any, ClassVar, Final, Literal, NamedTuple, NoReturn, Protocol, TypeVar, overload
14
- from typing_extensions import Self, TypeAlias
15
- from zipfile import ZipInfo
16
-
17
- from ._vendored_packaging import requirements as _packaging_requirements, version as _packaging_version
18
-
19
- # defined in setuptools
20
- _T = TypeVar("_T")
21
- _DistributionT = TypeVar("_DistributionT", bound=Distribution)
22
- _NestedStr: TypeAlias = str | Iterable[_NestedStr]
23
- _StrictInstallerType: TypeAlias = Callable[[Requirement], _DistributionT]
24
- _InstallerType: TypeAlias = Callable[[Requirement], Distribution | None]
25
- _PkgReqType: TypeAlias = str | Requirement
26
- _EPDistType: TypeAlias = Distribution | _PkgReqType
27
- _MetadataType: TypeAlias = IResourceProvider | None
28
- _ResolvedEntryPoint: TypeAlias = Any # Can be any attribute in the module
29
- _ResourceStream: TypeAlias = Incomplete # A readable file-like object
30
- _ModuleLike: TypeAlias = object | types.ModuleType # Any object that optionally has __loader__ or __file__, usually a module
31
- # Any: Should be _ModuleLike but we end up with issues where _ModuleLike doesn't have _ZipLoaderModule's __loader__
32
- _ProviderFactoryType: TypeAlias = Callable[[Any], IResourceProvider]
33
- _DistFinderType: TypeAlias = Callable[[_T, str, bool], Iterable[Distribution]]
34
- _NSHandlerType: TypeAlias = Callable[[_T, str, str, types.ModuleType], str | None]
35
-
36
- __all__ = [
37
- "require",
38
- "run_script",
39
- "get_provider",
40
- "get_distribution",
41
- "load_entry_point",
42
- "get_entry_map",
43
- "get_entry_info",
44
- "iter_entry_points",
45
- "resource_string",
46
- "resource_stream",
47
- "resource_filename",
48
- "resource_listdir",
49
- "resource_exists",
50
- "resource_isdir",
51
- "declare_namespace",
52
- "working_set",
53
- "add_activation_listener",
54
- "find_distributions",
55
- "set_extraction_path",
56
- "cleanup_resources",
57
- "get_default_cache",
58
- "Environment",
59
- "WorkingSet",
60
- "ResourceManager",
61
- "Distribution",
62
- "Requirement",
63
- "EntryPoint",
64
- "ResolutionError",
65
- "VersionConflict",
66
- "DistributionNotFound",
67
- "UnknownExtra",
68
- "ExtractionError",
69
- "PEP440Warning",
70
- "parse_requirements",
71
- "parse_version",
72
- "safe_name",
73
- "safe_version",
74
- "get_platform",
75
- "compatible_platforms",
76
- "yield_lines",
77
- "split_sections",
78
- "safe_extra",
79
- "to_filename",
80
- "invalid_marker",
81
- "evaluate_marker",
82
- "ensure_directory",
83
- "normalize_path",
84
- "EGG_DIST",
85
- "BINARY_DIST",
86
- "SOURCE_DIST",
87
- "CHECKOUT_DIST",
88
- "DEVELOP_DIST",
89
- "IMetadataProvider",
90
- "IResourceProvider",
91
- "FileMetadata",
92
- "PathMetadata",
93
- "EggMetadata",
94
- "EmptyProvider",
95
- "empty_provider",
96
- "NullProvider",
97
- "EggProvider",
98
- "DefaultProvider",
99
- "ZipProvider",
100
- "register_finder",
101
- "register_namespace_handler",
102
- "register_loader_type",
103
- "fixup_namespace_packages",
104
- "get_importer",
105
- "PkgResourcesDeprecationWarning",
106
- "run_main",
107
- "AvailableDistributions",
108
- ]
109
-
110
- class _ZipLoaderModule(Protocol):
111
- __loader__: zipimport.zipimporter
112
-
113
- def declare_namespace(packageName: str) -> None: ...
114
- def fixup_namespace_packages(path_item: str, parent: str | None = None) -> None: ...
115
-
116
- class WorkingSet:
117
- entries: list[str]
118
- entry_keys: dict[str | None, list[str]]
119
- by_key: dict[str, Distribution]
120
- normalized_to_canonical_keys: dict[str, str]
121
- callbacks: list[Callable[[Distribution], object]]
122
- def __init__(self, entries: Iterable[str] | None = None) -> None: ...
123
- def add_entry(self, entry: str) -> None: ...
124
- def __contains__(self, dist: Distribution) -> bool: ...
125
- def find(self, req: Requirement) -> Distribution | None: ...
126
- def iter_entry_points(self, group: str, name: str | None = None) -> Generator[EntryPoint, None, None]: ...
127
- def run_script(self, requires: str, script_name: str) -> None: ...
128
- def __iter__(self) -> Iterator[Distribution]: ...
129
- def add(self, dist: Distribution, entry: str | None = None, insert: bool = True, replace: bool = False) -> None: ...
130
- @overload
131
- def resolve(
132
- self,
133
- requirements: Iterable[Requirement],
134
- env: Environment | None,
135
- installer: _StrictInstallerType[_DistributionT],
136
- replace_conflicting: bool = False,
137
- extras: tuple[str, ...] | None = None,
138
- ) -> list[_DistributionT]: ...
139
- @overload
140
- def resolve(
141
- self,
142
- requirements: Iterable[Requirement],
143
- env: Environment | None = None,
144
- *,
145
- installer: _StrictInstallerType[_DistributionT],
146
- replace_conflicting: bool = False,
147
- extras: tuple[str, ...] | None = None,
148
- ) -> list[_DistributionT]: ...
149
- @overload
150
- def resolve(
151
- self,
152
- requirements: Iterable[Requirement],
153
- env: Environment | None = None,
154
- installer: _InstallerType | None = None,
155
- replace_conflicting: bool = False,
156
- extras: tuple[str, ...] | None = None,
157
- ) -> list[Distribution]: ...
158
- @overload
159
- def find_plugins(
160
- self,
161
- plugin_env: Environment,
162
- full_env: Environment | None,
163
- installer: _StrictInstallerType[_DistributionT],
164
- fallback: bool = True,
165
- ) -> tuple[list[_DistributionT], dict[Distribution, Exception]]: ...
166
- @overload
167
- def find_plugins(
168
- self,
169
- plugin_env: Environment,
170
- full_env: Environment | None = None,
171
- *,
172
- installer: _StrictInstallerType[_DistributionT],
173
- fallback: bool = True,
174
- ) -> tuple[list[_DistributionT], dict[Distribution, Exception]]: ...
175
- @overload
176
- def find_plugins(
177
- self,
178
- plugin_env: Environment,
179
- full_env: Environment | None = None,
180
- installer: _InstallerType | None = None,
181
- fallback: bool = True,
182
- ) -> tuple[list[Distribution], dict[Distribution, Exception]]: ...
183
- def require(self, *requirements: _NestedStr) -> Sequence[Distribution]: ...
184
- def subscribe(self, callback: Callable[[Distribution], Unused], existing: bool = True) -> None: ...
185
-
186
- class Environment:
187
- def __init__(
188
- self, search_path: Iterable[str] | None = None, platform: str | None = ..., python: str | None = ...
189
- ) -> None: ...
190
- def can_add(self, dist: Distribution) -> bool: ...
191
- def remove(self, dist: Distribution) -> None: ...
192
- def scan(self, search_path: Iterable[str] | None = None) -> None: ...
193
- def __getitem__(self, project_name: str) -> list[Distribution]: ...
194
- def add(self, dist: Distribution) -> None: ...
195
- @overload
196
- def best_match(
197
- self,
198
- req: Requirement,
199
- working_set: WorkingSet,
200
- installer: _StrictInstallerType[_DistributionT],
201
- replace_conflicting: bool = False,
202
- ) -> _DistributionT: ...
203
- @overload
204
- def best_match(
205
- self,
206
- req: Requirement,
207
- working_set: WorkingSet,
208
- installer: _InstallerType | None = None,
209
- replace_conflicting: bool = False,
210
- ) -> Distribution | None: ...
211
- @overload
212
- def obtain(self, requirement: Requirement, installer: _StrictInstallerType[_DistributionT]) -> _DistributionT: ...
213
- @overload
214
- def obtain(self, requirement: Requirement, installer: Callable[[Requirement], None] | None = None) -> None: ...
215
- @overload
216
- def obtain(self, requirement: Requirement, installer: _InstallerType | None = None) -> Distribution | None: ...
217
- def __iter__(self) -> Iterator[str]: ...
218
- def __iadd__(self, other: Distribution | Environment) -> Self: ...
219
- def __add__(self, other: Distribution | Environment) -> Self: ...
220
-
221
- AvailableDistributions = Environment
222
-
223
- def parse_requirements(strs: _NestedStr) -> Iterator[Requirement]: ...
224
-
225
- class RequirementParseError(_packaging_requirements.InvalidRequirement): ...
226
-
227
- class Requirement(_packaging_requirements.Requirement):
228
- unsafe_name: str
229
- project_name: str
230
- key: str
231
- # packaging.requirements.Requirement uses a set for its extras. setuptools/pkg_resources uses a variable-length tuple
232
- extras: tuple[str, ...] # type: ignore[assignment]
233
- specs: list[tuple[str, str]]
234
- def __init__(self, requirement_string: str) -> None: ...
235
- def __eq__(self, other: object) -> bool: ...
236
- def __contains__(self, item: Distribution | str | tuple[str, ...]) -> bool: ...
237
- @staticmethod
238
- def parse(s: str | Iterable[str]) -> Requirement: ...
239
-
240
- def load_entry_point(dist: _EPDistType, group: str, name: str) -> _ResolvedEntryPoint: ...
241
- @overload
242
- def get_entry_map(dist: _EPDistType, group: None = None) -> dict[str, dict[str, EntryPoint]]: ...
243
- @overload
244
- def get_entry_map(dist: _EPDistType, group: str) -> dict[str, EntryPoint]: ...
245
- def get_entry_info(dist: _EPDistType, group: str, name: str) -> EntryPoint | None: ...
246
-
247
- class EntryPoint:
248
- name: str
249
- module_name: str
250
- attrs: tuple[str, ...]
251
- extras: tuple[str, ...]
252
- dist: Distribution | None
253
- def __init__(
254
- self, name: str, module_name: str, attrs: Iterable[str] = (), extras: Iterable[str] = (), dist: Distribution | None = None
255
- ) -> None: ...
256
- @overload
257
- def load(
258
- self, require: Literal[True] = True, env: Environment | None = None, installer: _InstallerType | None = None
259
- ) -> _ResolvedEntryPoint: ...
260
- @overload
261
- def load(
262
- self, require: Literal[False], *args: Environment | _InstallerType | None, **kwargs: Environment | _InstallerType | None
263
- ) -> _ResolvedEntryPoint: ...
264
- def resolve(self) -> _ResolvedEntryPoint: ...
265
- def require(self, env: Environment | None = None, installer: _InstallerType | None = None) -> None: ...
266
- pattern: ClassVar[Pattern[str]]
267
- @classmethod
268
- def parse(cls, src: str, dist: Distribution | None = None) -> Self: ...
269
- @classmethod
270
- def parse_group(cls, group: str, lines: _NestedStr, dist: Distribution | None = None) -> dict[str, Self]: ...
271
- @classmethod
272
- def parse_map(
273
- cls, data: str | Iterable[str] | dict[str, str | Iterable[str]], dist: Distribution | None = None
274
- ) -> dict[str, dict[str, Self]]: ...
275
-
276
- def find_distributions(path_item: str, only: bool = False) -> Generator[Distribution, None, None]: ...
277
- def find_eggs_in_zip(importer: zipimport.zipimporter, path_item: str, only: bool = False) -> Iterator[Distribution]: ...
278
- def find_nothing(importer: object | None, path_item: str | None, only: bool | None = False) -> tuple[Distribution, ...]: ...
279
- def find_on_path(importer: object | None, path_item: str, only: bool = False) -> Generator[Distribution, None, None]: ...
280
- def dist_factory(path_item: StrPath, entry: str, only: bool) -> Callable[[str], Iterable[Distribution]]: ...
281
-
282
- class NoDists:
283
- def __bool__(self) -> Literal[False]: ...
284
- def __call__(self, fullpath: Unused) -> Iterator[Distribution]: ...
285
-
286
- @overload
287
- def get_distribution(dist: _DistributionT) -> _DistributionT: ...
288
- @overload
289
- def get_distribution(dist: _PkgReqType) -> Distribution: ...
290
-
291
- PY_MAJOR: Final[str]
292
- EGG_DIST: Final = 3
293
- BINARY_DIST: Final = 2
294
- SOURCE_DIST: Final = 1
295
- CHECKOUT_DIST: Final = 0
296
- DEVELOP_DIST: Final = -1
297
-
298
- class ResourceManager:
299
- extraction_path: str | None
300
- cached_files: Incomplete
301
- def resource_exists(self, package_or_requirement: _PkgReqType, resource_name: str) -> bool: ...
302
- def resource_isdir(self, package_or_requirement: _PkgReqType, resource_name: str) -> bool: ...
303
- def resource_filename(self, package_or_requirement: _PkgReqType, resource_name: str) -> str: ...
304
- def resource_stream(self, package_or_requirement: _PkgReqType, resource_name: str) -> IO[bytes]: ...
305
- def resource_string(self, package_or_requirement: _PkgReqType, resource_name: str) -> bytes: ...
306
- def resource_listdir(self, package_or_requirement: _PkgReqType, resource_name: str) -> list[str]: ...
307
- def extraction_error(self) -> NoReturn: ...
308
- def get_cache_path(self, archive_name: str, names: Iterable[StrPath] = ()) -> str: ...
309
- def postprocess(self, tempname: StrOrBytesPath, filename: StrOrBytesPath) -> None: ...
310
- def set_extraction_path(self, path: str) -> None: ...
311
- def cleanup_resources(self, force: bool = False) -> list[str]: ...
312
-
313
- @overload
314
- def get_provider(moduleOrReq: str) -> IResourceProvider: ...
315
- @overload
316
- def get_provider(moduleOrReq: Requirement) -> Distribution: ...
317
-
318
- class IMetadataProvider(Protocol):
319
- def has_metadata(self, name: str) -> bool: ...
320
- def get_metadata(self, name: str) -> str: ...
321
- def get_metadata_lines(self, name: str) -> Iterator[str]: ...
322
- def metadata_isdir(self, name: str) -> bool: ...
323
- def metadata_listdir(self, name: str) -> list[str]: ...
324
- def run_script(self, script_name: str, namespace: dict[str, Any]) -> None: ...
325
-
326
- class ResolutionError(Exception): ...
327
-
328
- class VersionConflict(ResolutionError):
329
- def __init__(self, dist: Distribution, req: Requirement, /, *args: object) -> None: ...
330
- @property
331
- def dist(self) -> Distribution: ...
332
- @property
333
- def req(self) -> Requirement: ...
334
- def report(self) -> str: ...
335
- def with_context(self, required_by: set[str]) -> Self | ContextualVersionConflict: ...
336
-
337
- class ContextualVersionConflict(VersionConflict):
338
- def __init__(self, dist: Distribution, req: Requirement, required_by: set[str], /, *args: object) -> None: ...
339
- @property
340
- def required_by(self) -> set[str]: ...
341
-
342
- class DistributionNotFound(ResolutionError):
343
- def __init__(self, req: Requirement, requirers: set[str] | None, /, *args: object) -> None: ...
344
- @property
345
- def req(self) -> Requirement: ...
346
- @property
347
- def requirers(self) -> set[str] | None: ...
348
- @property
349
- def requirers_str(self) -> str: ...
350
- def report(self) -> str: ...
351
-
352
- class UnknownExtra(ResolutionError): ...
353
-
354
- class ExtractionError(Exception):
355
- manager: ResourceManager
356
- cache_path: str
357
- original_error: BaseException | None
358
-
359
- def register_finder(importer_type: type[_T], distribution_finder: _DistFinderType[_T]) -> None: ...
360
- def register_loader_type(loader_type: type[_ModuleLike], provider_factory: _ProviderFactoryType) -> None: ...
361
- def resolve_egg_link(path: str) -> Iterable[Distribution]: ...
362
- def register_namespace_handler(importer_type: type[_T], namespace_handler: _NSHandlerType[_T]) -> None: ...
363
-
364
- class IResourceProvider(IMetadataProvider, Protocol):
365
- def get_resource_filename(self, manager: ResourceManager, resource_name: str) -> StrPath: ...
366
- def get_resource_stream(self, manager: ResourceManager, resource_name: str) -> _ResourceStream: ...
367
- def get_resource_string(self, manager: ResourceManager, resource_name: str) -> bytes: ...
368
- def has_resource(self, resource_name: str) -> bool: ...
369
- def resource_isdir(self, resource_name: str) -> bool: ...
370
- def resource_listdir(self, resource_name: str) -> list[str]: ...
371
-
372
- def invalid_marker(text: str) -> SyntaxError | Literal[False]: ...
373
- def evaluate_marker(text: str, extra: Incomplete | None = None) -> bool: ...
374
-
375
- class NullProvider:
376
- egg_name: str | None
377
- egg_info: str | None
378
- loader: LoaderProtocol | None
379
- module_path: str
380
-
381
- def __init__(self, module: _ModuleLike) -> None: ...
382
- def get_resource_filename(self, manager: ResourceManager, resource_name: str) -> str: ...
383
- def get_resource_stream(self, manager: ResourceManager, resource_name: str) -> BytesIO: ...
384
- def get_resource_string(self, manager: ResourceManager, resource_name: str) -> bytes: ...
385
- def has_resource(self, resource_name: str) -> bool: ...
386
- def has_metadata(self, name: str) -> bool: ...
387
- def get_metadata(self, name: str) -> str: ...
388
- def get_metadata_lines(self, name: str) -> chain[str]: ...
389
- def resource_isdir(self, resource_name: str) -> bool: ...
390
- def metadata_isdir(self, name: str) -> bool: ...
391
- def resource_listdir(self, resource_name: str) -> list[str]: ...
392
- def metadata_listdir(self, name: str) -> list[str]: ...
393
- def run_script(self, script_name: str, namespace: dict[str, Any]) -> None: ...
394
-
395
- # Doesn't actually extend NullProvider, solves a typing issue in pytype_test.py
396
- class Distribution(NullProvider):
397
- PKG_INFO: ClassVar[str]
398
- project_name: str
399
- py_version: str | None
400
- platform: str | None
401
- location: str | None
402
- precedence: int
403
- def __init__(
404
- self,
405
- location: str | None = None,
406
- metadata: _MetadataType = None,
407
- project_name: str | None = None,
408
- version: str | None = None,
409
- py_version: str | None = ...,
410
- platform: str | None = None,
411
- precedence: int = 3,
412
- ) -> None: ...
413
- @classmethod
414
- def from_location(
415
- cls, location: str, basename: StrPath, metadata: _MetadataType = None, *, precedence: int = 3
416
- ) -> Distribution: ...
417
- @property
418
- def hashcmp(self) -> tuple[parse_version, int, str, str | None, str, str]: ...
419
- def __hash__(self) -> int: ...
420
- def __lt__(self, other: Distribution) -> bool: ...
421
- def __le__(self, other: Distribution) -> bool: ...
422
- def __gt__(self, other: Distribution) -> bool: ...
423
- def __ge__(self, other: Distribution) -> bool: ...
424
- def __eq__(self, other: object) -> bool: ...
425
- def __ne__(self, other: object) -> bool: ...
426
- @property
427
- def key(self) -> str: ...
428
- @property
429
- def parsed_version(self) -> _packaging_version.Version: ...
430
- @property
431
- def version(self) -> str: ...
432
- def requires(self, extras: Iterable[str] = ()) -> list[Requirement]: ...
433
- def activate(self, path: list[str] | None = None, replace: bool = False) -> None: ...
434
- def egg_name(self) -> str: ... # type: ignore[override] # supertype's egg_name is a variable, not a method
435
- def __getattr__(self, attr: str) -> Any: ... # Delegate all unrecognized public attributes to .metadata provider
436
- @classmethod
437
- def from_filename(cls, filename: StrPath, metadata: _MetadataType = None, *, precedence: int = 3) -> Distribution: ...
438
- def as_requirement(self) -> Requirement: ...
439
- def load_entry_point(self, group: str, name: str) -> _ResolvedEntryPoint: ...
440
- @overload
441
- def get_entry_map(self, group: None = None) -> dict[str, dict[str, EntryPoint]]: ...
442
- @overload
443
- def get_entry_map(self, group: str) -> dict[str, EntryPoint]: ...
444
- def get_entry_info(self, group: str, name: str) -> EntryPoint | None: ...
445
- def insert_on(self, path: list[str], loc: Incomplete | None = None, replace: bool = False) -> None: ...
446
- def check_version_conflict(self) -> None: ...
447
- def has_version(self) -> bool: ...
448
- def clone(self, **kw: str | int | IResourceProvider | None) -> Requirement: ...
449
- @property
450
- def extras(self) -> list[str]: ...
451
-
452
- class DistInfoDistribution(Distribution):
453
- PKG_INFO: ClassVar[Literal["METADATA"]]
454
- EQEQ: ClassVar[Pattern[str]]
455
-
456
- class EggProvider(NullProvider):
457
- egg_root: str
458
-
459
- class DefaultProvider(EggProvider): ...
460
-
461
- class PathMetadata(DefaultProvider):
462
- egg_info: str
463
- module_path: str
464
- def __init__(self, path: str, egg_info: str) -> None: ...
465
-
466
- class ZipProvider(EggProvider):
467
- eagers: list[str] | None
468
- zip_pre: str
469
- # ZipProvider's loader should always be a zipimporter
470
- loader: zipimport.zipimporter
471
- def __init__(self, module: _ZipLoaderModule) -> None: ...
472
- @property
473
- def zipinfo(self) -> dict[str, ZipInfo]: ...
474
-
475
- class EggMetadata(ZipProvider):
476
- loader: zipimport.zipimporter
477
- module_path: str
478
- def __init__(self, importer: zipimport.zipimporter) -> None: ...
479
-
480
- class EmptyProvider(NullProvider):
481
- # A special case, we don't want all Providers inheriting from NullProvider to have a potentially None module_path
482
- module_path: str | None # type:ignore[assignment]
483
- def __init__(self) -> None: ...
484
-
485
- empty_provider: EmptyProvider
486
-
487
- class ZipManifests(dict[str, MemoizedZipManifests.manifest_mod]):
488
- @classmethod
489
- def build(cls, path: str) -> dict[str, ZipInfo]: ...
490
- load = build
491
-
492
- class MemoizedZipManifests(ZipManifests):
493
- class manifest_mod(NamedTuple):
494
- manifest: dict[str, ZipInfo]
495
- mtime: float
496
-
497
- def load(self, path: str) -> dict[str, ZipInfo]: ... # type: ignore[override]
498
-
499
- class FileMetadata(EmptyProvider):
500
- path: StrPath
501
- def __init__(self, path: StrPath) -> None: ...
502
-
503
- class PEP440Warning(RuntimeWarning): ...
504
-
505
- parse_version = _packaging_version.Version
506
-
507
- def yield_lines(iterable: _NestedStr) -> chain[str]: ...
508
- def split_sections(s: _NestedStr) -> Generator[tuple[str | None, list[str]], None, None]: ...
509
- def safe_name(name: str) -> str: ...
510
- def safe_version(version: str) -> str: ...
511
- def safe_extra(extra: str) -> str: ...
512
- def to_filename(name: str) -> str: ...
513
- def get_build_platform() -> str: ...
514
-
515
- get_platform = get_build_platform
516
-
517
- def get_supported_platform() -> str: ...
518
- def compatible_platforms(provided: str | None, required: str | None) -> bool: ...
519
- def get_default_cache() -> str: ...
520
- def ensure_directory(path: StrOrBytesPath) -> None: ...
521
- @overload
522
- def normalize_path(filename: StrPath) -> str: ...
523
- @overload
524
- def normalize_path(filename: BytesPath) -> bytes: ...
525
-
526
- class PkgResourcesDeprecationWarning(Warning): ...
527
-
528
- __resource_manager: ResourceManager # Doesn't exist at runtime
529
- resource_exists = __resource_manager.resource_exists
530
- resource_isdir = __resource_manager.resource_isdir
531
- resource_filename = __resource_manager.resource_filename
532
- resource_stream = __resource_manager.resource_stream
533
- resource_string = __resource_manager.resource_string
534
- resource_listdir = __resource_manager.resource_listdir
535
- set_extraction_path = __resource_manager.set_extraction_path
536
- cleanup_resources = __resource_manager.cleanup_resources
537
-
538
- working_set: WorkingSet
539
- require = working_set.require
540
- iter_entry_points = working_set.iter_entry_points
541
- add_activation_listener = working_set.subscribe
542
- run_script = working_set.run_script
543
- run_main = run_script
@@ -1,8 +0,0 @@
1
- __title__: str
2
- __summary__: str
3
- __uri__: str
4
- __version__: str
5
- __author__: str
6
- __email__: str
7
- __license__: str
8
- __copyright__: str
@@ -1,13 +0,0 @@
1
- __all__ = ["InvalidMarker", "UndefinedComparison", "UndefinedEnvironmentName", "Marker", "default_environment"]
2
-
3
- class InvalidMarker(ValueError): ...
4
- class UndefinedComparison(ValueError): ...
5
- class UndefinedEnvironmentName(ValueError): ...
6
-
7
- def default_environment() -> dict[str, str]: ...
8
-
9
- class Marker:
10
- def __init__(self, marker: str) -> None: ...
11
- def __hash__(self) -> int: ...
12
- def __eq__(self, other: object) -> bool: ...
13
- def evaluate(self, environment: dict[str, str] | None = None) -> bool: ...
@@ -1,14 +0,0 @@
1
- from .markers import Marker
2
- from .specifiers import SpecifierSet
3
-
4
- class InvalidRequirement(ValueError): ...
5
-
6
- class Requirement:
7
- name: str
8
- url: str | None
9
- extras: set[str]
10
- specifier: SpecifierSet
11
- marker: Marker | None
12
- def __init__(self, requirement_str: str) -> None: ...
13
- def __hash__(self) -> int: ...
14
- def __eq__(self, other: object) -> bool: ...