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
@@ -158,33 +158,37 @@ if sys.version_info >= (3, 10):
158
158
  def field(
159
159
  *,
160
160
  default: _T,
161
+ default_factory: Literal[_MISSING_TYPE.MISSING] = ...,
161
162
  init: bool = True,
162
163
  repr: bool = True,
163
164
  hash: bool | None = None,
164
165
  compare: bool = True,
165
166
  metadata: Mapping[Any, Any] | None = None,
166
- kw_only: bool = ...,
167
+ kw_only: bool | Literal[_MISSING_TYPE.MISSING] = ...,
167
168
  ) -> _T: ...
168
169
  @overload
169
170
  def field(
170
171
  *,
172
+ default: Literal[_MISSING_TYPE.MISSING] = ...,
171
173
  default_factory: Callable[[], _T],
172
174
  init: bool = True,
173
175
  repr: bool = True,
174
176
  hash: bool | None = None,
175
177
  compare: bool = True,
176
178
  metadata: Mapping[Any, Any] | None = None,
177
- kw_only: bool = ...,
179
+ kw_only: bool | Literal[_MISSING_TYPE.MISSING] = ...,
178
180
  ) -> _T: ...
179
181
  @overload
180
182
  def field(
181
183
  *,
184
+ default: Literal[_MISSING_TYPE.MISSING] = ...,
185
+ default_factory: Literal[_MISSING_TYPE.MISSING] = ...,
182
186
  init: bool = True,
183
187
  repr: bool = True,
184
188
  hash: bool | None = None,
185
189
  compare: bool = True,
186
190
  metadata: Mapping[Any, Any] | None = None,
187
- kw_only: bool = ...,
191
+ kw_only: bool | Literal[_MISSING_TYPE.MISSING] = ...,
188
192
  ) -> Any: ...
189
193
 
190
194
  else:
@@ -192,6 +196,7 @@ else:
192
196
  def field(
193
197
  *,
194
198
  default: _T,
199
+ default_factory: Literal[_MISSING_TYPE.MISSING] = ...,
195
200
  init: bool = True,
196
201
  repr: bool = True,
197
202
  hash: bool | None = None,
@@ -201,6 +206,7 @@ else:
201
206
  @overload
202
207
  def field(
203
208
  *,
209
+ default: Literal[_MISSING_TYPE.MISSING] = ...,
204
210
  default_factory: Callable[[], _T],
205
211
  init: bool = True,
206
212
  repr: bool = True,
@@ -211,6 +217,8 @@ else:
211
217
  @overload
212
218
  def field(
213
219
  *,
220
+ default: Literal[_MISSING_TYPE.MISSING] = ...,
221
+ default_factory: Literal[_MISSING_TYPE.MISSING] = ...,
214
222
  init: bool = True,
215
223
  repr: bool = True,
216
224
  hash: bool | None = None,
@@ -37,7 +37,7 @@ class timezone(tzinfo):
37
37
  utc: ClassVar[timezone]
38
38
  min: ClassVar[timezone]
39
39
  max: ClassVar[timezone]
40
- def __init__(self, offset: timedelta, name: str = ...) -> None: ...
40
+ def __new__(cls, offset: timedelta, name: str = ...) -> Self: ...
41
41
  def tzname(self, dt: datetime | None, /) -> str:
42
42
  """If name is specified when timezone is created, returns the name. Otherwise returns offset as 'UTC(+|-)HH:MM'."""
43
43
  ...
@@ -598,7 +598,6 @@ class Context:
598
598
  clamp: int | None = ...,
599
599
  flags: None | dict[_TrapType, bool] | Container[_TrapType] = ...,
600
600
  traps: None | dict[_TrapType, bool] | Container[_TrapType] = ...,
601
- _ignored_flags: list[_TrapType] | None = ...,
602
601
  ) -> None: ...
603
602
  def __reduce__(self) -> tuple[type[Self], tuple[Any, ...]]: ...
604
603
  def clear_flags(self) -> None:
@@ -1,6 +1,6 @@
1
1
  from collections.abc import Callable, Iterator
2
2
  from email.message import Message
3
- from typing import Final, overload
3
+ from typing import ClassVar, Final, overload
4
4
 
5
5
  __all__ = ["Charset", "add_alias", "add_charset", "add_codec"]
6
6
 
@@ -24,6 +24,7 @@ class Charset:
24
24
  def body_encode(self, string: None) -> None: ...
25
25
  @overload
26
26
  def body_encode(self, string: str | bytes) -> str: ...
27
+ __hash__: ClassVar[None] # type: ignore[assignment]
27
28
  def __eq__(self, other: object) -> bool: ...
28
29
  def __ne__(self, value: object, /) -> bool:
29
30
  """Return self!=value."""
@@ -1,6 +1,6 @@
1
1
  from collections.abc import Iterable
2
2
  from email.charset import Charset
3
- from typing import Any
3
+ from typing import Any, ClassVar
4
4
 
5
5
  __all__ = ["Header", "decode_header", "make_header"]
6
6
 
@@ -16,6 +16,7 @@ class Header:
16
16
  ) -> None: ...
17
17
  def append(self, s: bytes | bytearray | str, charset: Charset | str | None = None, errors: str = "strict") -> None: ...
18
18
  def encode(self, splitchars: str = ";, \t", maxlinelen: int | None = None, linesep: str = "\n") -> str: ...
19
+ __hash__: ClassVar[None] # type: ignore[assignment]
19
20
  def __eq__(self, other: object) -> bool: ...
20
21
  def __ne__(self, value: object, /) -> bool:
21
22
  """Return self!=value."""
@@ -172,6 +172,7 @@ class Address:
172
172
  def __init__(
173
173
  self, display_name: str = "", username: str | None = "", domain: str | None = "", addr_spec: str | None = None
174
174
  ) -> None: ...
175
+ __hash__: ClassVar[None] # type: ignore[assignment]
175
176
  def __eq__(self, other: object) -> bool: ...
176
177
 
177
178
  class Group:
@@ -180,4 +181,5 @@ class Group:
180
181
  @property
181
182
  def addresses(self) -> tuple[Address, ...]: ...
182
183
  def __init__(self, display_name: str | None = None, addresses: Iterable[Address] | None = None) -> None: ...
184
+ __hash__: ClassVar[None] # type: ignore[assignment]
183
185
  def __eq__(self, other: object) -> bool: ...
@@ -27,11 +27,11 @@ class Fraction(Rational):
27
27
  @overload
28
28
  def __new__(cls, numerator: int | Rational = 0, denominator: int | Rational | None = None) -> Self: ...
29
29
  @overload
30
- def __new__(cls, value: float | Decimal | str, /) -> Self: ...
30
+ def __new__(cls, numerator: float | Decimal | str) -> Self: ...
31
31
 
32
32
  if sys.version_info >= (3, 14):
33
33
  @overload
34
- def __new__(cls, value: _ConvertibleToIntegerRatio) -> Self: ...
34
+ def __new__(cls, numerator: _ConvertibleToIntegerRatio) -> Self: ...
35
35
 
36
36
  @classmethod
37
37
  def from_float(cls, f: float) -> Self: ...
@@ -138,7 +138,7 @@ class Fraction(Rational):
138
138
  def __round__(self, ndigits: None = None) -> int: ...
139
139
  @overload
140
140
  def __round__(self, ndigits: int) -> Fraction: ...
141
- def __hash__(self) -> int: ...
141
+ def __hash__(self) -> int: ... # type: ignore[override]
142
142
  def __eq__(a, b: object) -> bool: ...
143
143
  def __lt__(a, b: _ComparableNum) -> bool: ...
144
144
  def __gt__(a, b: _ComparableNum) -> bool: ...
@@ -2,8 +2,8 @@ import _compression
2
2
  import sys
3
3
  import zlib
4
4
  from _typeshed import ReadableBuffer, SizedBuffer, StrOrBytesPath
5
- from io import FileIO
6
- from typing import Final, Literal, Protocol, TextIO, overload
5
+ from io import FileIO, TextIOWrapper
6
+ from typing import Final, Literal, Protocol, overload
7
7
  from typing_extensions import TypeAlias
8
8
 
9
9
  __all__ = ["BadGzipFile", "GzipFile", "open", "compress", "decompress"]
@@ -57,13 +57,13 @@ def open(
57
57
  ) -> GzipFile: ...
58
58
  @overload
59
59
  def open(
60
- filename: StrOrBytesPath,
60
+ filename: StrOrBytesPath | _ReadableFileobj | _WritableFileobj,
61
61
  mode: _OpenTextMode,
62
62
  compresslevel: int = 9,
63
63
  encoding: str | None = None,
64
64
  errors: str | None = None,
65
65
  newline: str | None = None,
66
- ) -> TextIO: ...
66
+ ) -> TextIOWrapper: ...
67
67
  @overload
68
68
  def open(
69
69
  filename: StrOrBytesPath | _ReadableFileobj | _WritableFileobj,
@@ -72,7 +72,7 @@ def open(
72
72
  encoding: str | None = None,
73
73
  errors: str | None = None,
74
74
  newline: str | None = None,
75
- ) -> GzipFile | TextIO: ...
75
+ ) -> GzipFile | TextIOWrapper: ...
76
76
 
77
77
  class _PaddedFile:
78
78
  file: _ReadableFileobj
@@ -14,9 +14,14 @@ class HTTPStatus(IntEnum):
14
14
  def phrase(self) -> str: ...
15
15
  @property
16
16
  def description(self) -> str: ...
17
+
18
+ # Keep these synced with the global constants in http/client.pyi.
17
19
  CONTINUE = 100
18
20
  SWITCHING_PROTOCOLS = 101
19
21
  PROCESSING = 102
22
+ if sys.version_info >= (3, 9):
23
+ EARLY_HINTS = 103
24
+
20
25
  OK = 200
21
26
  CREATED = 201
22
27
  ACCEPTED = 202
@@ -27,6 +32,7 @@ class HTTPStatus(IntEnum):
27
32
  MULTI_STATUS = 207
28
33
  ALREADY_REPORTED = 208
29
34
  IM_USED = 226
35
+
30
36
  MULTIPLE_CHOICES = 300
31
37
  MOVED_PERMANENTLY = 301
32
38
  FOUND = 302
@@ -35,6 +41,7 @@ class HTTPStatus(IntEnum):
35
41
  USE_PROXY = 305
36
42
  TEMPORARY_REDIRECT = 307
37
43
  PERMANENT_REDIRECT = 308
44
+
38
45
  BAD_REQUEST = 400
39
46
  UNAUTHORIZED = 401
40
47
  PAYMENT_REQUIRED = 402
@@ -59,15 +66,22 @@ class HTTPStatus(IntEnum):
59
66
  RANGE_NOT_SATISFIABLE = 416
60
67
  REQUESTED_RANGE_NOT_SATISFIABLE = 416
61
68
  EXPECTATION_FAILED = 417
69
+ if sys.version_info >= (3, 9):
70
+ IM_A_TEAPOT = 418
71
+ MISDIRECTED_REQUEST = 421
62
72
  if sys.version_info >= (3, 13):
63
73
  UNPROCESSABLE_CONTENT = 422
64
74
  UNPROCESSABLE_ENTITY = 422
65
75
  LOCKED = 423
66
76
  FAILED_DEPENDENCY = 424
77
+ if sys.version_info >= (3, 9):
78
+ TOO_EARLY = 425
67
79
  UPGRADE_REQUIRED = 426
68
80
  PRECONDITION_REQUIRED = 428
69
81
  TOO_MANY_REQUESTS = 429
70
82
  REQUEST_HEADER_FIELDS_TOO_LARGE = 431
83
+ UNAVAILABLE_FOR_LEGAL_REASONS = 451
84
+
71
85
  INTERNAL_SERVER_ERROR = 500
72
86
  NOT_IMPLEMENTED = 501
73
87
  BAD_GATEWAY = 502
@@ -79,12 +93,7 @@ class HTTPStatus(IntEnum):
79
93
  LOOP_DETECTED = 508
80
94
  NOT_EXTENDED = 510
81
95
  NETWORK_AUTHENTICATION_REQUIRED = 511
82
- MISDIRECTED_REQUEST = 421
83
- UNAVAILABLE_FOR_LEGAL_REASONS = 451
84
- if sys.version_info >= (3, 9):
85
- EARLY_HINTS = 103
86
- IM_A_TEAPOT = 418
87
- TOO_EARLY = 425
96
+
88
97
  if sys.version_info >= (3, 12):
89
98
  @property
90
99
  def is_informational(self) -> bool: ...
@@ -6,7 +6,7 @@ import types
6
6
  from _typeshed import MaybeNone, ReadableBuffer, SupportsRead, SupportsReadline, WriteableBuffer
7
7
  from collections.abc import Callable, Iterable, Iterator, Mapping
8
8
  from socket import socket
9
- from typing import BinaryIO, TypeVar, overload
9
+ from typing import BinaryIO, Literal, TypeVar, overload
10
10
  from typing_extensions import Self, TypeAlias
11
11
 
12
12
  __all__ = [
@@ -39,63 +39,85 @@ _HeaderValue: TypeAlias = ReadableBuffer | str | int
39
39
  HTTP_PORT: int
40
40
  HTTPS_PORT: int
41
41
 
42
- CONTINUE: int
43
- SWITCHING_PROTOCOLS: int
44
- PROCESSING: int
45
-
46
- OK: int
47
- CREATED: int
48
- ACCEPTED: int
49
- NON_AUTHORITATIVE_INFORMATION: int
50
- NO_CONTENT: int
51
- RESET_CONTENT: int
52
- PARTIAL_CONTENT: int
53
- MULTI_STATUS: int
54
- IM_USED: int
55
-
56
- MULTIPLE_CHOICES: int
57
- MOVED_PERMANENTLY: int
58
- FOUND: int
59
- SEE_OTHER: int
60
- NOT_MODIFIED: int
61
- USE_PROXY: int
62
- TEMPORARY_REDIRECT: int
63
-
64
- BAD_REQUEST: int
65
- UNAUTHORIZED: int
66
- PAYMENT_REQUIRED: int
67
- FORBIDDEN: int
68
- NOT_FOUND: int
69
- METHOD_NOT_ALLOWED: int
70
- NOT_ACCEPTABLE: int
71
- PROXY_AUTHENTICATION_REQUIRED: int
72
- REQUEST_TIMEOUT: int
73
- CONFLICT: int
74
- GONE: int
75
- LENGTH_REQUIRED: int
76
- PRECONDITION_FAILED: int
77
- REQUEST_ENTITY_TOO_LARGE: int
78
- REQUEST_URI_TOO_LONG: int
79
- UNSUPPORTED_MEDIA_TYPE: int
80
- REQUESTED_RANGE_NOT_SATISFIABLE: int
81
- EXPECTATION_FAILED: int
82
- UNPROCESSABLE_ENTITY: int
83
- LOCKED: int
84
- FAILED_DEPENDENCY: int
85
- UPGRADE_REQUIRED: int
86
- PRECONDITION_REQUIRED: int
87
- TOO_MANY_REQUESTS: int
88
- REQUEST_HEADER_FIELDS_TOO_LARGE: int
89
-
90
- INTERNAL_SERVER_ERROR: int
91
- NOT_IMPLEMENTED: int
92
- BAD_GATEWAY: int
93
- SERVICE_UNAVAILABLE: int
94
- GATEWAY_TIMEOUT: int
95
- HTTP_VERSION_NOT_SUPPORTED: int
96
- INSUFFICIENT_STORAGE: int
97
- NOT_EXTENDED: int
98
- NETWORK_AUTHENTICATION_REQUIRED: int
42
+ # Keep these global constants in sync with http.HTTPStatus (http/__init__.pyi).
43
+ # They are present for backward compatibility reasons.
44
+ CONTINUE: Literal[100]
45
+ SWITCHING_PROTOCOLS: Literal[101]
46
+ PROCESSING: Literal[102]
47
+ if sys.version_info >= (3, 9):
48
+ EARLY_HINTS: Literal[103]
49
+
50
+ OK: Literal[200]
51
+ CREATED: Literal[201]
52
+ ACCEPTED: Literal[202]
53
+ NON_AUTHORITATIVE_INFORMATION: Literal[203]
54
+ NO_CONTENT: Literal[204]
55
+ RESET_CONTENT: Literal[205]
56
+ PARTIAL_CONTENT: Literal[206]
57
+ MULTI_STATUS: Literal[207]
58
+ ALREADY_REPORTED: Literal[208]
59
+ IM_USED: Literal[226]
60
+
61
+ MULTIPLE_CHOICES: Literal[300]
62
+ MOVED_PERMANENTLY: Literal[301]
63
+ FOUND: Literal[302]
64
+ SEE_OTHER: Literal[303]
65
+ NOT_MODIFIED: Literal[304]
66
+ USE_PROXY: Literal[305]
67
+ TEMPORARY_REDIRECT: Literal[307]
68
+ PERMANENT_REDIRECT: Literal[308]
69
+
70
+ BAD_REQUEST: Literal[400]
71
+ UNAUTHORIZED: Literal[401]
72
+ PAYMENT_REQUIRED: Literal[402]
73
+ FORBIDDEN: Literal[403]
74
+ NOT_FOUND: Literal[404]
75
+ METHOD_NOT_ALLOWED: Literal[405]
76
+ NOT_ACCEPTABLE: Literal[406]
77
+ PROXY_AUTHENTICATION_REQUIRED: Literal[407]
78
+ REQUEST_TIMEOUT: Literal[408]
79
+ CONFLICT: Literal[409]
80
+ GONE: Literal[410]
81
+ LENGTH_REQUIRED: Literal[411]
82
+ PRECONDITION_FAILED: Literal[412]
83
+ if sys.version_info >= (3, 13):
84
+ CONTENT_TOO_LARGE: Literal[413]
85
+ REQUEST_ENTITY_TOO_LARGE: Literal[413]
86
+ if sys.version_info >= (3, 13):
87
+ URI_TOO_LONG: Literal[414]
88
+ REQUEST_URI_TOO_LONG: Literal[414]
89
+ UNSUPPORTED_MEDIA_TYPE: Literal[415]
90
+ if sys.version_info >= (3, 13):
91
+ RANGE_NOT_SATISFIABLE: Literal[416]
92
+ REQUESTED_RANGE_NOT_SATISFIABLE: Literal[416]
93
+ EXPECTATION_FAILED: Literal[417]
94
+ if sys.version_info >= (3, 9):
95
+ IM_A_TEAPOT: Literal[418]
96
+ MISDIRECTED_REQUEST: Literal[421]
97
+ if sys.version_info >= (3, 13):
98
+ UNPROCESSABLE_CONTENT: Literal[422]
99
+ UNPROCESSABLE_ENTITY: Literal[422]
100
+ LOCKED: Literal[423]
101
+ FAILED_DEPENDENCY: Literal[424]
102
+ if sys.version_info >= (3, 9):
103
+ TOO_EARLY: Literal[425]
104
+ UPGRADE_REQUIRED: Literal[426]
105
+ PRECONDITION_REQUIRED: Literal[428]
106
+ TOO_MANY_REQUESTS: Literal[429]
107
+ REQUEST_HEADER_FIELDS_TOO_LARGE: Literal[431]
108
+ UNAVAILABLE_FOR_LEGAL_REASONS: Literal[451]
109
+
110
+ INTERNAL_SERVER_ERROR: Literal[500]
111
+ NOT_IMPLEMENTED: Literal[501]
112
+ BAD_GATEWAY: Literal[502]
113
+ SERVICE_UNAVAILABLE: Literal[503]
114
+ GATEWAY_TIMEOUT: Literal[504]
115
+ HTTP_VERSION_NOT_SUPPORTED: Literal[505]
116
+ VARIANT_ALSO_NEGOTIATES: Literal[506]
117
+ INSUFFICIENT_STORAGE: Literal[507]
118
+ LOOP_DETECTED: Literal[508]
119
+ NOT_EXTENDED: Literal[510]
120
+ NETWORK_AUTHENTICATION_REQUIRED: Literal[511]
99
121
 
100
122
  responses: dict[int, str]
101
123
 
@@ -416,16 +416,16 @@ class BoundArguments:
416
416
  def __init__(self, signature: Signature, arguments: OrderedDict[str, Any]) -> None: ...
417
417
  def apply_defaults(self) -> None: ...
418
418
  def __eq__(self, other: object) -> bool: ...
419
+ __hash__: ClassVar[None] # type: ignore[assignment]
419
420
 
420
421
  #
421
422
  # Classes and functions
422
423
  #
423
424
 
424
- # TODO: The actual return type should be list[_ClassTreeItem] but mypy doesn't
425
- # seem to be supporting this at the moment:
426
- # _ClassTreeItem = list[_ClassTreeItem] | Tuple[type, Tuple[type, ...]]
427
- def getclasstree(classes: list[type], unique: bool = False) -> list[Any]: ...
428
- def walktree(classes: list[type], children: Mapping[type[Any], list[type]], parent: type[Any] | None) -> list[Any]: ...
425
+ _ClassTreeItem: TypeAlias = list[tuple[type, ...]] | list[_ClassTreeItem]
426
+
427
+ def getclasstree(classes: list[type], unique: bool = False) -> _ClassTreeItem: ...
428
+ def walktree(classes: list[type], children: Mapping[type[Any], list[type]], parent: type[Any] | None) -> _ClassTreeItem: ...
429
429
 
430
430
  class Arguments(NamedTuple):
431
431
  args: list[str]
@@ -44,7 +44,6 @@ class _IPAddressBase:
44
44
  def version(self) -> int: ...
45
45
 
46
46
  class _BaseAddress(_IPAddressBase):
47
- def __init__(self, address: object) -> None: ...
48
47
  def __add__(self, other: int) -> Self: ...
49
48
  def __hash__(self) -> int: ...
50
49
  def __int__(self) -> int: ...
@@ -66,7 +65,6 @@ class _BaseAddress(_IPAddressBase):
66
65
  class _BaseNetwork(_IPAddressBase, Generic[_A]):
67
66
  network_address: _A
68
67
  netmask: _A
69
- def __init__(self, address: object, strict: bool = ...) -> None: ...
70
68
  def __contains__(self, other: Any) -> bool: ...
71
69
  def __getitem__(self, n: int) -> _A: ...
72
70
  def __iter__(self) -> Iterator[_A]: ...
@@ -183,6 +181,7 @@ class _BaseV4:
183
181
  def max_prefixlen(self) -> Literal[32]: ...
184
182
 
185
183
  class IPv4Address(_BaseV4, _BaseAddress):
184
+ def __init__(self, address: object) -> None: ...
186
185
  @property
187
186
  def is_global(self) -> bool:
188
187
  """
@@ -281,7 +280,8 @@ class IPv4Address(_BaseV4, _BaseAddress):
281
280
  """
282
281
  ...
283
282
 
284
- class IPv4Network(_BaseV4, _BaseNetwork[IPv4Address]): ...
283
+ class IPv4Network(_BaseV4, _BaseNetwork[IPv4Address]):
284
+ def __init__(self, address: object, strict: bool = ...) -> None: ...
285
285
 
286
286
  class IPv4Interface(IPv4Address):
287
287
  netmask: IPv4Address
@@ -306,6 +306,7 @@ class _BaseV6:
306
306
  def max_prefixlen(self) -> Literal[128]: ...
307
307
 
308
308
  class IPv6Address(_BaseV6, _BaseAddress):
309
+ def __init__(self, address: object) -> None: ...
309
310
  @property
310
311
  def is_global(self) -> bool:
311
312
  """
@@ -455,6 +456,7 @@ class IPv6Address(_BaseV6, _BaseAddress):
455
456
  def __eq__(self, other: object) -> bool: ...
456
457
 
457
458
  class IPv6Network(_BaseV6, _BaseNetwork[IPv6Address]):
459
+ def __init__(self, address: object, strict: bool = ...) -> None: ...
458
460
  @property
459
461
  def is_site_local(self) -> bool:
460
462
  """
@@ -87,7 +87,7 @@ class count(Generic[_N]):
87
87
 
88
88
  class cycle(Generic[_T]):
89
89
  """Return elements from the iterable until it is exhausted. Then repeat the sequence indefinitely."""
90
- def __init__(self, iterable: Iterable[_T], /) -> None: ...
90
+ def __new__(cls, iterable: Iterable[_T], /) -> Self: ...
91
91
  def __next__(self) -> _T:
92
92
  """Implement next(self)."""
93
93
  ...
@@ -102,9 +102,9 @@ class repeat(Generic[_T]):
102
102
  endlessly.
103
103
  """
104
104
  @overload
105
- def __init__(self, object: _T) -> None: ...
105
+ def __new__(cls, object: _T) -> Self: ...
106
106
  @overload
107
- def __init__(self, object: _T, times: int) -> None: ...
107
+ def __new__(cls, object: _T, times: int) -> Self: ...
108
108
  def __next__(self) -> _T:
109
109
  """Implement next(self)."""
110
110
  ...
@@ -118,9 +118,9 @@ class repeat(Generic[_T]):
118
118
  class accumulate(Generic[_T]):
119
119
  """Return series of accumulated sums (or other binary function results)."""
120
120
  @overload
121
- def __init__(self, iterable: Iterable[_T], func: None = None, *, initial: _T | None = ...) -> None: ...
121
+ def __new__(cls, iterable: Iterable[_T], func: None = None, *, initial: _T | None = ...) -> Self: ...
122
122
  @overload
123
- def __init__(self, iterable: Iterable[_S], func: Callable[[_T, _S], _T], *, initial: _T | None = ...) -> None: ...
123
+ def __new__(cls, iterable: Iterable[_S], func: Callable[[_T, _S], _T], *, initial: _T | None = ...) -> Self: ...
124
124
  def __iter__(self) -> Self:
125
125
  """Implement iter(self)."""
126
126
  ...
@@ -134,7 +134,7 @@ class chain(Generic[_T]):
134
134
  first iterable until it is exhausted, then elements from the next
135
135
  iterable, until all of the iterables are exhausted.
136
136
  """
137
- def __init__(self, *iterables: Iterable[_T]) -> None: ...
137
+ def __new__(cls, *iterables: Iterable[_T]) -> Self: ...
138
138
  def __next__(self) -> _T:
139
139
  """Implement next(self)."""
140
140
  ...
@@ -158,7 +158,7 @@ class compress(Generic[_T]):
158
158
  Forms a shorter iterator from selected data elements using the selectors to
159
159
  choose the data elements.
160
160
  """
161
- def __init__(self, data: Iterable[_T], selectors: Iterable[Any]) -> None: ...
161
+ def __new__(cls, data: Iterable[_T], selectors: Iterable[Any]) -> Self: ...
162
162
  def __iter__(self) -> Self:
163
163
  """Implement iter(self)."""
164
164
  ...
@@ -172,7 +172,7 @@ class dropwhile(Generic[_T]):
172
172
 
173
173
  Afterwards, return every element until the iterable is exhausted.
174
174
  """
175
- def __init__(self, predicate: _Predicate[_T], iterable: Iterable[_T], /) -> None: ...
175
+ def __new__(cls, predicate: _Predicate[_T], iterable: Iterable[_T], /) -> Self: ...
176
176
  def __iter__(self) -> Self:
177
177
  """Implement iter(self)."""
178
178
  ...
@@ -186,7 +186,7 @@ class filterfalse(Generic[_T]):
186
186
 
187
187
  If function is None, return the items that are false.
188
188
  """
189
- def __init__(self, predicate: _Predicate[_T] | None, iterable: Iterable[_T], /) -> None: ...
189
+ def __new__(cls, function: _Predicate[_T] | None, iterable: Iterable[_T], /) -> Self: ...
190
190
  def __iter__(self) -> Self:
191
191
  """Implement iter(self)."""
192
192
  ...
@@ -229,9 +229,9 @@ class islice(Generic[_T]):
229
229
  but returns an iterator.
230
230
  """
231
231
  @overload
232
- def __init__(self, iterable: Iterable[_T], stop: int | None, /) -> None: ...
232
+ def __new__(cls, iterable: Iterable[_T], stop: int | None, /) -> Self: ...
233
233
  @overload
234
- def __init__(self, iterable: Iterable[_T], start: int | None, stop: int | None, step: int | None = ..., /) -> None: ...
234
+ def __new__(cls, iterable: Iterable[_T], start: int | None, stop: int | None, step: int | None = ..., /) -> Self: ...
235
235
  def __iter__(self) -> Self:
236
236
  """Implement iter(self)."""
237
237
  ...
@@ -251,7 +251,7 @@ class starmap(Generic[_T_co]):
251
251
 
252
252
  class takewhile(Generic[_T]):
253
253
  """Return successive entries from an iterable as long as the predicate evaluates to true for each entry."""
254
- def __init__(self, predicate: _Predicate[_T], iterable: Iterable[_T], /) -> None: ...
254
+ def __new__(cls, predicate: _Predicate[_T], iterable: Iterable[_T], /) -> Self: ...
255
255
  def __iter__(self) -> Self:
256
256
  """Implement iter(self)."""
257
257
  ...
@@ -1,3 +1,7 @@
1
1
  from _json import make_scanner as make_scanner
2
+ from re import Pattern
3
+ from typing import Final
2
4
 
3
5
  __all__ = ["make_scanner"]
6
+
7
+ NUMBER_RE: Final[Pattern[str]] # undocumented
@@ -1,6 +1,6 @@
1
1
  from _typeshed import Incomplete, StrPath
2
2
  from collections.abc import Iterable, Iterator
3
- from typing import IO, NoReturn, overload
3
+ from typing import IO, ClassVar, NoReturn, overload
4
4
 
5
5
  from . import grammar
6
6
  from .tokenize import _TokenInfo
@@ -46,5 +46,6 @@ class DFAState:
46
46
  def addarc(self, next: DFAState, label: str) -> None: ...
47
47
  def unifystate(self, old: DFAState, new: DFAState) -> None: ...
48
48
  def __eq__(self, other: DFAState) -> bool: ... # type: ignore[override]
49
+ __hash__: ClassVar[None] # type: ignore[assignment]
49
50
 
50
51
  def generate_grammar(filename: StrPath = "Grammar.txt") -> PgenGrammar: ...
@@ -1,7 +1,7 @@
1
1
  from _typeshed import Incomplete, SupportsGetItem, SupportsLenAndGetItem, Unused
2
2
  from abc import abstractmethod
3
3
  from collections.abc import Iterable, Iterator, MutableSequence
4
- from typing import Final
4
+ from typing import ClassVar, Final
5
5
  from typing_extensions import Self, TypeAlias
6
6
 
7
7
  from .fixer_base import BaseFix
@@ -24,6 +24,7 @@ class Base:
24
24
  was_changed: bool
25
25
  was_checked: bool
26
26
  def __eq__(self, other: object) -> bool: ...
27
+ __hash__: ClassVar[None] # type: ignore[assignment]
27
28
  @abstractmethod
28
29
  def _eq(self, other: Base) -> bool: ...
29
30
  @abstractmethod
@@ -58,8 +58,8 @@ class mmap:
58
58
  def __init__(self, fileno: int, length: int, tagname: str | None = ..., access: int = ..., offset: int = ...) -> None: ...
59
59
  else:
60
60
  if sys.version_info >= (3, 13):
61
- def __init__(
62
- self,
61
+ def __new__(
62
+ cls,
63
63
  fileno: int,
64
64
  length: int,
65
65
  flags: int = ...,
@@ -68,11 +68,11 @@ class mmap:
68
68
  offset: int = ...,
69
69
  *,
70
70
  trackfd: bool = True,
71
- ) -> None: ...
71
+ ) -> Self: ...
72
72
  else:
73
- def __init__(
74
- self, fileno: int, length: int, flags: int = ..., prot: int = ..., access: int = ..., offset: int = ...
75
- ) -> None: ...
73
+ def __new__(
74
+ cls, fileno: int, length: int, flags: int = ..., prot: int = ..., access: int = ..., offset: int = ...
75
+ ) -> Self: ...
76
76
 
77
77
  def close(self) -> None: ...
78
78
  def flush(self, offset: int = ..., size: int = ...) -> None: ...