basedpyright 1.25.0 → 1.26.0

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 (445) 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/README.md +1 -1
  6. package/dist/typeshed-fallback/commit.txt +1 -1
  7. package/dist/typeshed-fallback/stdlib/VERSIONS +1 -0
  8. package/dist/typeshed-fallback/stdlib/_asyncio.pyi +3 -3
  9. package/dist/typeshed-fallback/stdlib/_blake2.pyi +12 -12
  10. package/dist/typeshed-fallback/stdlib/_bz2.pyi +7 -1
  11. package/dist/typeshed-fallback/stdlib/_collections_abc.pyi +3 -0
  12. package/dist/typeshed-fallback/stdlib/_contextvars.pyi +5 -3
  13. package/dist/typeshed-fallback/stdlib/_csv.pyi +4 -4
  14. package/dist/typeshed-fallback/stdlib/_ctypes.pyi +7 -7
  15. package/dist/typeshed-fallback/stdlib/_curses.pyi +3 -3
  16. package/dist/typeshed-fallback/stdlib/_dummy_threading.pyi +19 -127
  17. package/dist/typeshed-fallback/stdlib/_frozen_importlib.pyi +2 -1
  18. package/dist/typeshed-fallback/stdlib/_interpqueues.pyi +9 -6
  19. package/dist/typeshed-fallback/stdlib/_interpreters.pyi +3 -1
  20. package/dist/typeshed-fallback/stdlib/_io.pyi +1 -1
  21. package/dist/typeshed-fallback/stdlib/_json.pyi +5 -4
  22. package/dist/typeshed-fallback/stdlib/_lzma.pyi +16 -5
  23. package/dist/typeshed-fallback/stdlib/_pickle.pyi +286 -0
  24. package/dist/typeshed-fallback/stdlib/_sitebuiltins.pyi +3 -2
  25. package/dist/typeshed-fallback/stdlib/_socket.pyi +3 -1
  26. package/dist/typeshed-fallback/stdlib/_ssl.pyi +3 -4
  27. package/dist/typeshed-fallback/stdlib/_thread.pyi +87 -39
  28. package/dist/typeshed-fallback/stdlib/_tkinter.pyi +35 -20
  29. package/dist/typeshed-fallback/stdlib/_weakrefset.pyi +2 -1
  30. package/dist/typeshed-fallback/stdlib/argparse.pyi +27 -20
  31. package/dist/typeshed-fallback/stdlib/array.pyi +13 -10
  32. package/dist/typeshed-fallback/stdlib/ast.pyi +24 -7
  33. package/dist/typeshed-fallback/stdlib/asyncio/__init__.pyi +1300 -0
  34. package/dist/typeshed-fallback/stdlib/asyncio/base_events.pyi +2 -0
  35. package/dist/typeshed-fallback/stdlib/asyncio/coroutines.pyi +1 -0
  36. package/dist/typeshed-fallback/stdlib/asyncio/events.pyi +1 -0
  37. package/dist/typeshed-fallback/stdlib/asyncio/exceptions.pyi +1 -0
  38. package/dist/typeshed-fallback/stdlib/asyncio/futures.pyi +1 -0
  39. package/dist/typeshed-fallback/stdlib/asyncio/locks.pyi +1 -0
  40. package/dist/typeshed-fallback/stdlib/asyncio/proactor_events.pyi +1 -0
  41. package/dist/typeshed-fallback/stdlib/asyncio/protocols.pyi +1 -0
  42. package/dist/typeshed-fallback/stdlib/asyncio/queues.pyi +1 -0
  43. package/dist/typeshed-fallback/stdlib/asyncio/runners.pyi +1 -0
  44. package/dist/typeshed-fallback/stdlib/asyncio/selector_events.pyi +2 -0
  45. package/dist/typeshed-fallback/stdlib/asyncio/streams.pyi +1 -0
  46. package/dist/typeshed-fallback/stdlib/asyncio/subprocess.pyi +1 -0
  47. package/dist/typeshed-fallback/stdlib/asyncio/taskgroups.pyi +1 -0
  48. package/dist/typeshed-fallback/stdlib/asyncio/tasks.pyi +1 -0
  49. package/dist/typeshed-fallback/stdlib/asyncio/threads.pyi +1 -0
  50. package/dist/typeshed-fallback/stdlib/asyncio/timeouts.pyi +1 -0
  51. package/dist/typeshed-fallback/stdlib/asyncio/transports.pyi +1 -0
  52. package/dist/typeshed-fallback/stdlib/asyncio/unix_events.pyi +3 -0
  53. package/dist/typeshed-fallback/stdlib/asyncio/windows_events.pyi +1 -0
  54. package/dist/typeshed-fallback/stdlib/builtins.pyi +21 -15
  55. package/dist/typeshed-fallback/stdlib/codecs.pyi +2 -0
  56. package/dist/typeshed-fallback/stdlib/codeop.pyi +5 -1
  57. package/dist/typeshed-fallback/stdlib/collections/__init__.pyi +3 -1
  58. package/dist/typeshed-fallback/stdlib/concurrent/futures/process.pyi +12 -2
  59. package/dist/typeshed-fallback/stdlib/contextlib.pyi +21 -22
  60. package/dist/typeshed-fallback/stdlib/ctypes/__init__.pyi +69 -18
  61. package/dist/typeshed-fallback/stdlib/dataclasses.pyi +11 -3
  62. package/dist/typeshed-fallback/stdlib/datetime.pyi +1 -1
  63. package/dist/typeshed-fallback/stdlib/decimal.pyi +0 -1
  64. package/dist/typeshed-fallback/stdlib/email/charset.pyi +2 -1
  65. package/dist/typeshed-fallback/stdlib/email/header.pyi +2 -1
  66. package/dist/typeshed-fallback/stdlib/email/headerregistry.pyi +2 -0
  67. package/dist/typeshed-fallback/stdlib/fractions.pyi +3 -3
  68. package/dist/typeshed-fallback/stdlib/gzip.pyi +5 -5
  69. package/dist/typeshed-fallback/stdlib/http/__init__.pyi +15 -6
  70. package/dist/typeshed-fallback/stdlib/http/client.pyi +80 -58
  71. package/dist/typeshed-fallback/stdlib/inspect.pyi +5 -5
  72. package/dist/typeshed-fallback/stdlib/ipaddress.pyi +5 -3
  73. package/dist/typeshed-fallback/stdlib/itertools.pyi +12 -12
  74. package/dist/typeshed-fallback/stdlib/json/scanner.pyi +4 -0
  75. package/dist/typeshed-fallback/stdlib/lib2to3/pgen2/pgen.pyi +2 -1
  76. package/dist/typeshed-fallback/stdlib/lib2to3/pytree.pyi +2 -1
  77. package/dist/typeshed-fallback/stdlib/mmap.pyi +6 -6
  78. package/dist/typeshed-fallback/stdlib/multiprocessing/managers.pyi +63 -17
  79. package/dist/typeshed-fallback/stdlib/multiprocessing/pool.pyi +3 -0
  80. package/dist/typeshed-fallback/stdlib/multiprocessing/reduction.pyi +1 -1
  81. package/dist/typeshed-fallback/stdlib/multiprocessing/synchronize.pyi +1 -0
  82. package/dist/typeshed-fallback/stdlib/numbers.pyi +2 -1
  83. package/dist/typeshed-fallback/stdlib/operator.pyi +2 -2
  84. package/dist/typeshed-fallback/stdlib/optparse.pyi +89 -32
  85. package/dist/typeshed-fallback/stdlib/os/__init__.pyi +1 -0
  86. package/dist/typeshed-fallback/stdlib/parser.pyi +2 -1
  87. package/dist/typeshed-fallback/stdlib/pickle.pyi +51 -266
  88. package/dist/typeshed-fallback/stdlib/pickletools.pyi +8 -1
  89. package/dist/typeshed-fallback/stdlib/plistlib.pyi +2 -1
  90. package/dist/typeshed-fallback/stdlib/sched.pyi +3 -2
  91. package/dist/typeshed-fallback/stdlib/select.pyi +19 -13
  92. package/dist/typeshed-fallback/stdlib/selectors.pyi +5 -3
  93. package/dist/typeshed-fallback/stdlib/signal.pyi +47 -47
  94. package/dist/typeshed-fallback/stdlib/socket.pyi +8 -6
  95. package/dist/typeshed-fallback/stdlib/sqlite3/__init__.pyi +1 -1
  96. package/dist/typeshed-fallback/stdlib/ssl.pyi +4 -0
  97. package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +9 -3
  98. package/dist/typeshed-fallback/stdlib/tarfile.pyi +24 -10
  99. package/dist/typeshed-fallback/stdlib/telnetlib.pyi +2 -2
  100. package/dist/typeshed-fallback/stdlib/threading.pyi +6 -53
  101. package/dist/typeshed-fallback/stdlib/tkinter/__init__.pyi +193 -3
  102. package/dist/typeshed-fallback/stdlib/tkinter/filedialog.pyi +9 -9
  103. package/dist/typeshed-fallback/stdlib/tkinter/font.pyi +5 -4
  104. package/dist/typeshed-fallback/stdlib/token.pyi +1 -1
  105. package/dist/typeshed-fallback/stdlib/tokenize.pyi +3 -4
  106. package/dist/typeshed-fallback/stdlib/traceback.pyi +17 -4
  107. package/dist/typeshed-fallback/stdlib/types.pyi +45 -10
  108. package/dist/typeshed-fallback/stdlib/typing.pyi +45 -47
  109. package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +53 -12
  110. package/dist/typeshed-fallback/stdlib/unittest/mock.pyi +3 -1
  111. package/dist/typeshed-fallback/stdlib/unittest/runner.pyi +11 -12
  112. package/dist/typeshed-fallback/stdlib/unittest/suite.pyi +2 -0
  113. package/dist/typeshed-fallback/stdlib/weakref.pyi +19 -5
  114. package/dist/typeshed-fallback/stdlib/xml/dom/minidom.pyi +5 -4
  115. package/dist/typeshed-fallback/stdlib/xml/sax/expatreader.pyi +53 -0
  116. package/dist/typeshed-fallback/stdlib/xmlrpc/client.pyi +4 -3
  117. package/dist/typeshed-fallback/stdlib/xxlimited.pyi +4 -2
  118. package/dist/typeshed-fallback/stdlib/zipfile/_path/glob.pyi +22 -0
  119. package/dist/typeshed-fallback/stdlib/zoneinfo/__init__.pyi +1 -1
  120. package/dist/typeshed-fallback/stubs/Authlib/METADATA.toml +7 -0
  121. package/dist/typeshed-fallback/stubs/Authlib/authlib/__init__.pyi +4 -0
  122. package/dist/typeshed-fallback/stubs/Authlib/authlib/common/encoding.pyi +10 -0
  123. package/dist/typeshed-fallback/stubs/Authlib/authlib/common/errors.pyi +26 -0
  124. package/dist/typeshed-fallback/stubs/Authlib/authlib/common/security.pyi +4 -0
  125. package/dist/typeshed-fallback/stubs/Authlib/authlib/common/urls.pyi +19 -0
  126. package/dist/typeshed-fallback/stubs/Authlib/authlib/consts.pyi +8 -0
  127. package/dist/typeshed-fallback/stubs/Authlib/authlib/deprecate.pyi +7 -0
  128. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/__init__.pyi +0 -0
  129. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/__init__.pyi +29 -0
  130. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/async_app.pyi +16 -0
  131. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/async_openid.pyi +8 -0
  132. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/errors.pyi +23 -0
  133. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/framework_integration.pyi +13 -0
  134. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/registry.pyi +21 -0
  135. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/sync_app.pyi +93 -0
  136. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/sync_openid.pyi +7 -0
  137. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/__init__.pyi +44 -0
  138. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/__init__.pyi +3 -0
  139. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/_jwe_algorithms.pyi +27 -0
  140. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/_jwe_enc_cryptodome.pyi +13 -0
  141. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/_jwe_enc_cryptography.pyi +13 -0
  142. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/errors.pyi +72 -0
  143. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/jwk.pyi +4 -0
  144. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/__init__.pyi +4 -0
  145. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/jws.pyi +14 -0
  146. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/models.pyi +25 -0
  147. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/__init__.pyi +9 -0
  148. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/jwe.pyi +23 -0
  149. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/models.pyi +56 -0
  150. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/__init__.pyi +7 -0
  151. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/_cryptography_key.pyi +5 -0
  152. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/asymmetric_key.pyi +39 -0
  153. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/base_key.pyi +28 -0
  154. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/jwk.pyi +13 -0
  155. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/key_set.pyi +10 -0
  156. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/__init__.pyi +20 -0
  157. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/ec_key.pyi +24 -0
  158. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_algs.pyi +64 -0
  159. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_encs.pyi +27 -0
  160. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_zips.pyi +9 -0
  161. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jws_algs.pyi +63 -0
  162. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/oct_key.pyi +23 -0
  163. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/rsa_key.pyi +23 -0
  164. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/util.pyi +2 -0
  165. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7519/__init__.pyi +4 -0
  166. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7519/claims.pyi +21 -0
  167. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7519/jwt.pyi +21 -0
  168. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc8037/__init__.pyi +4 -0
  169. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc8037/jws_eddsa.pyi +10 -0
  170. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc8037/okp_key.pyi +24 -0
  171. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/util.pyi +3 -0
  172. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/__init__.pyi +33 -0
  173. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/client.pyi +39 -0
  174. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/errors.pyi +1 -0
  175. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/__init__.pyi +35 -0
  176. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/authorization_server.pyi +21 -0
  177. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/base_server.pyi +12 -0
  178. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/client_auth.pyi +41 -0
  179. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/errors.pyi +56 -0
  180. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/models.pyi +21 -0
  181. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/parameters.pyi +5 -0
  182. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/resource_protector.pyi +5 -0
  183. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/rsa.pyi +2 -0
  184. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/signature.pyi +22 -0
  185. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/util.pyi +2 -0
  186. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/wrapper.pyi +33 -0
  187. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/__init__.pyi +22 -0
  188. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/auth.pyi +24 -0
  189. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/base.pyi +20 -0
  190. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/client.pyi +96 -0
  191. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/__init__.pyi +76 -0
  192. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/authenticate_client.pyi +13 -0
  193. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/authorization_server.pyi +46 -0
  194. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/errors.pyi +92 -0
  195. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/__init__.pyi +21 -0
  196. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/authorization_code.pyi +24 -0
  197. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/base.pyi +55 -0
  198. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/client_credentials.pyi +6 -0
  199. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/implicit.pyi +12 -0
  200. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/refresh_token.pyi +15 -0
  201. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/resource_owner_password_credentials.pyi +7 -0
  202. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/models.pyi +22 -0
  203. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/parameters.pyi +14 -0
  204. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/requests.pyi +48 -0
  205. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/resource_protector.pyi +19 -0
  206. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/token_endpoint.pyi +13 -0
  207. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/util.pyi +5 -0
  208. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/wrappers.pyi +5 -0
  209. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/__init__.pyi +15 -0
  210. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/errors.pyi +27 -0
  211. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/parameters.pyi +6 -0
  212. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/token.pyi +41 -0
  213. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/validator.pyi +6 -0
  214. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7009/__init__.pyi +4 -0
  215. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7009/parameters.pyi +5 -0
  216. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7009/revocation.pyi +9 -0
  217. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7521/__init__.pyi +3 -0
  218. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7521/client.pyi +39 -0
  219. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/__init__.pyi +18 -0
  220. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/assertion.pyi +19 -0
  221. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/auth.pyi +22 -0
  222. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/client.pyi +16 -0
  223. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/jwt_bearer.pyi +28 -0
  224. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/token.pyi +30 -0
  225. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/validator.pyi +24 -0
  226. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/__init__.pyi +17 -0
  227. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/claims.pyi +22 -0
  228. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/endpoint.pyi +24 -0
  229. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/errors.pyi +13 -0
  230. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7592/__init__.pyi +3 -0
  231. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7592/endpoint.pyi +26 -0
  232. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7636/__init__.pyi +3 -0
  233. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7636/challenge.pyi +20 -0
  234. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/__init__.pyi +5 -0
  235. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/introspection.pyi +11 -0
  236. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/models.pyi +8 -0
  237. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/token_validator.pyi +7 -0
  238. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8414/__init__.pyi +4 -0
  239. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8414/models.pyi +40 -0
  240. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8414/well_known.pyi +1 -0
  241. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/__init__.pyi +19 -0
  242. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/device_code.pyi +15 -0
  243. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/endpoint.pyi +21 -0
  244. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/errors.pyi +10 -0
  245. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/models.pyi +13 -0
  246. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8693/__init__.pyi +0 -0
  247. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/__init__.pyi +6 -0
  248. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/claims.pyi +16 -0
  249. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/introspection.pyi +13 -0
  250. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/revocation.pyi +9 -0
  251. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/token.pyi +23 -0
  252. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/token_validator.pyi +20 -0
  253. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/__init__.pyi +0 -0
  254. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/__init__.pyi +29 -0
  255. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/claims.pyi +37 -0
  256. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/errors.pyi +28 -0
  257. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/__init__.pyi +5 -0
  258. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/code.pyi +17 -0
  259. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/hybrid.pyi +13 -0
  260. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/implicit.pyi +16 -0
  261. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/util.pyi +18 -0
  262. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/models.pyi +5 -0
  263. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/util.pyi +1 -0
  264. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/discovery/__init__.pyi +4 -0
  265. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/discovery/models.pyi +36 -0
  266. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/discovery/well_known.pyi +1 -0
  267. package/dist/typeshed-fallback/stubs/Flask-Migrate/METADATA.toml +1 -1
  268. package/dist/typeshed-fallback/stubs/Flask-Migrate/flask_migrate/__init__.pyi +2 -4
  269. package/dist/typeshed-fallback/stubs/Flask-SocketIO/METADATA.toml +1 -1
  270. package/dist/typeshed-fallback/stubs/Flask-SocketIO/flask_socketio/__init__.pyi +30 -4
  271. package/dist/typeshed-fallback/stubs/Markdown/markdown/core.pyi +2 -13
  272. package/dist/typeshed-fallback/stubs/PyAutoGUI/pyautogui/__init__.pyi +2 -2
  273. package/dist/typeshed-fallback/stubs/PyYAML/yaml/constructor.pyi +1 -1
  274. package/dist/typeshed-fallback/stubs/Pygments/METADATA.toml +1 -1
  275. package/dist/typeshed-fallback/stubs/WebOb/webob/exc.pyi +1 -1
  276. package/dist/typeshed-fallback/stubs/click-log/METADATA.toml +3 -0
  277. package/dist/typeshed-fallback/stubs/click-log/click_log/__init__.pyi +4 -0
  278. package/dist/typeshed-fallback/stubs/click-log/click_log/core.pyi +15 -0
  279. package/dist/typeshed-fallback/stubs/click-log/click_log/options.pyi +12 -0
  280. package/dist/typeshed-fallback/stubs/click-web/METADATA.toml +3 -0
  281. package/dist/typeshed-fallback/stubs/click-web/click_web/__init__.pyi +16 -0
  282. package/dist/typeshed-fallback/stubs/click-web/click_web/exceptions.pyi +2 -0
  283. package/dist/typeshed-fallback/stubs/click-web/click_web/resources/cmd_exec.pyi +79 -0
  284. package/dist/typeshed-fallback/stubs/click-web/click_web/resources/cmd_form.pyi +6 -0
  285. package/dist/typeshed-fallback/stubs/click-web/click_web/resources/index.pyi +6 -0
  286. package/dist/typeshed-fallback/stubs/click-web/click_web/resources/input_fields.pyi +49 -0
  287. package/dist/typeshed-fallback/stubs/click-web/click_web/web_click_types.pyi +18 -0
  288. package/dist/typeshed-fallback/stubs/croniter/METADATA.toml +1 -1
  289. package/dist/typeshed-fallback/stubs/croniter/croniter/croniter.pyi +7 -0
  290. package/dist/typeshed-fallback/stubs/django-import-export/METADATA.toml +6 -0
  291. package/dist/typeshed-fallback/stubs/django-import-export/import_export/__init__.pyi +1 -0
  292. package/dist/typeshed-fallback/stubs/django-import-export/import_export/admin.pyi +114 -0
  293. package/dist/typeshed-fallback/stubs/django-import-export/import_export/exceptions.pyi +2 -0
  294. package/dist/typeshed-fallback/stubs/django-import-export/import_export/fields.pyi +34 -0
  295. package/dist/typeshed-fallback/stubs/django-import-export/import_export/formats/__init__.pyi +0 -0
  296. package/dist/typeshed-fallback/stubs/django-import-export/import_export/formats/base_formats.pyi +57 -0
  297. package/dist/typeshed-fallback/stubs/django-import-export/import_export/forms.pyi +31 -0
  298. package/dist/typeshed-fallback/stubs/django-import-export/import_export/instance_loaders.pyi +23 -0
  299. package/dist/typeshed-fallback/stubs/django-import-export/import_export/mixins.pyi +66 -0
  300. package/dist/typeshed-fallback/stubs/django-import-export/import_export/resources.pyi +232 -0
  301. package/dist/typeshed-fallback/stubs/django-import-export/import_export/results.pyi +73 -0
  302. package/dist/typeshed-fallback/stubs/django-import-export/import_export/signals.pyi +4 -0
  303. package/dist/typeshed-fallback/stubs/django-import-export/import_export/templatetags/__init__.pyi +0 -0
  304. package/dist/typeshed-fallback/stubs/django-import-export/import_export/templatetags/import_export_tags.pyi +8 -0
  305. package/dist/typeshed-fallback/stubs/django-import-export/import_export/tmp_storages.pyi +34 -0
  306. package/dist/typeshed-fallback/stubs/django-import-export/import_export/utils.pyi +18 -0
  307. package/dist/typeshed-fallback/stubs/django-import-export/import_export/widgets.pyi +66 -0
  308. package/dist/typeshed-fallback/stubs/docker/docker/models/containers.pyi +2 -2
  309. package/dist/typeshed-fallback/stubs/flake8-bugbear/METADATA.toml +1 -1
  310. package/dist/typeshed-fallback/stubs/fpdf2/METADATA.toml +1 -1
  311. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/__init__.pyi +2 -0
  312. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/annotations.pyi +2 -2
  313. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/enums.pyi +50 -4
  314. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fonts.pyi +3 -3
  315. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/fpdf.pyi +53 -18
  316. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/html.pyi +2 -0
  317. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/image_parsing.pyi +10 -2
  318. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/line_break.pyi +9 -3
  319. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/outline.pyi +21 -0
  320. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/output.pyi +19 -0
  321. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/prefs.pyi +38 -4
  322. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/table.pyi +13 -1
  323. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/util.pyi +1 -0
  324. package/dist/typeshed-fallback/stubs/gdb/METADATA.toml +1 -1
  325. package/dist/typeshed-fallback/stubs/gdb/gdb/__init__.pyi +126 -9
  326. package/dist/typeshed-fallback/stubs/gdb/gdb/unwinder.pyi +2 -3
  327. package/dist/typeshed-fallback/stubs/gevent/gevent/select.pyi +7 -2
  328. package/dist/typeshed-fallback/stubs/hdbcli/METADATA.toml +1 -1
  329. package/dist/typeshed-fallback/stubs/ibm-db/METADATA.toml +1 -1
  330. package/dist/typeshed-fallback/stubs/ibm-db/ibm_db.pyi +11 -1
  331. package/dist/typeshed-fallback/stubs/icalendar/METADATA.toml +1 -5
  332. package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/tzp.pyi +1 -1
  333. package/dist/typeshed-fallback/stubs/jsonschema/METADATA.toml +0 -2
  334. package/dist/typeshed-fallback/stubs/jwcrypto/jwcrypto/jwk.pyi +4 -4
  335. package/dist/typeshed-fallback/stubs/lupa/METADATA.toml +1 -1
  336. package/dist/typeshed-fallback/stubs/m3u8/m3u8/httpclient.pyi +1 -1
  337. package/dist/typeshed-fallback/stubs/nanoleafapi/METADATA.toml +2 -0
  338. package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/__init__.pyi +16 -0
  339. package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/digital_twin.pyi +12 -0
  340. package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/discovery.pyi +1 -0
  341. package/dist/typeshed-fallback/stubs/nanoleafapi/nanoleafapi/nanoleaf.pyi +68 -0
  342. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multidigraph.pyi +1 -1
  343. package/dist/typeshed-fallback/stubs/openpyxl/openpyxl/styles/cell_style.pyi +1 -1
  344. package/dist/typeshed-fallback/stubs/peewee/peewee.pyi +4 -4
  345. package/dist/typeshed-fallback/stubs/pexpect/pexpect/pty_spawn.pyi +1 -1
  346. package/dist/typeshed-fallback/stubs/pika/pika/credentials.pyi +10 -7
  347. package/dist/typeshed-fallback/stubs/polib/polib.pyi +3 -2
  348. package/dist/typeshed-fallback/stubs/protobuf/METADATA.toml +2 -2
  349. package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/api_pb2.pyi +1 -1
  350. package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/descriptor_pb2.pyi +4 -8
  351. package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/runtime_version.pyi +23 -0
  352. package/dist/typeshed-fallback/stubs/pycocotools/METADATA.toml +1 -0
  353. package/dist/typeshed-fallback/stubs/pycocotools/pycocotools/coco.pyi +6 -11
  354. package/dist/typeshed-fallback/stubs/pycocotools/pycocotools/cocoeval.pyi +16 -30
  355. package/dist/typeshed-fallback/stubs/pycocotools/pycocotools/mask.pyi +7 -9
  356. package/dist/typeshed-fallback/stubs/pycurl/METADATA.toml +1 -1
  357. package/dist/typeshed-fallback/stubs/pycurl/pycurl.pyi +33 -32
  358. package/dist/typeshed-fallback/stubs/pynput/pynput/keyboard/_base.pyi +65 -65
  359. package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/relativedelta.pyi +3 -11
  360. package/dist/typeshed-fallback/stubs/pywin32/_win32typing.pyi +3 -3
  361. package/dist/typeshed-fallback/stubs/qrbill/qrbill/bill.pyi +2 -2
  362. package/dist/typeshed-fallback/stubs/requests-oauthlib/requests_oauthlib/oauth1_auth.pyi +1 -1
  363. package/dist/typeshed-fallback/stubs/seaborn/METADATA.toml +1 -11
  364. package/dist/typeshed-fallback/stubs/seaborn/seaborn/algorithms.pyi +13 -13
  365. package/dist/typeshed-fallback/stubs/setuptools/METADATA.toml +1 -1
  366. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/cmd.pyi +5 -0
  367. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/bdist.pyi +1 -1
  368. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/command/install_data.pyi +2 -1
  369. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/dist.pyi +21 -21
  370. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/extension.pyi +3 -4
  371. package/dist/typeshed-fallback/stubs/setuptools/setuptools/extension.pyi +2 -3
  372. package/dist/typeshed-fallback/stubs/shapely/shapely/_enum.pyi +1 -1
  373. package/dist/typeshed-fallback/stubs/six/METADATA.toml +1 -1
  374. package/dist/typeshed-fallback/stubs/tabulate/tabulate/__init__.pyi +2 -1
  375. package/dist/typeshed-fallback/stubs/tqdm/tqdm/asyncio.pyi +2 -2
  376. package/dist/typeshed-fallback/stubs/vobject/METADATA.toml +2 -2
  377. package/dist/typeshed-fallback/stubs/vobject/vobject/__init__.pyi +2 -4
  378. package/dist/typeshed-fallback/stubs/vobject/vobject/base.pyi +26 -24
  379. package/dist/typeshed-fallback/stubs/vobject/vobject/behavior.pyi +5 -4
  380. package/dist/typeshed-fallback/stubs/vobject/vobject/icalendar.pyi +28 -37
  381. package/dist/typeshed-fallback/stubs/vobject/vobject/vcard.pyi +20 -20
  382. package/dist/typeshed-fallback/stubs/vobject/vobject/win32tz.pyi +22 -22
  383. package/package.json +1 -1
  384. package/dist/typeshed-fallback/stubs/python-gflags/METADATA.toml +0 -2
  385. package/dist/typeshed-fallback/stubs/python-gflags/gflags.pyi +0 -309
  386. package/dist/typeshed-fallback/stubs/redis/METADATA.toml +0 -12
  387. package/dist/typeshed-fallback/stubs/redis/redis/__init__.pyi +0 -72
  388. package/dist/typeshed-fallback/stubs/redis/redis/asyncio/__init__.pyi +0 -64
  389. package/dist/typeshed-fallback/stubs/redis/redis/asyncio/client.pyi +0 -1091
  390. package/dist/typeshed-fallback/stubs/redis/redis/asyncio/cluster.pyi +0 -229
  391. package/dist/typeshed-fallback/stubs/redis/redis/asyncio/connection.pyi +0 -363
  392. package/dist/typeshed-fallback/stubs/redis/redis/asyncio/lock.pyi +0 -51
  393. package/dist/typeshed-fallback/stubs/redis/redis/asyncio/parser.pyi +0 -9
  394. package/dist/typeshed-fallback/stubs/redis/redis/asyncio/retry.pyi +0 -12
  395. package/dist/typeshed-fallback/stubs/redis/redis/asyncio/sentinel.pyi +0 -162
  396. package/dist/typeshed-fallback/stubs/redis/redis/asyncio/utils.pyi +0 -15
  397. package/dist/typeshed-fallback/stubs/redis/redis/backoff.pyi +0 -31
  398. package/dist/typeshed-fallback/stubs/redis/redis/client.pyi +0 -817
  399. package/dist/typeshed-fallback/stubs/redis/redis/cluster.pyi +0 -265
  400. package/dist/typeshed-fallback/stubs/redis/redis/commands/__init__.pyi +0 -17
  401. package/dist/typeshed-fallback/stubs/redis/redis/commands/bf/__init__.pyi +0 -58
  402. package/dist/typeshed-fallback/stubs/redis/redis/commands/bf/commands.pyi +0 -112
  403. package/dist/typeshed-fallback/stubs/redis/redis/commands/bf/info.pyi +0 -43
  404. package/dist/typeshed-fallback/stubs/redis/redis/commands/cluster.pyi +0 -60
  405. package/dist/typeshed-fallback/stubs/redis/redis/commands/core.pyi +0 -1743
  406. package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/__init__.pyi +0 -26
  407. package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/commands.pyi +0 -25
  408. package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/edge.pyi +0 -14
  409. package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/exceptions.pyi +0 -5
  410. package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/node.pyi +0 -18
  411. package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/path.pyi +0 -18
  412. package/dist/typeshed-fallback/stubs/redis/redis/commands/graph/query_result.pyi +0 -74
  413. package/dist/typeshed-fallback/stubs/redis/redis/commands/helpers.pyi +0 -10
  414. package/dist/typeshed-fallback/stubs/redis/redis/commands/json/__init__.pyi +0 -15
  415. package/dist/typeshed-fallback/stubs/redis/redis/commands/json/commands.pyi +0 -32
  416. package/dist/typeshed-fallback/stubs/redis/redis/commands/json/decoders.pyi +0 -4
  417. package/dist/typeshed-fallback/stubs/redis/redis/commands/json/path.pyi +0 -5
  418. package/dist/typeshed-fallback/stubs/redis/redis/commands/parser.pyi +0 -8
  419. package/dist/typeshed-fallback/stubs/redis/redis/commands/redismodules.pyi +0 -14
  420. package/dist/typeshed-fallback/stubs/redis/redis/commands/search/__init__.pyi +0 -22
  421. package/dist/typeshed-fallback/stubs/redis/redis/commands/search/aggregation.pyi +0 -53
  422. package/dist/typeshed-fallback/stubs/redis/redis/commands/search/commands.pyi +0 -111
  423. package/dist/typeshed-fallback/stubs/redis/redis/commands/search/query.pyi +0 -52
  424. package/dist/typeshed-fallback/stubs/redis/redis/commands/search/result.pyi +0 -7
  425. package/dist/typeshed-fallback/stubs/redis/redis/commands/sentinel.pyi +0 -17
  426. package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/__init__.pyi +0 -14
  427. package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/commands.pyi +0 -160
  428. package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/info.pyi +0 -18
  429. package/dist/typeshed-fallback/stubs/redis/redis/commands/timeseries/utils.pyi +0 -5
  430. package/dist/typeshed-fallback/stubs/redis/redis/connection.pyi +0 -289
  431. package/dist/typeshed-fallback/stubs/redis/redis/crc.pyi +0 -5
  432. package/dist/typeshed-fallback/stubs/redis/redis/credentials.pyi +0 -11
  433. package/dist/typeshed-fallback/stubs/redis/redis/exceptions.pyi +0 -42
  434. package/dist/typeshed-fallback/stubs/redis/redis/lock.pyi +0 -56
  435. package/dist/typeshed-fallback/stubs/redis/redis/ocsp.pyi +0 -21
  436. package/dist/typeshed-fallback/stubs/redis/redis/retry.pyi +0 -11
  437. package/dist/typeshed-fallback/stubs/redis/redis/sentinel.pyi +0 -62
  438. package/dist/typeshed-fallback/stubs/redis/redis/typing.pyi +0 -34
  439. package/dist/typeshed-fallback/stubs/redis/redis/utils.pyi +0 -22
  440. package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py310.pyi +0 -9
  441. package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py311.pyi +0 -4
  442. package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py312.pyi +0 -3
  443. package/dist/typeshed-fallback/stubs/setuptools/setuptools/compat/py39.pyi +0 -7
  444. /package/dist/typeshed-fallback/stdlib/zipfile/{_path.pyi → _path/__init__.pyi} +0 -0
  445. /package/dist/typeshed-fallback/stubs/{setuptools/setuptools/compat → Authlib/authlib/common}/__init__.pyi +0 -0
@@ -105,14 +105,26 @@ class FunctionType:
105
105
  __type_params__: tuple[TypeVar | ParamSpec | TypeVarTuple, ...]
106
106
 
107
107
  __module__: str
108
- def __new__(
109
- cls,
110
- code: CodeType,
111
- globals: dict[str, Any],
112
- name: str | None = ...,
113
- argdefs: tuple[object, ...] | None = ...,
114
- closure: tuple[CellType, ...] | None = ...,
115
- ) -> Self: ...
108
+ if sys.version_info >= (3, 13):
109
+ def __new__(
110
+ cls,
111
+ code: CodeType,
112
+ globals: dict[str, Any],
113
+ name: str | None = None,
114
+ argdefs: tuple[object, ...] | None = None,
115
+ closure: tuple[CellType, ...] | None = None,
116
+ kwdefaults: dict[str, object] | None = None,
117
+ ) -> Self: ...
118
+ else:
119
+ def __new__(
120
+ cls,
121
+ code: CodeType,
122
+ globals: dict[str, Any],
123
+ name: str | None = None,
124
+ argdefs: tuple[object, ...] | None = None,
125
+ closure: tuple[CellType, ...] | None = None,
126
+ ) -> Self: ...
127
+
116
128
  def __call__(self, *args: Any, **kwargs: Any) -> Any:
117
129
  """Call self as a function."""
118
130
  ...
@@ -444,6 +456,12 @@ _ReturnT_co = TypeVar("_ReturnT_co", covariant=True)
444
456
 
445
457
  @final
446
458
  class GeneratorType(Generator[_YieldT_co, _SendT_contra, _ReturnT_co]):
459
+ @property
460
+ def gi_code(self) -> CodeType: ...
461
+ @property
462
+ def gi_frame(self) -> FrameType: ...
463
+ @property
464
+ def gi_running(self) -> bool: ...
447
465
  @property
448
466
  def gi_yieldfrom(self) -> GeneratorType[_YieldT_co, _SendT_contra, Any] | None:
449
467
  """object being iterated by yield from, or None"""
@@ -502,6 +520,12 @@ class AsyncGeneratorType(AsyncGenerator[_YieldT_co, _SendT_contra]):
502
520
  def ag_await(self) -> Awaitable[Any] | None:
503
521
  """object being awaited on, or None"""
504
522
  ...
523
+ @property
524
+ def ag_code(self) -> CodeType: ...
525
+ @property
526
+ def ag_frame(self) -> FrameType: ...
527
+ @property
528
+ def ag_running(self) -> bool: ...
505
529
  __name__: str
506
530
  __qualname__: str
507
531
  if sys.version_info >= (3, 12):
@@ -554,6 +578,16 @@ class CoroutineType(Coroutine[_YieldT_co, _SendT_contra, _ReturnT_co]):
554
578
  __name__: str
555
579
  __qualname__: str
556
580
  @property
581
+ def cr_await(self) -> Any | None:
582
+ """object being awaited on, or None"""
583
+ ...
584
+ @property
585
+ def cr_code(self) -> CodeType: ...
586
+ @property
587
+ def cr_frame(self) -> FrameType: ...
588
+ @property
589
+ def cr_running(self) -> bool: ...
590
+ @property
557
591
  def cr_origin(self) -> tuple[tuple[str, int, str], ...] | None: ...
558
592
  if sys.version_info >= (3, 11):
559
593
  @property
@@ -623,7 +657,7 @@ class MethodType:
623
657
  def __name__(self) -> str: ... # inherited from the added function
624
658
  @property
625
659
  def __qualname__(self) -> str: ... # inherited from the added function
626
- def __new__(cls, func: Callable[..., Any], obj: object, /) -> Self: ...
660
+ def __new__(cls, func: Callable[..., Any], instance: object, /) -> Self: ...
627
661
  def __call__(self, *args: Any, **kwargs: Any) -> Any:
628
662
  """Call self as a function."""
629
663
  ...
@@ -834,7 +868,7 @@ if sys.version_info >= (3, 9):
834
868
  def __parameters__(self) -> tuple[Any, ...]:
835
869
  """Type variables in the GenericAlias."""
836
870
  ...
837
- def __new__(cls, origin: type, args: Any) -> Self: ...
871
+ def __new__(cls, origin: type, args: Any, /) -> Self: ...
838
872
  def __getitem__(self, typeargs: Any, /) -> GenericAlias:
839
873
  """Return self[key]."""
840
874
  ...
@@ -844,6 +878,7 @@ if sys.version_info >= (3, 9):
844
878
  def __hash__(self) -> int:
845
879
  """Return hash(self)."""
846
880
  ...
881
+ def __mro_entries__(self, bases: Iterable[object], /) -> tuple[type, ...]: ...
847
882
  if sys.version_info >= (3, 11):
848
883
  @property
849
884
  def __unpacked__(self) -> bool: ...
@@ -12,7 +12,6 @@ from re import Match as Match, Pattern as Pattern
12
12
  from types import (
13
13
  BuiltinFunctionType,
14
14
  CodeType,
15
- FrameType,
16
15
  FunctionType,
17
16
  MethodDescriptorType,
18
17
  MethodType,
@@ -155,8 +154,8 @@ class TypeVar:
155
154
  @property
156
155
  def __default__(self) -> Any: ...
157
156
  if sys.version_info >= (3, 13):
158
- def __init__(
159
- self,
157
+ def __new__(
158
+ cls,
160
159
  name: str,
161
160
  *constraints: Any,
162
161
  bound: Any | None = None,
@@ -164,17 +163,21 @@ class TypeVar:
164
163
  covariant: bool = False,
165
164
  infer_variance: bool = False,
166
165
  default: Any = ...,
167
- ) -> None: ...
166
+ ) -> Self: ...
168
167
  elif sys.version_info >= (3, 12):
169
- def __init__(
170
- self,
168
+ def __new__(
169
+ cls,
171
170
  name: str,
172
171
  *constraints: Any,
173
172
  bound: Any | None = None,
174
173
  covariant: bool = False,
175
174
  contravariant: bool = False,
176
175
  infer_variance: bool = False,
177
- ) -> None: ...
176
+ ) -> Self: ...
177
+ elif sys.version_info >= (3, 11):
178
+ def __new__(
179
+ cls, name: str, *constraints: Any, bound: Any | None = None, covariant: bool = False, contravariant: bool = False
180
+ ) -> Self: ...
178
181
  else:
179
182
  def __init__(
180
183
  self, name: str, *constraints: Any, bound: Any | None = None, covariant: bool = False, contravariant: bool = False
@@ -238,7 +241,9 @@ if sys.version_info >= (3, 11):
238
241
  ...
239
242
  def has_default(self) -> bool: ...
240
243
  if sys.version_info >= (3, 13):
241
- def __init__(self, name: str, *, default: Any = ...) -> None: ...
244
+ def __new__(cls, name: str, *, default: Any = ...) -> Self: ...
245
+ elif sys.version_info >= (3, 12):
246
+ def __new__(cls, name: str) -> Self: ...
242
247
  else:
243
248
  def __init__(self, name: str) -> None: ...
244
249
 
@@ -253,19 +258,29 @@ if sys.version_info >= (3, 10):
253
258
  class ParamSpecArgs:
254
259
  @property
255
260
  def __origin__(self) -> ParamSpec: ...
256
- def __init__(self, origin: ParamSpec) -> None: ...
261
+ if sys.version_info >= (3, 12):
262
+ def __new__(cls, origin: ParamSpec) -> Self: ...
263
+ else:
264
+ def __init__(self, origin: ParamSpec) -> None: ...
265
+
257
266
  def __eq__(self, other: object) -> bool:
258
267
  """Return self==value."""
259
268
  ...
269
+ __hash__: ClassVar[None] # type: ignore[assignment]
260
270
 
261
271
  @final
262
272
  class ParamSpecKwargs:
263
273
  @property
264
274
  def __origin__(self) -> ParamSpec: ...
265
- def __init__(self, origin: ParamSpec) -> None: ...
275
+ if sys.version_info >= (3, 12):
276
+ def __new__(cls, origin: ParamSpec) -> Self: ...
277
+ else:
278
+ def __init__(self, origin: ParamSpec) -> None: ...
279
+
266
280
  def __eq__(self, other: object) -> bool:
267
281
  """Return self==value."""
268
282
  ...
283
+ __hash__: ClassVar[None] # type: ignore[assignment]
269
284
 
270
285
  @final
271
286
  class ParamSpec:
@@ -286,8 +301,8 @@ if sys.version_info >= (3, 10):
286
301
  """The default value for this ParamSpec."""
287
302
  ...
288
303
  if sys.version_info >= (3, 13):
289
- def __init__(
290
- self,
304
+ def __new__(
305
+ cls,
291
306
  name: str,
292
307
  *,
293
308
  bound: Any | None = None,
@@ -295,17 +310,21 @@ if sys.version_info >= (3, 10):
295
310
  covariant: bool = False,
296
311
  infer_variance: bool = False,
297
312
  default: Any = ...,
298
- ) -> None: ...
313
+ ) -> Self: ...
299
314
  elif sys.version_info >= (3, 12):
300
- def __init__(
301
- self,
315
+ def __new__(
316
+ cls,
302
317
  name: str,
303
318
  *,
304
319
  bound: Any | None = None,
305
320
  contravariant: bool = False,
306
321
  covariant: bool = False,
307
322
  infer_variance: bool = False,
308
- ) -> None: ...
323
+ ) -> Self: ...
324
+ elif sys.version_info >= (3, 11):
325
+ def __new__(
326
+ cls, name: str, *, bound: Any | None = None, contravariant: bool = False, covariant: bool = False
327
+ ) -> Self: ...
309
328
  else:
310
329
  def __init__(
311
330
  self, name: str, *, bound: Any | None = None, contravariant: bool = False, covariant: bool = False
@@ -355,6 +374,8 @@ _F = TypeVar("_F", bound=Callable[..., Any])
355
374
  _P = _ParamSpec("_P")
356
375
  _T = TypeVar("_T")
357
376
 
377
+ _FT = TypeVar("_FT", bound=Callable[..., Any] | type)
378
+
358
379
  # These type variables are used by the container types.
359
380
  _S = TypeVar("_S")
360
381
  _KT = TypeVar("_KT") # Key type.
@@ -369,7 +390,7 @@ def no_type_check(arg: _F) -> _F: ...
369
390
  def no_type_check_decorator(decorator: Callable[_P, _T]) -> Callable[_P, _T]: ...
370
391
 
371
392
  # This itself is only available during type checking
372
- def type_check_only(func_or_cls: _F) -> _F: ...
393
+ def type_check_only(func_or_cls: _FT) -> _FT: ...
373
394
 
374
395
  # Type aliases and type constructors
375
396
 
@@ -480,7 +501,8 @@ _YieldT_co = TypeVar("_YieldT_co", covariant=True)
480
501
  _SendT_contra = TypeVar("_SendT_contra", contravariant=True, default=None)
481
502
  _ReturnT_co = TypeVar("_ReturnT_co", covariant=True, default=None)
482
503
 
483
- class Generator(Iterator[_YieldT_co], Generic[_YieldT_co, _SendT_contra, _ReturnT_co]):
504
+ @runtime_checkable
505
+ class Generator(Iterator[_YieldT_co], Protocol[_YieldT_co, _SendT_contra, _ReturnT_co]):
484
506
  """A generic version of collections.abc.Generator."""
485
507
  def __next__(self) -> _YieldT_co: ...
486
508
  @abstractmethod
@@ -499,14 +521,6 @@ class Generator(Iterator[_YieldT_co], Generic[_YieldT_co, _SendT_contra, _Return
499
521
  def close(self) -> None: ...
500
522
 
501
523
  def __iter__(self) -> Generator[_YieldT_co, _SendT_contra, _ReturnT_co]: ...
502
- @property
503
- def gi_code(self) -> CodeType: ...
504
- @property
505
- def gi_frame(self) -> FrameType: ...
506
- @property
507
- def gi_running(self) -> bool: ...
508
- @property
509
- def gi_yieldfrom(self) -> Generator[Any, Any, Any] | None: ...
510
524
 
511
525
  # NOTE: Prior to Python 3.13 these aliases are lacking the second _ExitT_co parameter
512
526
  if sys.version_info >= (3, 13):
@@ -534,14 +548,7 @@ class Coroutine(Awaitable[_ReturnT_co_nd], Generic[_YieldT_co, _SendT_contra_nd,
534
548
  """A generic version of collections.abc.Coroutine."""
535
549
  __name__: str
536
550
  __qualname__: str
537
- @property
538
- def cr_await(self) -> Any | None: ...
539
- @property
540
- def cr_code(self) -> CodeType: ...
541
- @property
542
- def cr_frame(self) -> FrameType | None: ...
543
- @property
544
- def cr_running(self) -> bool: ...
551
+
545
552
  @abstractmethod
546
553
  def send(self, value: _SendT_contra_nd, /) -> _YieldT_co: ...
547
554
  @overload
@@ -578,7 +585,8 @@ class AsyncIterator(AsyncIterable[_T_co], Protocol[_T_co]):
578
585
  def __anext__(self) -> Awaitable[_T_co]: ...
579
586
  def __aiter__(self) -> AsyncIterator[_T_co]: ...
580
587
 
581
- class AsyncGenerator(AsyncIterator[_YieldT_co], Generic[_YieldT_co, _SendT_contra]):
588
+ @runtime_checkable
589
+ class AsyncGenerator(AsyncIterator[_YieldT_co], Protocol[_YieldT_co, _SendT_contra]):
582
590
  """A generic version of collections.abc.AsyncGenerator."""
583
591
  def __anext__(self) -> Coroutine[Any, Any, _YieldT_co]: ...
584
592
  @abstractmethod
@@ -594,14 +602,6 @@ class AsyncGenerator(AsyncIterator[_YieldT_co], Generic[_YieldT_co, _SendT_contr
594
602
  self, typ: BaseException, val: None = None, tb: TracebackType | None = None, /
595
603
  ) -> Coroutine[Any, Any, _YieldT_co]: ...
596
604
  def aclose(self) -> Coroutine[Any, Any, None]: ...
597
- @property
598
- def ag_await(self) -> Any: ...
599
- @property
600
- def ag_code(self) -> CodeType: ...
601
- @property
602
- def ag_frame(self) -> FrameType: ...
603
- @property
604
- def ag_running(self) -> bool: ...
605
605
 
606
606
  @runtime_checkable
607
607
  class Container(Protocol[_T_co]):
@@ -816,7 +816,7 @@ class MutableMapping(Mapping[_KT, _VT]):
816
816
 
817
817
  Text = str
818
818
 
819
- TYPE_CHECKING: bool
819
+ TYPE_CHECKING: Final[bool]
820
820
 
821
821
  # In stubs, the arguments of the IO class are marked as positional-only.
822
822
  # This differs from runtime, but better reflects the fact that in reality
@@ -1110,9 +1110,7 @@ if sys.version_info >= (3, 12):
1110
1110
  def override(method: _F, /) -> _F: ...
1111
1111
  @final
1112
1112
  class TypeAliasType:
1113
- def __init__(
1114
- self, name: str, value: Any, *, type_params: tuple[TypeVar | ParamSpec | TypeVarTuple, ...] = ()
1115
- ) -> None: ...
1113
+ def __new__(cls, name: str, value: Any, *, type_params: tuple[TypeVar | ParamSpec | TypeVarTuple, ...] = ()) -> Self: ...
1116
1114
  @property
1117
1115
  def __value__(self) -> Any: ...
1118
1116
  @property
@@ -1,3 +1,5 @@
1
+ # Since this module defines "Self" it is not recognized by Ruff as typing_extensions.Self
2
+ # ruff: noqa: PYI034
1
3
  import abc
2
4
  import sys
3
5
  import typing
@@ -48,12 +50,6 @@ from typing import ( # noqa: Y022,Y037,Y038,Y039
48
50
  Sequence as Sequence,
49
51
  Set as Set,
50
52
  Sized as Sized,
51
- SupportsAbs as SupportsAbs,
52
- SupportsBytes as SupportsBytes,
53
- SupportsComplex as SupportsComplex,
54
- SupportsFloat as SupportsFloat,
55
- SupportsInt as SupportsInt,
56
- SupportsRound as SupportsRound,
57
53
  Text as Text,
58
54
  TextIO as TextIO,
59
55
  Tuple as Tuple,
@@ -190,6 +186,7 @@ __all__ = [
190
186
  _T = typing.TypeVar("_T")
191
187
  _F = typing.TypeVar("_F", bound=Callable[..., Any])
192
188
  _TC = typing.TypeVar("_TC", bound=type[object])
189
+ _T_co = typing.TypeVar("_T_co", covariant=True) # Any type covariant containers.
193
190
 
194
191
  class _Final: ... # This should be imported from typing but that breaks pytype
195
192
 
@@ -282,11 +279,6 @@ def get_origin(tp: Any) -> Any | None: ...
282
279
  Annotated: _SpecialForm
283
280
  _AnnotatedAlias: Any # undocumented
284
281
 
285
- @runtime_checkable
286
- class SupportsIndex(Protocol, metaclass=abc.ABCMeta):
287
- @abc.abstractmethod
288
- def __index__(self) -> int: ...
289
-
290
282
  # New and changed things in 3.10
291
283
  if sys.version_info >= (3, 10):
292
284
  from typing import (
@@ -383,7 +375,17 @@ else:
383
375
  if sys.version_info >= (3, 12):
384
376
  from collections.abc import Buffer as Buffer
385
377
  from types import get_original_bases as get_original_bases
386
- from typing import TypeAliasType as TypeAliasType, override as override
378
+ from typing import (
379
+ SupportsAbs as SupportsAbs,
380
+ SupportsBytes as SupportsBytes,
381
+ SupportsComplex as SupportsComplex,
382
+ SupportsFloat as SupportsFloat,
383
+ SupportsIndex as SupportsIndex,
384
+ SupportsInt as SupportsInt,
385
+ SupportsRound as SupportsRound,
386
+ TypeAliasType as TypeAliasType,
387
+ override as override,
388
+ )
387
389
  else:
388
390
  def override(arg: _F, /) -> _F: ...
389
391
  def get_original_bases(cls: type, /) -> tuple[Any, ...]: ...
@@ -418,6 +420,45 @@ else:
418
420
  # https://github.com/python/typeshed/issues/10224 for why we're defining it this way
419
421
  def __buffer__(self, flags: int, /) -> memoryview: ...
420
422
 
423
+ @runtime_checkable
424
+ class SupportsInt(Protocol, metaclass=abc.ABCMeta):
425
+ @abc.abstractmethod
426
+ def __int__(self) -> int: ...
427
+
428
+ @runtime_checkable
429
+ class SupportsFloat(Protocol, metaclass=abc.ABCMeta):
430
+ @abc.abstractmethod
431
+ def __float__(self) -> float: ...
432
+
433
+ @runtime_checkable
434
+ class SupportsComplex(Protocol, metaclass=abc.ABCMeta):
435
+ @abc.abstractmethod
436
+ def __complex__(self) -> complex: ...
437
+
438
+ @runtime_checkable
439
+ class SupportsBytes(Protocol, metaclass=abc.ABCMeta):
440
+ @abc.abstractmethod
441
+ def __bytes__(self) -> bytes: ...
442
+
443
+ @runtime_checkable
444
+ class SupportsIndex(Protocol, metaclass=abc.ABCMeta):
445
+ @abc.abstractmethod
446
+ def __index__(self) -> int: ...
447
+
448
+ @runtime_checkable
449
+ class SupportsAbs(Protocol[_T_co]):
450
+ @abc.abstractmethod
451
+ def __abs__(self) -> _T_co: ...
452
+
453
+ @runtime_checkable
454
+ class SupportsRound(Protocol[_T_co]):
455
+ @overload
456
+ @abc.abstractmethod
457
+ def __round__(self) -> int: ...
458
+ @overload
459
+ @abc.abstractmethod
460
+ def __round__(self, ndigits: int, /) -> _T_co: ...
461
+
421
462
  if sys.version_info >= (3, 13):
422
463
  from types import CapsuleType as CapsuleType
423
464
  from typing import (
@@ -2,7 +2,7 @@ import sys
2
2
  from collections.abc import Awaitable, Callable, Coroutine, Iterable, Mapping, Sequence
3
3
  from contextlib import _GeneratorContextManager
4
4
  from types import TracebackType
5
- from typing import Any, Final, Generic, Literal, TypeVar, overload
5
+ from typing import Any, ClassVar, Final, Generic, Literal, TypeVar, overload
6
6
  from typing_extensions import ParamSpec, Self, TypeAlias
7
7
 
8
8
  _T = TypeVar("_T")
@@ -85,6 +85,7 @@ class _Call(tuple[Any, ...]):
85
85
  two: bool = False,
86
86
  from_kall: bool = True,
87
87
  ) -> None: ...
88
+ __hash__: ClassVar[None] # type: ignore[assignment]
88
89
  def __eq__(self, other: object) -> bool: ...
89
90
  def __ne__(self, value: object, /) -> bool:
90
91
  """Return self!=value."""
@@ -405,6 +406,7 @@ class MagicProxy(Base):
405
406
  class _ANY:
406
407
  def __eq__(self, other: object) -> Literal[True]: ...
407
408
  def __ne__(self, other: object) -> Literal[False]: ...
409
+ __hash__: ClassVar[None] # type: ignore[assignment]
408
410
 
409
411
  ANY: Any
410
412
 
@@ -6,21 +6,22 @@ from _typeshed import SupportsFlush, SupportsWrite
6
6
  from collections.abc import Callable, Iterable
7
7
  from typing import Any, Generic, Protocol, TypeVar
8
8
  from typing_extensions import Never, TypeAlias
9
+ from warnings import _ActionKind
9
10
 
10
- _ResultClassType: TypeAlias = Callable[[_TextTestStream, bool, int], TextTestResult]
11
+ _ResultClassType: TypeAlias = Callable[[_TextTestStream, bool, int], TextTestResult[Any]]
11
12
 
12
13
  class _SupportsWriteAndFlush(SupportsWrite[str], SupportsFlush, Protocol): ...
13
14
 
14
15
  # All methods used by unittest.runner.TextTestResult's stream
15
16
  class _TextTestStream(_SupportsWriteAndFlush, Protocol):
16
- def writeln(self, arg: str | None = None, /) -> str: ...
17
+ def writeln(self, arg: str | None = None, /) -> None: ...
17
18
 
18
19
  # _WritelnDecorator should have all the same attrs as its stream param.
19
20
  # But that's not feasible to do Generically
20
21
  # We can expand the attributes if requested
21
22
  class _WritelnDecorator:
22
- def __init__(self, stream: _TextTestStream) -> None: ...
23
- def writeln(self, arg: str | None = None) -> str: ...
23
+ def __init__(self, stream: _SupportsWriteAndFlush) -> None: ...
24
+ def writeln(self, arg: str | None = None) -> None: ...
24
25
  def __getattr__(self, attr: str) -> Any: ... # Any attribute from the stream type passed to __init__
25
26
  # These attributes are prevented by __getattr__
26
27
  stream: Never
@@ -39,10 +40,8 @@ class TextTestResult(unittest.result.TestResult, Generic[_StreamT]):
39
40
  showAll: bool # undocumented
40
41
  stream: _StreamT # undocumented
41
42
  if sys.version_info >= (3, 12):
42
- durations: unittest.result._DurationsType | None
43
- def __init__(
44
- self, stream: _StreamT, descriptions: bool, verbosity: int, *, durations: unittest.result._DurationsType | None = None
45
- ) -> None: ...
43
+ durations: int | None
44
+ def __init__(self, stream: _StreamT, descriptions: bool, verbosity: int, *, durations: int | None = None) -> None: ...
46
45
  else:
47
46
  def __init__(self, stream: _StreamT, descriptions: bool, verbosity: int) -> None: ...
48
47
 
@@ -56,11 +55,11 @@ class TextTestRunner:
56
55
  verbosity: int
57
56
  failfast: bool
58
57
  buffer: bool
59
- warnings: str | None
58
+ warnings: _ActionKind | None
60
59
  tb_locals: bool
61
60
 
62
61
  if sys.version_info >= (3, 12):
63
- durations: unittest.result._DurationsType | None
62
+ durations: int | None
64
63
  def __init__(
65
64
  self,
66
65
  stream: _SupportsWriteAndFlush | None = None,
@@ -69,10 +68,10 @@ class TextTestRunner:
69
68
  failfast: bool = False,
70
69
  buffer: bool = False,
71
70
  resultclass: _ResultClassType | None = None,
72
- warnings: str | None = None,
71
+ warnings: _ActionKind | None = None,
73
72
  *,
74
73
  tb_locals: bool = False,
75
- durations: unittest.result._DurationsType | None = None,
74
+ durations: int | None = None,
76
75
  ) -> None: ...
77
76
  else:
78
77
  def __init__(
@@ -1,6 +1,7 @@
1
1
  import unittest.case
2
2
  import unittest.result
3
3
  from collections.abc import Iterable, Iterator
4
+ from typing import ClassVar
4
5
  from typing_extensions import TypeAlias
5
6
 
6
7
  _TestType: TypeAlias = unittest.case.TestCase | TestSuite
@@ -17,6 +18,7 @@ class BaseTestSuite:
17
18
  def countTestCases(self) -> int: ...
18
19
  def __iter__(self) -> Iterator[_TestType]: ...
19
20
  def __eq__(self, other: object) -> bool: ...
21
+ __hash__: ClassVar[None] # type: ignore[assignment]
20
22
 
21
23
  class TestSuite(BaseTestSuite):
22
24
  def run(self, result: unittest.result.TestResult, debug: bool = False) -> unittest.result.TestResult: ...
@@ -3,7 +3,7 @@ from _typeshed import SupportsKeysAndGetItem
3
3
  from _weakref import getweakrefcount as getweakrefcount, getweakrefs as getweakrefs, proxy as proxy
4
4
  from _weakrefset import WeakSet as WeakSet
5
5
  from collections.abc import Callable, Iterable, Iterator, Mapping, MutableMapping
6
- from typing import Any, Generic, TypeVar, final, overload
6
+ from typing import Any, ClassVar, Generic, TypeVar, final, overload
7
7
  from typing_extensions import ParamSpec, Self
8
8
 
9
9
  if sys.version_info >= (3, 9):
@@ -49,6 +49,7 @@ class CallableProxyType(Generic[_CallableT]): # "weakcallableproxy"
49
49
  ...
50
50
  def __getattr__(self, attr: str) -> Any: ...
51
51
  __call__: _CallableT
52
+ __hash__: ClassVar[None] # type: ignore[assignment]
52
53
 
53
54
  @final
54
55
  class ProxyType(Generic[_T]): # "weakproxy"
@@ -56,6 +57,7 @@ class ProxyType(Generic[_T]): # "weakproxy"
56
57
  """Return self==value."""
57
58
  ...
58
59
  def __getattr__(self, attr: str) -> Any: ...
60
+ __hash__: ClassVar[None] # type: ignore[assignment]
59
61
 
60
62
  class ReferenceType(Generic[_T]): # "weakref"
61
63
  __callback__: Callable[[Self], Any]
@@ -129,6 +131,12 @@ class WeakValueDictionary(MutableMapping[_KT, _VT]):
129
131
  def pop(self, key: _KT, default: _VT) -> _VT: ...
130
132
  @overload
131
133
  def pop(self, key: _KT, default: _T) -> _VT | _T: ...
134
+ @overload
135
+ def update(self, other: SupportsKeysAndGetItem[_KT, _VT], /, **kwargs: _VT) -> None: ...
136
+ @overload
137
+ def update(self, other: Iterable[tuple[_KT, _VT]], /, **kwargs: _VT) -> None: ...
138
+ @overload
139
+ def update(self, other: None = None, /, **kwargs: _VT) -> None: ...
132
140
  if sys.version_info >= (3, 9):
133
141
  def __or__(self, other: Mapping[_T1, _T2]) -> WeakValueDictionary[_KT | _T1, _VT | _T2]: ...
134
142
  def __ror__(self, other: Mapping[_T1, _T2]) -> WeakValueDictionary[_KT | _T1, _VT | _T2]: ...
@@ -177,6 +185,12 @@ class WeakKeyDictionary(MutableMapping[_KT, _VT]):
177
185
  def pop(self, key: _KT, default: _VT) -> _VT: ...
178
186
  @overload
179
187
  def pop(self, key: _KT, default: _T) -> _VT | _T: ...
188
+ @overload
189
+ def update(self, dict: SupportsKeysAndGetItem[_KT, _VT], /, **kwargs: _VT) -> None: ...
190
+ @overload
191
+ def update(self, dict: Iterable[tuple[_KT, _VT]], /, **kwargs: _VT) -> None: ...
192
+ @overload
193
+ def update(self, dict: None = None, /, **kwargs: _VT) -> None: ...
180
194
  if sys.version_info >= (3, 9):
181
195
  def __or__(self, other: Mapping[_T1, _T2]) -> WeakKeyDictionary[_KT | _T1, _VT | _T2]: ...
182
196
  def __ror__(self, other: Mapping[_T1, _T2]) -> WeakKeyDictionary[_KT | _T1, _VT | _T2]: ...
@@ -186,11 +200,11 @@ class WeakKeyDictionary(MutableMapping[_KT, _VT]):
186
200
  @overload
187
201
  def __ior__(self, other: Iterable[tuple[_KT, _VT]]) -> Self: ...
188
202
 
189
- class finalize: # TODO: This is a good candidate for to be a `Generic[_P, _T]` class
190
- def __init__(self, obj: object, func: Callable[_P, Any], /, *args: _P.args, **kwargs: _P.kwargs) -> None: ...
203
+ class finalize(Generic[_P, _T]):
204
+ def __init__(self, obj: _T, func: Callable[_P, Any], /, *args: _P.args, **kwargs: _P.kwargs) -> None: ...
191
205
  def __call__(self, _: Any = None) -> Any | None: ...
192
- def detach(self) -> tuple[Any, Any, tuple[Any, ...], dict[str, Any]] | None: ...
193
- def peek(self) -> tuple[Any, Any, tuple[Any, ...], dict[str, Any]] | None: ...
206
+ def detach(self) -> tuple[_T, Callable[_P, Any], tuple[Any, ...], dict[str, Any]] | None: ...
207
+ def peek(self) -> tuple[_T, Callable[_P, Any], tuple[Any, ...], dict[str, Any]] | None: ...
194
208
  @property
195
209
  def alive(self) -> bool:
196
210
  """Whether finalizer is alive"""
@@ -1,7 +1,7 @@
1
1
  import sys
2
2
  import xml.dom
3
3
  from _typeshed import Incomplete, ReadableBuffer, SupportsRead, SupportsWrite
4
- from typing import Literal, NoReturn, TypeVar, overload
4
+ from typing import ClassVar, Literal, NoReturn, TypeVar, overload
5
5
  from typing_extensions import Self
6
6
  from xml.dom.minicompat import NodeList
7
7
  from xml.dom.xmlbuilder import DocumentLS, DOMImplementationLS
@@ -161,6 +161,7 @@ class NamedNodeMap:
161
161
  def keysNS(self): ...
162
162
  def values(self): ...
163
163
  def get(self, name: str, value: Incomplete | None = None): ...
164
+ __hash__: ClassVar[None] # type: ignore[assignment]
164
165
  def __len__(self) -> int: ...
165
166
  def __eq__(self, other: object) -> bool: ...
166
167
  def __ge__(self, other: NamedNodeMap) -> bool: ...
@@ -312,8 +313,8 @@ class ReadOnlySequentialNamedNodeMap:
312
313
  ...
313
314
 
314
315
  class Identified:
315
- publicId: Incomplete
316
- systemId: Incomplete
316
+ publicId: str | None
317
+ systemId: str | None
317
318
 
318
319
  class DocumentType(Identified, Childless, Node):
319
320
  nodeType: int
@@ -352,7 +353,7 @@ class Notation(Identified, Childless, Node):
352
353
  class DOMImplementation(DOMImplementationLS):
353
354
  def hasFeature(self, feature: str, version: str | None) -> bool: ...
354
355
  def createDocument(self, namespaceURI: str | None, qualifiedName: str | None, doctype: DocumentType | None) -> Document: ...
355
- def createDocumentType(self, qualifiedName: str | None, publicId: str, systemId: str) -> DocumentType: ...
356
+ def createDocumentType(self, qualifiedName: str | None, publicId: str | None, systemId: str | None) -> DocumentType: ...
356
357
  def getInterface(self, feature: str) -> Self | None: ...
357
358
 
358
359
  class ElementInfo: