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,196 @@
1
+ from _typeshed import BytesPath, Incomplete, StrPath, Unused
2
+ from collections.abc import Callable, Iterable, MutableSequence, Sequence
3
+ from typing import ClassVar, Final, Literal, TypeVar, overload
4
+ from typing_extensions import TypeAlias, TypeVarTuple, Unpack
5
+
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")
10
+
11
+ class Compiler:
12
+ compiler_type: ClassVar[str]
13
+ executables: ClassVar[dict[str, Incomplete]]
14
+
15
+ # Subclasses that rely on the standard filename generation methods
16
+ # implemented below should override these
17
+ src_extensions: ClassVar[list[str] | None]
18
+ obj_extension: ClassVar[str | None]
19
+ static_lib_extension: ClassVar[str | None]
20
+ shared_lib_extension: ClassVar[str | None]
21
+ static_lib_format: ClassVar[str | None]
22
+ shared_lib_format: ClassVar[str | None]
23
+ exe_extension: ClassVar[str | None]
24
+
25
+ language_map: ClassVar[dict[str, str]]
26
+ language_order: ClassVar[list[str]]
27
+ dry_run: bool
28
+ force: bool
29
+ verbose: bool
30
+ output_dir: str | None
31
+ macros: list[_Macro]
32
+ include_dirs: list[str]
33
+ libraries: list[str]
34
+ library_dirs: list[str]
35
+ runtime_library_dirs: list[str]
36
+ objects: list[str]
37
+
38
+ SHARED_OBJECT: Final = "shared_object"
39
+ SHARED_LIBRARY: Final = "shared_library"
40
+ EXECUTABLE: Final = "executable"
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: Iterable[str], lib: str, debug: bool = False) -> str | None: ...
56
+ def has_function(
57
+ self,
58
+ funcname: str,
59
+ includes: Iterable[str] | None = None,
60
+ include_dirs: list[str] | tuple[str, ...] | None = None,
61
+ libraries: list[str] | None = None,
62
+ library_dirs: list[str] | tuple[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, **kwargs: str) -> None: ...
68
+ def set_executable(self, key: str, value) -> None: ...
69
+ def compile(
70
+ self,
71
+ sources: Sequence[StrPath],
72
+ output_dir: str | None = None,
73
+ macros: list[_Macro] | None = None,
74
+ include_dirs: list[str] | tuple[str, ...] | None = None,
75
+ debug: bool = False,
76
+ extra_preargs: list[str] | None = None,
77
+ extra_postargs: list[str] | None = None,
78
+ depends: list[str] | tuple[str, ...] | None = None,
79
+ ) -> list[str]: ...
80
+ def create_static_lib(
81
+ self,
82
+ objects: list[str] | tuple[str, ...],
83
+ output_libname: str,
84
+ output_dir: str | None = None,
85
+ debug: bool = False,
86
+ target_lang: str | None = None,
87
+ ) -> None: ...
88
+ def link(
89
+ self,
90
+ target_desc: str,
91
+ objects: list[str] | tuple[str, ...],
92
+ output_filename: str,
93
+ output_dir: str | None = None,
94
+ libraries: list[str] | tuple[str, ...] | None = None,
95
+ library_dirs: list[str] | tuple[str, ...] | None = None,
96
+ runtime_library_dirs: list[str] | tuple[str, ...] | None = None,
97
+ export_symbols: Iterable[str] | None = None,
98
+ debug: bool = False,
99
+ extra_preargs: list[str] | None = None,
100
+ extra_postargs: list[str] | None = None,
101
+ build_temp: StrPath | None = None,
102
+ target_lang: str | None = None,
103
+ ) -> None: ...
104
+ def link_executable(
105
+ self,
106
+ objects: list[str] | tuple[str, ...],
107
+ output_progname: str,
108
+ output_dir: str | None = None,
109
+ libraries: list[str] | tuple[str, ...] | None = None,
110
+ library_dirs: list[str] | tuple[str, ...] | None = None,
111
+ runtime_library_dirs: list[str] | tuple[str, ...] | None = None,
112
+ debug: bool = False,
113
+ extra_preargs: list[str] | None = None,
114
+ extra_postargs: list[str] | None = None,
115
+ target_lang: str | None = None,
116
+ ) -> None: ...
117
+ def link_shared_lib(
118
+ self,
119
+ objects: list[str] | tuple[str, ...],
120
+ output_libname: str,
121
+ output_dir: str | None = None,
122
+ libraries: list[str] | tuple[str, ...] | None = None,
123
+ library_dirs: list[str] | tuple[str, ...] | None = None,
124
+ runtime_library_dirs: list[str] | tuple[str, ...] | None = None,
125
+ export_symbols: Iterable[str] | None = None,
126
+ debug: bool = False,
127
+ extra_preargs: list[str] | None = None,
128
+ extra_postargs: list[str] | None = None,
129
+ build_temp: StrPath | None = None,
130
+ target_lang: str | None = None,
131
+ ) -> None: ...
132
+ def link_shared_object(
133
+ self,
134
+ objects: list[str] | tuple[str, ...],
135
+ output_filename: str,
136
+ output_dir: str | None = None,
137
+ libraries: list[str] | tuple[str, ...] | None = None,
138
+ library_dirs: list[str] | tuple[str, ...] | None = None,
139
+ runtime_library_dirs: list[str] | tuple[str, ...] | None = None,
140
+ export_symbols: Iterable[str] | None = None,
141
+ debug: bool = False,
142
+ extra_preargs: list[str] | None = None,
143
+ extra_postargs: list[str] | None = None,
144
+ build_temp: StrPath | None = None,
145
+ target_lang: str | None = None,
146
+ ) -> None: ...
147
+ def preprocess(
148
+ self,
149
+ source: StrPath,
150
+ output_file: StrPath | None = None,
151
+ macros: list[_Macro] | None = None,
152
+ include_dirs: list[str] | tuple[str, ...] | None = None,
153
+ extra_preargs: list[str] | None = None,
154
+ extra_postargs: Iterable[str] | None = None,
155
+ ) -> None: ...
156
+ @overload
157
+ def executable_filename(self, basename: str, strip_dir: Literal[False] = False, output_dir: StrPath = "") -> str: ...
158
+ @overload
159
+ def executable_filename(self, basename: StrPath, strip_dir: Literal[True], output_dir: StrPath = "") -> str: ...
160
+ def library_filename(
161
+ self, libname: str, lib_type: str = "static", strip_dir: bool = False, output_dir: StrPath = ""
162
+ ) -> str: ...
163
+ @property
164
+ def out_extensions(self) -> dict[str, str]: ...
165
+ def object_filenames(
166
+ self, source_filenames: Iterable[StrPath], strip_dir: bool = False, output_dir: StrPath | None = ""
167
+ ) -> list[str]: ...
168
+ @overload
169
+ def shared_object_filename(self, basename: str, strip_dir: Literal[False] = False, output_dir: StrPath = "") -> str: ...
170
+ @overload
171
+ def shared_object_filename(self, basename: StrPath, strip_dir: Literal[True], output_dir: StrPath = "") -> str: ...
172
+ def execute(
173
+ self, func: Callable[[Unpack[_Ts]], Unused], args: tuple[Unpack[_Ts]], msg: str | None = None, level: int = 1
174
+ ) -> None: ...
175
+ def spawn(self, cmd: MutableSequence[bytes | StrPath]) -> None: ...
176
+ def mkpath(self, name: str, mode: int = 0o777) -> None: ...
177
+ @overload
178
+ def move_file(self, src: StrPath, dst: _StrPathT) -> _StrPathT | str: ...
179
+ @overload
180
+ def move_file(self, src: BytesPath, dst: _BytesPathT) -> _BytesPathT | bytes: ...
181
+ def announce(self, msg: str, level: int = 1) -> None: ...
182
+ def warn(self, msg: str) -> None: ...
183
+ def debug_print(self, msg: str) -> None: ...
184
+
185
+ def get_default_compiler(osname: str | None = None, platform: str | None = None) -> str: ...
186
+
187
+ compiler_class: dict[str, tuple[str, str, str]]
188
+
189
+ def show_compilers() -> None: ...
190
+ def new_compiler(
191
+ plat: str | None = None, compiler: str | None = None, verbose: bool = False, dry_run: bool = False, force: bool = False
192
+ ) -> Compiler: ...
193
+ def gen_preprocess_options(macros: Iterable[_Macro], include_dirs: Iterable[str]) -> list[str]: ...
194
+ def gen_lib_options(
195
+ compiler: Compiler, library_dirs: Iterable[str], runtime_library_dirs: Iterable[str], libraries: Iterable[str]
196
+ ) -> list[str]: ...
@@ -0,0 +1,6 @@
1
+ class Error(Exception): ...
2
+ class PreprocessError(Error): ...
3
+ class CompileError(Error): ...
4
+ class LibError(Error): ...
5
+ class LinkError(Error): ...
6
+ class UnknownFileType(Error): ...
@@ -0,0 +1,24 @@
1
+ from _typeshed import Incomplete
2
+ from typing import ClassVar, Final
3
+
4
+ from . import base
5
+
6
+ PLAT_SPEC_TO_RUNTIME: Final[dict[str, str]]
7
+
8
+ class Compiler(base.Compiler):
9
+ compiler_type: ClassVar[str]
10
+ executables: ClassVar[dict[str, 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
+ # This was accidentally removed upstream and should be back pretty soon.
17
+ # shared_lib_format: ClassVar[str]
18
+ # static_lib_format = shared_lib_format
19
+ static_lib_format: ClassVar[str]
20
+ exe_extension: ClassVar[str]
21
+ initialized: bool
22
+ def initialize(self, plat_name: str | None = None) -> None: ...
23
+ @property
24
+ def out_extensions(self) -> dict[str, str]: ...
@@ -36,26 +36,29 @@ class DistributionMetadata:
36
36
  def get_name(self) -> str: ...
37
37
  def get_version(self) -> str: ...
38
38
  def get_fullname(self) -> str: ...
39
- def get_author(self) -> str: ...
40
- def get_author_email(self) -> str: ...
41
- def get_maintainer(self) -> str: ...
42
- def get_maintainer_email(self) -> str: ...
43
- def get_contact(self) -> str: ...
44
- def get_contact_email(self) -> str: ...
45
- def get_url(self) -> str: ...
46
- def get_license(self) -> str: ...
47
- def get_licence(self) -> str: ...
48
- def get_description(self) -> str: ...
49
- def get_long_description(self) -> str: ...
39
+ def get_author(self) -> str | None: ...
40
+ def get_author_email(self) -> str | None: ...
41
+ def get_maintainer(self) -> str | None: ...
42
+ def get_maintainer_email(self) -> str | None: ...
43
+ def get_contact(self) -> str | None: ...
44
+ def get_contact_email(self) -> str | None: ...
45
+ def get_url(self) -> str | None: ...
46
+ def get_license(self) -> str | None: ...
47
+ get_licence = get_license
48
+ def get_description(self) -> str | None: ...
49
+ def get_long_description(self) -> str | None: ...
50
50
  def get_keywords(self) -> str | list[str]: ...
51
- def get_platforms(self) -> str | list[str]: ...
51
+ def set_keywords(self, value: str | Iterable[str]) -> None: ...
52
+ def get_platforms(self) -> str | list[str] | None: ...
53
+ def set_platforms(self, value: str | Iterable[str]) -> None: ...
52
54
  def get_classifiers(self) -> str | list[str]: ...
53
- def get_download_url(self) -> str: ...
54
- def get_requires(self) -> list[str]: ...
55
+ def set_classifiers(self, value): ...
56
+ def get_download_url(self) -> str | None: ...
57
+ def get_requires(self) -> str | list[str]: ...
55
58
  def set_requires(self, value: Iterable[str]) -> None: ...
56
- def get_provides(self) -> list[str]: ...
59
+ def get_provides(self) -> str | list[str]: ...
57
60
  def set_provides(self, value: Iterable[str]) -> None: ...
58
- def get_obsoletes(self) -> list[str]: ...
61
+ def get_obsoletes(self) -> str | list[str]: ...
59
62
  def set_obsoletes(self, value: Iterable[str]) -> None: ...
60
63
 
61
64
  class Distribution:
@@ -72,8 +75,8 @@ class Distribution:
72
75
  verbose: bool
73
76
  dry_run: bool
74
77
  help: bool
75
- command_packages: list[str] | None
76
- script_name: str | None
78
+ command_packages: str | list[str] | None
79
+ script_name: StrPath | None
77
80
  script_args: list[str] | None
78
81
  command_options: dict[str, dict[str, tuple[str, str]]]
79
82
  dist_files: list[tuple[str, str, str]]
@@ -108,9 +111,9 @@ class Distribution:
108
111
  # NOTE: Because this is private setuptools implementation and we don't re-expose all commands here,
109
112
  # we're not overloading each and every command possibility.
110
113
  @overload
111
- def get_command_obj(self, command: str, create: Literal[1, True] = 1) -> Command: ...
114
+ def get_command_obj(self, command: str, create: Literal[True] = True) -> Command: ...
112
115
  @overload
113
- def get_command_obj(self, command: str, create: Literal[0, False]) -> Command | None: ...
116
+ def get_command_obj(self, command: str, create: Literal[False]) -> Command | None: ...
114
117
  def get_command_class(self, command: str) -> type[Command]: ...
115
118
  @overload
116
119
  def reinitialize_command(self, command: str, reinit_subcommands: bool = False) -> Command: ...
@@ -1,3 +1,15 @@
1
+ from .compilers.C.errors import (
2
+ CompileError as CompileError,
3
+ Error as _Error,
4
+ LibError as LibError,
5
+ LinkError as LinkError,
6
+ PreprocessError as PreprocessError,
7
+ UnknownFileType as _UnknownFileType,
8
+ )
9
+
10
+ CCompilerError = _Error
11
+ UnknownFileError = _UnknownFileType
12
+
1
13
  class DistutilsError(Exception): ...
2
14
  class DistutilsModuleError(DistutilsError): ...
3
15
  class DistutilsClassError(DistutilsError): ...
@@ -11,9 +23,3 @@ class DistutilsExecError(DistutilsError): ...
11
23
  class DistutilsInternalError(DistutilsError): ...
12
24
  class DistutilsTemplateError(DistutilsError): ...
13
25
  class DistutilsByteCompileError(DistutilsError): ...
14
- class CCompilerError(Exception): ...
15
- class PreprocessError(CCompilerError): ...
16
- class CompileError(CCompilerError): ...
17
- class LibError(CCompilerError): ...
18
- class LinkError(CCompilerError): ...
19
- class UnknownFileError(CCompilerError): ...
@@ -1,3 +1,4 @@
1
+ from _typeshed import StrPath, Unused
1
2
  from collections.abc import Iterable
2
3
  from re import Pattern
3
4
  from typing import Literal, overload
@@ -6,10 +7,10 @@ from typing import Literal, overload
6
7
  class FileList:
7
8
  allfiles: Iterable[str] | None
8
9
  files: list[str]
9
- def __init__(self, warn: None = None, debug_print: None = None) -> None: ...
10
+ def __init__(self, warn: Unused = None, debug_print: Unused = None) -> None: ...
10
11
  def set_allfiles(self, allfiles: Iterable[str]) -> None: ...
11
- def findall(self, dir: str = ...) -> None: ...
12
- def debug_print(self, msg: str) -> None: ...
12
+ def findall(self, dir: StrPath = ...) -> None: ...
13
+ def debug_print(self, msg: object) -> None: ...
13
14
  def append(self, item: str) -> None: ...
14
15
  def extend(self, items: Iterable[str]) -> None: ...
15
16
  def sort(self) -> None: ...
@@ -17,21 +18,21 @@ class FileList:
17
18
  def process_template_line(self, line: str) -> None: ...
18
19
  @overload
19
20
  def include_pattern(
20
- self, pattern: str, anchor: bool = True, prefix: str | None = None, is_regex: Literal[0, False] = 0
21
+ self, pattern: str, anchor: bool = True, prefix: str | None = None, is_regex: Literal[False] = False
21
22
  ) -> bool: ...
22
23
  @overload
23
- def include_pattern(self, pattern: str | Pattern[str], *, is_regex: Literal[True, 1]) -> bool: ...
24
- @overload
25
24
  def include_pattern(
26
- self, pattern: str | Pattern[str], anchor: bool = True, prefix: str | None = None, is_regex: bool = False
25
+ self, pattern: str | Pattern[str], anchor: bool = True, prefix: str | None = None, *, is_regex: Literal[True]
27
26
  ) -> bool: ...
28
27
  @overload
28
+ def include_pattern(self, pattern: str | Pattern[str], anchor: bool, prefix: str | None, is_regex: Literal[True]) -> bool: ...
29
+ @overload
29
30
  def exclude_pattern(
30
- self, pattern: str, anchor: bool = True, prefix: str | None = None, is_regex: Literal[0, False] = 0
31
+ self, pattern: str, anchor: bool = True, prefix: str | None = None, is_regex: Literal[False] = False
31
32
  ) -> bool: ...
32
33
  @overload
33
- def exclude_pattern(self, pattern: str | Pattern[str], *, is_regex: Literal[True, 1]) -> bool: ...
34
- @overload
35
34
  def exclude_pattern(
36
- self, pattern: str | Pattern[str], anchor: bool = True, prefix: str | None = None, is_regex: bool = False
35
+ self, pattern: str | Pattern[str], anchor: bool = True, prefix: str | None = None, *, is_regex: Literal[True]
37
36
  ) -> bool: ...
37
+ @overload
38
+ def exclude_pattern(self, pattern: str | Pattern[str], anchor: bool, prefix: str | None, is_regex: Literal[True]) -> bool: ...
@@ -1,7 +1,12 @@
1
+ from _typeshed import StrPath
1
2
  from collections.abc import MutableSequence
2
3
  from subprocess import _ENV
3
4
 
4
5
  def spawn(
5
- cmd: MutableSequence[str], search_path: bool = True, verbose: bool = False, dry_run: bool = False, env: _ENV | None = None
6
+ cmd: MutableSequence[bytes | StrPath],
7
+ search_path: bool = True,
8
+ verbose: bool = False,
9
+ dry_run: bool = False,
10
+ env: _ENV | None = None,
6
11
  ) -> None: ...
7
12
  def find_executable(executable: str, path: str | None = None) -> str | None: ...
@@ -1,6 +1,6 @@
1
- from _typeshed import StrPath, Unused
2
- from collections.abc import Callable, Mapping
3
- from typing import Literal
1
+ from _typeshed import GenericPath, StrPath, Unused
2
+ from collections.abc import Callable, Iterable, Mapping
3
+ from typing import AnyStr, Literal
4
4
  from typing_extensions import TypeVarTuple, Unpack
5
5
 
6
6
  _Ts = TypeVarTuple("_Ts")
@@ -11,9 +11,9 @@ def get_macosx_target_ver_from_syscfg(): ...
11
11
  def get_macosx_target_ver(): ...
12
12
  def split_version(s: str) -> list[int]: ...
13
13
  def convert_path(pathname: StrPath) -> str: ...
14
- def change_root(new_root: str, pathname: str) -> str: ...
14
+ def change_root(new_root: GenericPath[AnyStr], pathname: GenericPath[AnyStr]) -> AnyStr: ...
15
15
  def check_environ() -> None: ...
16
- def subst_vars(s: str, local_vars: Mapping[str, str]) -> None: ...
16
+ def subst_vars(s: str, local_vars: Mapping[str, object]) -> str: ...
17
17
  def grok_environment_error(exc: object, prefix: str = "error: ") -> str: ...
18
18
  def split_quoted(s: str) -> list[str]: ...
19
19
  def execute(
@@ -25,7 +25,7 @@ def execute(
25
25
  ) -> None: ...
26
26
  def strtobool(val: str) -> Literal[0, 1]: ...
27
27
  def byte_compile(
28
- py_files: list[str],
28
+ py_files: Iterable[str],
29
29
  optimize: int = 0,
30
30
  force: bool = False,
31
31
  prefix: str | None = None,
@@ -4,7 +4,6 @@ from typing import ClassVar, Final, Literal
4
4
 
5
5
  from setuptools import Command
6
6
 
7
- def safe_name(name: str) -> str: ...
8
7
  def safe_version(version: str) -> str: ...
9
8
 
10
9
  setuptools_major_version: Final[int]
@@ -15,7 +14,6 @@ def python_tag() -> str: ...
15
14
  def get_platform(archive_root: str | None) -> str: ...
16
15
  def get_flag(var: str, fallback: bool, expected: bool = True, warn: bool = True) -> bool: ...
17
16
  def get_abi_tag() -> str | None: ...
18
- def safer_name(name: str) -> str: ...
19
17
  def safer_version(version: str) -> str: ...
20
18
 
21
19
  class bdist_wheel(Command):
@@ -57,4 +57,4 @@ class JSONEncoder:
57
57
  class JSONEncoderForHTML(JSONEncoder): ...
58
58
 
59
59
  def encode_basestring(s: str | bytes, _PY3: Literal[True] = ..., _q: str = ...) -> str: ...
60
- def encode_basestring_ascii(s: str | bytes, _PY3: Literal[True] = ...) -> str: ...
60
+ def encode_basestring_ascii(s: str | bytes, /) -> str: ...
@@ -1,4 +1,3 @@
1
- # flake8: noqa: NQA102 # https://github.com/plinss/flake8-noqa/issues/22
2
1
  # six explicitly re-exports builtins. Normally this is something we'd want to avoid.
3
2
  # But this is specifically a compatibility package.
4
3
  from builtins import * # noqa: UP029
@@ -4,4 +4,7 @@ requires = ["types-requests"]
4
4
 
5
5
  [tool.stubtest]
6
6
  extras = ["slack", "telegram"]
7
- stubtest_requirements = ["dask", "pandas", "rich", "tensorflow"]
7
+ # Add `"tensorflow"` to this list when there's a tensorflow release supporting
8
+ # Python 3.13: https://github.com/tensorflow/tensorflow/issues/78774.
9
+ # Also remove tqdm.keras from @tests/stubtest_allowlist.txt.
10
+ stubtest_requirements = ["dask", "pandas", "rich"]
@@ -1,5 +1,6 @@
1
- from _typeshed import Incomplete, SupportsWrite
2
- from collections.abc import AsyncIterator, Awaitable, Callable, Generator, Iterable, Iterator, Mapping
1
+ from _typeshed import SupportsWrite
2
+ from asyncio import Future
3
+ from collections.abc import AsyncIterator, Awaitable, Callable, Iterable, Iterator, Mapping
3
4
  from typing import NoReturn, TypeVar, overload
4
5
  from typing_extensions import Self
5
6
 
@@ -48,7 +49,7 @@ class tqdm_asyncio(std_tqdm[_T]):
48
49
  nrows: int | None = ...,
49
50
  colour: str | None = ...,
50
51
  delay: float | None = ...,
51
- ) -> Generator[Incomplete, Incomplete, None]: ...
52
+ ) -> Iterator[Future[_T]]: ...
52
53
  @classmethod
53
54
  async def gather(
54
55
  cls,
@@ -1,5 +1,5 @@
1
1
  import contextlib
2
- from _typeshed import Incomplete, SupportsWrite
2
+ from _typeshed import Incomplete, SupportsRead, SupportsWrite
3
3
  from collections.abc import Callable, Iterable, Iterator, Mapping, MutableMapping
4
4
  from types import TracebackType
5
5
  from typing import Any, ClassVar, Generic, Literal, NoReturn, TypeVar, overload
@@ -30,6 +30,7 @@ class TqdmDeprecationWarning(TqdmWarning, DeprecationWarning): ...
30
30
  class TqdmMonitorWarning(TqdmWarning, RuntimeWarning): ...
31
31
 
32
32
  _T = TypeVar("_T")
33
+ _U = TypeVar("_U")
33
34
 
34
35
  class tqdm(Comparable, Generic[_T]):
35
36
  monitor_interval: ClassVar[int]
@@ -222,10 +223,16 @@ class tqdm(Comparable, Generic[_T]):
222
223
  @property
223
224
  def format_dict(self) -> MutableMapping[str, Any]: ...
224
225
  def display(self, msg: str | None = None, pos: int | None = None) -> None: ...
226
+ @overload
227
+ @classmethod
228
+ def wrapattr(
229
+ cls, stream: SupportsRead[_U], method: Literal["read"], total: float | None = None, bytes: bool = True, **tqdm_kwargs
230
+ ) -> contextlib._GeneratorContextManager[SupportsRead[_U]]: ...
231
+ @overload
225
232
  @classmethod
226
233
  def wrapattr(
227
- cls, stream, method: Literal["read", "write"], total: float | None = None, bytes: bool | None = True, **tqdm_kwargs
228
- ) -> contextlib._GeneratorContextManager[Incomplete]: ...
234
+ cls, stream: SupportsWrite[_U], method: Literal["write"], total: float | None = None, bytes: bool = True, **tqdm_kwargs
235
+ ) -> contextlib._GeneratorContextManager[SupportsWrite[_U]]: ...
229
236
 
230
237
  @overload
231
238
  def trange(
@@ -1,3 +1,9 @@
1
1
  version = "1.10.*"
2
2
  upstream_repository = "https://github.com/grantjenks/py-tree-sitter-languages"
3
3
  requires = ["tree-sitter>=0.20.3"]
4
+
5
+ [tool.stubtest]
6
+ # This package is unmaintained and doesn't support Python 3.13.
7
+ # See https://github.com/grantjenks/py-tree-sitter-languages/issues/75 and
8
+ # https://github.com/grantjenks/py-tree-sitter-languages/blob/main/README.rst#status
9
+ skip = true
@@ -8,7 +8,14 @@ class Name:
8
8
  additional: Incomplete
9
9
  prefix: Incomplete
10
10
  suffix: Incomplete
11
- def __init__(self, family: str = "", given: str = "", additional: str = "", prefix: str = "", suffix: str = "") -> None: ...
11
+ def __init__(
12
+ self,
13
+ family: str | list[str] = "",
14
+ given: str | list[str] = "",
15
+ additional: str | list[str] = "",
16
+ prefix: str | list[str] = "",
17
+ suffix: str | list[str] = "",
18
+ ) -> None: ...
12
19
  @staticmethod
13
20
  def toString(val): ...
14
21
  def __eq__(self, other): ...
@@ -23,13 +30,13 @@ class Address:
23
30
  country: Incomplete
24
31
  def __init__(
25
32
  self,
26
- street: str = "",
27
- city: str = "",
28
- region: str = "",
29
- code: str = "",
30
- country: str = "",
31
- box: str = "",
32
- extended: str = "",
33
+ street: str | list[str] = "",
34
+ city: str | list[str] = "",
35
+ region: str | list[str] = "",
36
+ code: str | list[str] = "",
37
+ country: str | list[str] = "",
38
+ box: str | list[str] = "",
39
+ extended: str | list[str] = "",
33
40
  ) -> None: ...
34
41
  @staticmethod
35
42
  def toString(val, join_char: str = "\n"): ...
@@ -0,0 +1,2 @@
1
+ version = "0.2.5"
2
+ upstream_repository = "https://github.com/gaogaotiantian/watchpoints"
@@ -0,0 +1,10 @@
1
+ from collections.abc import Callable
2
+ from typing import Final
3
+ from typing_extensions import LiteralString, Unpack
4
+
5
+ from .watch import Watch
6
+
7
+ __version__: Final[LiteralString]
8
+
9
+ watch: Watch
10
+ unwatch: Final[Callable[[Unpack[tuple[object, ...]]], None]]
@@ -0,0 +1,3 @@
1
+ import ast
2
+
3
+ def ast_parse_node(node: ast.expr) -> ast.Module: ...
@@ -0,0 +1,6 @@
1
+ import ast
2
+ from collections.abc import Iterable
3
+ from types import FrameType
4
+
5
+ def getline(frame: FrameType) -> str: ...
6
+ def getargnodes(frame: FrameType) -> Iterable[tuple[ast.expr, str]]: ...
@@ -0,0 +1,68 @@
1
+ import threading
2
+ from _typeshed import SupportsWrite, TraceFunction
3
+ from collections.abc import Callable
4
+ from pdb import Pdb
5
+ from types import FrameType
6
+ from typing import Any, Literal, Protocol, TypeVar
7
+ from typing_extensions import TypeAlias
8
+
9
+ from .watch_element import WatchElement
10
+
11
+ _T = TypeVar("_T")
12
+
13
+ # Alias used for fields that must always be valid identifiers
14
+ # A string `x` counts as a valid identifier if both the following are True
15
+ # (1) `x.isidentifier()` evaluates to `True`
16
+ # (2) `keyword.iskeyword(x)` evaluates to `False`
17
+ _Identifier: TypeAlias = str
18
+
19
+ class Watch:
20
+ # User-defined callbacks passed to `__call__()` or `config()` set as instance variables have arguments of type `Any` to be
21
+ # compatible with more precisely-annotated signatures.
22
+
23
+ custom_printer: Callable[[Any], None] | None
24
+ enable: bool
25
+ file: str | SupportsWrite[str] | None
26
+ pdb: Pdb | None
27
+ pdb_enable: bool
28
+ set_lock: threading.Lock
29
+ stack_limit: int | None
30
+ tracefunc_lock: threading.Lock
31
+ tracefunc_stack: list[TraceFunction | None]
32
+ watch_list: list[WatchElement]
33
+
34
+ def __init__(self) -> None: ...
35
+ def __call__(
36
+ self,
37
+ *args: object,
38
+ alias: str = ...,
39
+ callback: Callable[[FrameType, WatchElement, tuple[str, str, int | None]], None] = ...,
40
+ cmp: Callable[[Any, Any], bool] = ..., # User-defined comparison callback; compares 2 arguments of any type
41
+ copy: Callable[[_T], _T] = ...,
42
+ # User-defined printing callback; writes a string representation of any object to a stream
43
+ custom_printer: Callable[[Any], None] = ...,
44
+ deepcopy: bool = False,
45
+ file: str | SupportsWrite[str] = ...,
46
+ stack_limit: int | None = 5,
47
+ track: Literal["object", "variable"] = ...,
48
+ when: Callable[[Any], bool] = ..., # User-defined callback for conditional watchpoints
49
+ ) -> None: ...
50
+ def config(
51
+ self,
52
+ *,
53
+ callback: Callable[[FrameType, WatchElement, tuple[str, str, int | None]], None] = ...,
54
+ pdb: Literal[True] = ...,
55
+ file: str | SupportsWrite[str] = ...,
56
+ stack_limit: int | None = 5,
57
+ custom_printer: Callable[[Any], None] = ..., # User-defined printing callback
58
+ ) -> None: ...
59
+ def install(self, func: _Identifier = "watch") -> None: ...
60
+ def restore(self) -> None: ...
61
+ def start_trace(self, frame: FrameType) -> None: ...
62
+ def stop_trace(self, frame: FrameType) -> None: ...
63
+ def tracefunc(self, frame: FrameType, event: str, arg: object) -> _TraceFunc: ...
64
+ def uninstall(self, func: _Identifier = "watch") -> None: ...
65
+ def unwatch(self, *args: object) -> None: ...
66
+
67
+ class _TraceFunc(Protocol):
68
+ def __call__(self, frame: FrameType, event: str, arg: object) -> _TraceFunc: ...