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
@@ -13,6 +13,7 @@ from socket import AddressFamily, SocketKind, _Address, _RetAddress, socket
13
13
  from typing import IO, Any, Literal, TypeVar, overload
14
14
  from typing_extensions import TypeAlias, TypeVarTuple, Unpack
15
15
 
16
+ # Keep asyncio.__all__ updated with any changes to __all__ here
16
17
  if sys.version_info >= (3, 9):
17
18
  __all__ = ("BaseEventLoop", "Server")
18
19
  else:
@@ -452,6 +453,7 @@ class BaseEventLoop(AbstractEventLoop):
452
453
  bufsize: Literal[0] = 0,
453
454
  encoding: None = None,
454
455
  errors: None = None,
456
+ text: Literal[False] | None = None,
455
457
  **kwargs: Any,
456
458
  ) -> tuple[SubprocessTransport, _ProtocolT]: ...
457
459
  def add_reader(self, fd: FileDescriptorLike, callback: Callable[[Unpack[_Ts]], Any], *args: Unpack[_Ts]) -> None: ...
@@ -3,6 +3,7 @@ from collections.abc import Awaitable, Callable, Coroutine
3
3
  from typing import Any, TypeVar, overload
4
4
  from typing_extensions import ParamSpec, TypeGuard, TypeIs
5
5
 
6
+ # Keep asyncio.__all__ updated with any changes to __all__ here
6
7
  if sys.version_info >= (3, 11):
7
8
  __all__ = ("iscoroutinefunction", "iscoroutine")
8
9
  else:
@@ -22,6 +22,7 @@ from .tasks import Task
22
22
  from .transports import BaseTransport, DatagramTransport, ReadTransport, SubprocessTransport, Transport, WriteTransport
23
23
  from .unix_events import AbstractChildWatcher
24
24
 
25
+ # Keep asyncio.__all__ updated with any changes to __all__ here
25
26
  if sys.version_info >= (3, 14):
26
27
  __all__ = (
27
28
  "AbstractEventLoopPolicy",
@@ -1,5 +1,6 @@
1
1
  import sys
2
2
 
3
+ # Keep asyncio.__all__ updated with any changes to __all__ here
3
4
  if sys.version_info >= (3, 11):
4
5
  __all__ = (
5
6
  "BrokenBarrierError",
@@ -5,6 +5,7 @@ from typing_extensions import TypeIs
5
5
 
6
6
  from .events import AbstractEventLoop
7
7
 
8
+ # Keep asyncio.__all__ updated with any changes to __all__ here
8
9
  __all__ = ("Future", "wrap_future", "isfuture")
9
10
 
10
11
  _T = TypeVar("_T")
@@ -15,6 +15,7 @@ if sys.version_info >= (3, 10):
15
15
  else:
16
16
  _LoopBoundMixin = object
17
17
 
18
+ # Keep asyncio.__all__ updated with any changes to __all__ here
18
19
  if sys.version_info >= (3, 11):
19
20
  __all__ = ("Lock", "Event", "Condition", "Semaphore", "BoundedSemaphore", "Barrier")
20
21
  else:
@@ -62,3 +62,4 @@ class _ProactorSocketTransport(_ProactorReadPipeTransport, _ProactorBaseWritePip
62
62
 
63
63
  class BaseProactorEventLoop(base_events.BaseEventLoop):
64
64
  def __init__(self, proactor: Any) -> None: ...
65
+ async def sock_recv(self, sock: socket, n: int) -> bytes: ...
@@ -2,6 +2,7 @@ from _typeshed import ReadableBuffer
2
2
  from asyncio import transports
3
3
  from typing import Any
4
4
 
5
+ # Keep asyncio.__all__ updated with any changes to __all__ here
5
6
  __all__ = ("BaseProtocol", "Protocol", "DatagramProtocol", "SubprocessProtocol", "BufferedProtocol")
6
7
 
7
8
  class BaseProtocol:
@@ -13,6 +13,7 @@ else:
13
13
  class QueueEmpty(Exception): ...
14
14
  class QueueFull(Exception): ...
15
15
 
16
+ # Keep asyncio.__all__ updated with any changes to __all__ here
16
17
  if sys.version_info >= (3, 13):
17
18
  __all__ = ("Queue", "PriorityQueue", "LifoQueue", "QueueFull", "QueueEmpty", "QueueShutDown")
18
19
 
@@ -7,6 +7,7 @@ from typing_extensions import Self
7
7
 
8
8
  from .events import AbstractEventLoop
9
9
 
10
+ # Keep asyncio.__all__ updated with any changes to __all__ here
10
11
  if sys.version_info >= (3, 11):
11
12
  __all__ = ("Runner", "run")
12
13
  else:
@@ -1,4 +1,5 @@
1
1
  import selectors
2
+ from socket import socket
2
3
 
3
4
  from . import base_events
4
5
 
@@ -6,3 +7,4 @@ __all__ = ("BaseSelectorEventLoop",)
6
7
 
7
8
  class BaseSelectorEventLoop(base_events.BaseEventLoop):
8
9
  def __init__(self, selector: selectors.BaseSelector | None = None) -> None: ...
10
+ async def sock_recv(self, sock: socket, n: int) -> bytes: ...
@@ -9,6 +9,7 @@ from typing_extensions import Self, TypeAlias
9
9
  from . import events, protocols, transports
10
10
  from .base_events import Server
11
11
 
12
+ # Keep asyncio.__all__ updated with any changes to __all__ here
12
13
  if sys.platform == "win32":
13
14
  __all__ = ("StreamReader", "StreamWriter", "StreamReaderProtocol", "open_connection", "start_server")
14
15
  else:
@@ -5,6 +5,7 @@ from asyncio import events, protocols, streams, transports
5
5
  from collections.abc import Callable, Collection
6
6
  from typing import IO, Any, Literal
7
7
 
8
+ # Keep asyncio.__all__ updated with any changes to __all__ here
8
9
  __all__ = ("create_subprocess_exec", "create_subprocess_shell")
9
10
 
10
11
  PIPE: int
@@ -8,6 +8,7 @@ from . import _CoroutineLike
8
8
  from .events import AbstractEventLoop
9
9
  from .tasks import Task
10
10
 
11
+ # Keep asyncio.__all__ updated with any changes to __all__ here
11
12
  if sys.version_info >= (3, 12):
12
13
  __all__ = ("TaskGroup",)
13
14
  else:
@@ -18,6 +18,7 @@ from .futures import Future
18
18
  if sys.version_info >= (3, 11):
19
19
  from contextvars import Context
20
20
 
21
+ # Keep asyncio.__all__ updated with any changes to __all__ here
21
22
  if sys.version_info >= (3, 12):
22
23
  __all__ = (
23
24
  "Task",
@@ -2,6 +2,7 @@ from collections.abc import Callable
2
2
  from typing import TypeVar
3
3
  from typing_extensions import ParamSpec
4
4
 
5
+ # Keep asyncio.__all__ updated with any changes to __all__ here
5
6
  __all__ = ("to_thread",)
6
7
  _P = ParamSpec("_P")
7
8
  _R = TypeVar("_R")
@@ -2,6 +2,7 @@ from types import TracebackType
2
2
  from typing import final
3
3
  from typing_extensions import Self
4
4
 
5
+ # Keep asyncio.__all__ updated with any changes to __all__ here
5
6
  __all__ = ("Timeout", "timeout", "timeout_at")
6
7
 
7
8
  @final
@@ -4,6 +4,7 @@ from collections.abc import Iterable, Mapping
4
4
  from socket import _Address
5
5
  from typing import Any
6
6
 
7
+ # Keep asyncio.__all__ updated with any changes to __all__ here
7
8
  __all__ = ("BaseTransport", "ReadTransport", "WriteTransport", "Transport", "DatagramTransport", "SubprocessTransport")
8
9
 
9
10
  class BaseTransport:
@@ -13,10 +13,12 @@ from .selector_events import BaseSelectorEventLoop
13
13
 
14
14
  _Ts = TypeVarTuple("_Ts")
15
15
 
16
+ # Keep asyncio.__all__ updated with any changes to __all__ here
16
17
  if sys.platform != "win32":
17
18
  if sys.version_info >= (3, 14):
18
19
  __all__ = ("SelectorEventLoop", "DefaultEventLoopPolicy", "EventLoop")
19
20
  elif sys.version_info >= (3, 13):
21
+ # Adds EventLoop
20
22
  __all__ = (
21
23
  "SelectorEventLoop",
22
24
  "AbstractChildWatcher",
@@ -29,6 +31,7 @@ if sys.platform != "win32":
29
31
  "EventLoop",
30
32
  )
31
33
  elif sys.version_info >= (3, 9):
34
+ # adds PidfdChildWatcher
32
35
  __all__ = (
33
36
  "SelectorEventLoop",
34
37
  "AbstractChildWatcher",
@@ -6,6 +6,7 @@ from typing import IO, Any, ClassVar, Final, NoReturn
6
6
 
7
7
  from . import events, futures, proactor_events, selector_events, streams, windows_utils
8
8
 
9
+ # Keep asyncio.__all__ updated with any changes to __all__ here
9
10
  if sys.platform == "win32":
10
11
  if sys.version_info >= (3, 13):
11
12
  # 3.13 added `EventLoop`.
@@ -14,6 +14,7 @@ which the built-in of that name is also needed.
14
14
  """
15
15
 
16
16
  import _ast
17
+ import _sitebuiltins
17
18
  import _typeshed
18
19
  import sys
19
20
  import types
@@ -60,7 +61,6 @@ from typing import ( # noqa: Y022
60
61
  Mapping,
61
62
  MutableMapping,
62
63
  MutableSequence,
63
- NoReturn,
64
64
  Protocol,
65
65
  Sequence,
66
66
  SupportsAbs,
@@ -4116,8 +4116,10 @@ def compile(
4116
4116
  in addition to any features explicitly specified.
4117
4117
  """
4118
4118
  ...
4119
- def copyright() -> None: ...
4120
- def credits() -> None: ...
4119
+
4120
+ copyright: _sitebuiltins._Printer
4121
+ credits: _sitebuiltins._Printer
4122
+
4121
4123
  def delattr(obj: object, name: str, /) -> None:
4122
4124
  """
4123
4125
  Deletes the named attribute from the given object.
@@ -4219,7 +4221,7 @@ else:
4219
4221
  /,
4220
4222
  ) -> None: ...
4221
4223
 
4222
- def exit(code: sys._ExitCode = None) -> NoReturn: ...
4224
+ exit: _sitebuiltins.Quitter
4223
4225
 
4224
4226
  class filter(Generic[_T]):
4225
4227
  """
@@ -4340,7 +4342,9 @@ def hash(obj: object, /) -> int:
4340
4342
  reverse is not necessarily true.
4341
4343
  """
4342
4344
  ...
4343
- def help(request: object = ...) -> None: ...
4345
+
4346
+ help: _sitebuiltins._Helper
4347
+
4344
4348
  def hex(number: int | SupportsIndex, /) -> str:
4345
4349
  """
4346
4350
  Return the hexadecimal representation of an integer.
@@ -4444,7 +4448,9 @@ def issubclass(cls: type, class_or_tuple: _ClassInfo, /) -> bool:
4444
4448
  def len(obj: Sized, /) -> int:
4445
4449
  """Return the number of items in a container."""
4446
4450
  ...
4447
- def license() -> None: ...
4451
+
4452
+ license: _sitebuiltins._Printer
4453
+
4448
4454
  def locals() -> dict[str, Any]:
4449
4455
  """
4450
4456
  Return a dictionary containing the current scope's local variables.
@@ -4461,18 +4467,18 @@ class map(Generic[_S]):
4461
4467
  each of the iterables. Stops when the shortest iterable is exhausted.
4462
4468
  """
4463
4469
  @overload
4464
- def __new__(cls, func: Callable[[_T1], _S], iter1: Iterable[_T1], /) -> Self: ...
4470
+ def __new__(cls, func: Callable[[_T1], _S], iterable: Iterable[_T1], /) -> Self: ...
4465
4471
  @overload
4466
- def __new__(cls, func: Callable[[_T1, _T2], _S], iter1: Iterable[_T1], iter2: Iterable[_T2], /) -> Self: ...
4472
+ def __new__(cls, func: Callable[[_T1, _T2], _S], iterable: Iterable[_T1], iter2: Iterable[_T2], /) -> Self: ...
4467
4473
  @overload
4468
4474
  def __new__(
4469
- cls, func: Callable[[_T1, _T2, _T3], _S], iter1: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], /
4475
+ cls, func: Callable[[_T1, _T2, _T3], _S], iterable: Iterable[_T1], iter2: Iterable[_T2], iter3: Iterable[_T3], /
4470
4476
  ) -> Self: ...
4471
4477
  @overload
4472
4478
  def __new__(
4473
4479
  cls,
4474
4480
  func: Callable[[_T1, _T2, _T3, _T4], _S],
4475
- iter1: Iterable[_T1],
4481
+ iterable: Iterable[_T1],
4476
4482
  iter2: Iterable[_T2],
4477
4483
  iter3: Iterable[_T3],
4478
4484
  iter4: Iterable[_T4],
@@ -4482,7 +4488,7 @@ class map(Generic[_S]):
4482
4488
  def __new__(
4483
4489
  cls,
4484
4490
  func: Callable[[_T1, _T2, _T3, _T4, _T5], _S],
4485
- iter1: Iterable[_T1],
4491
+ iterable: Iterable[_T1],
4486
4492
  iter2: Iterable[_T2],
4487
4493
  iter3: Iterable[_T3],
4488
4494
  iter4: Iterable[_T4],
@@ -4493,7 +4499,7 @@ class map(Generic[_S]):
4493
4499
  def __new__(
4494
4500
  cls,
4495
4501
  func: Callable[..., _S],
4496
- iter1: Iterable[Any],
4502
+ iterable: Iterable[Any],
4497
4503
  iter2: Iterable[Any],
4498
4504
  iter3: Iterable[Any],
4499
4505
  iter4: Iterable[Any],
@@ -5789,7 +5795,8 @@ def pow(base: _SupportsSomeKindOfPow, exp: complex, mod: None = None) -> complex
5789
5795
  invoked using the three argument form.
5790
5796
  """
5791
5797
  ...
5792
- def quit(code: sys._ExitCode = None) -> NoReturn: ...
5798
+
5799
+ quit: _sitebuiltins.Quitter
5793
5800
 
5794
5801
  class reversed(Generic[_T]):
5795
5802
  """Return a reverse iterator over the values of the given sequence."""
@@ -6189,10 +6196,9 @@ class ReferenceError(Exception):
6189
6196
  class RuntimeError(Exception):
6190
6197
  """Unspecified run-time error."""
6191
6198
  ...
6192
-
6193
6199
  class StopAsyncIteration(Exception):
6194
6200
  """Signal the end from iterator.__anext__()."""
6195
- value: Any
6201
+ ...
6196
6202
 
6197
6203
  class SyntaxError(Exception):
6198
6204
  """Invalid syntax."""
@@ -266,6 +266,8 @@ class StreamReaderWriter(TextIO):
266
266
  def writable(self) -> bool: ...
267
267
 
268
268
  class StreamRecoder(BinaryIO):
269
+ data_encoding: str
270
+ file_encoding: str
269
271
  def __init__(
270
272
  self,
271
273
  stream: _Stream,
@@ -1,3 +1,4 @@
1
+ import sys
1
2
  from types import CodeType
2
3
 
3
4
  __all__ = ["compile_command", "Compile", "CommandCompiler"]
@@ -6,7 +7,10 @@ def compile_command(source: str, filename: str = "<input>", symbol: str = "singl
6
7
 
7
8
  class Compile:
8
9
  flags: int
9
- def __call__(self, source: str, filename: str, symbol: str) -> CodeType: ...
10
+ if sys.version_info >= (3, 13):
11
+ def __call__(self, source: str, filename: str, symbol: str, flags: int = 0) -> CodeType: ...
12
+ else:
13
+ def __call__(self, source: str, filename: str, symbol: str) -> CodeType: ...
10
14
 
11
15
  class CommandCompiler:
12
16
  compiler: Compile
@@ -1,7 +1,7 @@
1
1
  import sys
2
2
  from _collections_abc import dict_items, dict_keys, dict_values
3
3
  from _typeshed import SupportsItems, SupportsKeysAndGetItem, SupportsRichComparison, SupportsRichComparisonT
4
- from typing import Any, Generic, NoReturn, SupportsIndex, TypeVar, final, overload
4
+ from typing import Any, ClassVar, Generic, NoReturn, SupportsIndex, TypeVar, final, overload
5
5
  from typing_extensions import Self
6
6
 
7
7
  if sys.version_info >= (3, 9):
@@ -119,6 +119,7 @@ class UserList(MutableSequence[_T]):
119
119
  def __init__(self, initlist: None = None) -> None: ...
120
120
  @overload
121
121
  def __init__(self, initlist: Iterable[_T]) -> None: ...
122
+ __hash__: ClassVar[None] # type: ignore[assignment]
122
123
  def __lt__(self, other: list[_T] | UserList[_T]) -> bool: ...
123
124
  def __le__(self, other: list[_T] | UserList[_T]) -> bool: ...
124
125
  def __gt__(self, other: list[_T] | UserList[_T]) -> bool: ...
@@ -288,6 +289,7 @@ class deque(MutableSequence[_T]):
288
289
  def __len__(self) -> int:
289
290
  """Return len(self)."""
290
291
  ...
292
+ __hash__: ClassVar[None] # type: ignore[assignment]
291
293
  # These methods of deque don't take slices, unlike MutableSequence, hence the type: ignores
292
294
  def __getitem__(self, key: SupportsIndex, /) -> _T:
293
295
  """Return self[key]."""
@@ -72,9 +72,19 @@ class _CallItem:
72
72
 
73
73
  class _SafeQueue(Queue[Future[Any]]):
74
74
  pending_work_items: dict[int, _WorkItem[Any]]
75
- shutdown_lock: Lock
75
+ if sys.version_info < (3, 12):
76
+ shutdown_lock: Lock
76
77
  thread_wakeup: _ThreadWakeup
77
- if sys.version_info >= (3, 9):
78
+ if sys.version_info >= (3, 12):
79
+ def __init__(
80
+ self,
81
+ max_size: int | None = 0,
82
+ *,
83
+ ctx: BaseContext,
84
+ pending_work_items: dict[int, _WorkItem[Any]],
85
+ thread_wakeup: _ThreadWakeup,
86
+ ) -> None: ...
87
+ elif sys.version_info >= (3, 9):
78
88
  def __init__(
79
89
  self,
80
90
  max_size: int | None = 0,
@@ -33,8 +33,12 @@ _T_co = TypeVar("_T_co", covariant=True)
33
33
  _T_io = TypeVar("_T_io", bound=IO[str] | None)
34
34
  _ExitT_co = TypeVar("_ExitT_co", covariant=True, bound=bool | None, default=bool | None)
35
35
  _F = TypeVar("_F", bound=Callable[..., Any])
36
+ _G = TypeVar("_G", bound=Generator[Any, Any, Any] | AsyncGenerator[Any, Any], covariant=True)
36
37
  _P = ParamSpec("_P")
37
38
 
39
+ _SendT_contra = TypeVar("_SendT_contra", contravariant=True, default=None)
40
+ _ReturnT_co = TypeVar("_ReturnT_co", covariant=True, default=None)
41
+
38
42
  _ExitFunc: TypeAlias = Callable[[type[BaseException] | None, BaseException | None, TracebackType | None], bool | None]
39
43
  _CM_EF = TypeVar("_CM_EF", bound=AbstractContextManager[Any, Any] | _ExitFunc)
40
44
 
@@ -64,16 +68,19 @@ class ContextDecorator:
64
68
  def _recreate_cm(self) -> Self: ...
65
69
  def __call__(self, func: _F) -> _F: ...
66
70
 
67
- class _GeneratorContextManagerBase: ...
68
-
69
- class _GeneratorContextManager(_GeneratorContextManagerBase, AbstractContextManager[_T_co, bool | None], ContextDecorator):
70
- # __init__ and all instance attributes are actually inherited from _GeneratorContextManagerBase
71
- # adding them there is more trouble than it's worth to include in the stub; see #6676
72
- def __init__(self, func: Callable[..., Iterator[_T_co]], args: tuple[Any, ...], kwds: dict[str, Any]) -> None: ...
73
- gen: Generator[_T_co, Any, Any]
74
- func: Callable[..., Generator[_T_co, Any, Any]]
71
+ class _GeneratorContextManagerBase(Generic[_G]):
72
+ # Ideally this would use ParamSpec, but that requires (*args, **kwargs), which this isn't. see #6676
73
+ def __init__(self, func: Callable[..., _G], args: tuple[Any, ...], kwds: dict[str, Any]) -> None: ...
74
+ gen: _G
75
+ func: Callable[..., _G]
75
76
  args: tuple[Any, ...]
76
77
  kwds: dict[str, Any]
78
+
79
+ class _GeneratorContextManager(
80
+ _GeneratorContextManagerBase[Generator[_T_co, _SendT_contra, _ReturnT_co]],
81
+ AbstractContextManager[_T_co, bool | None],
82
+ ContextDecorator,
83
+ ):
77
84
  if sys.version_info >= (3, 9):
78
85
  def __exit__(
79
86
  self, typ: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None
@@ -93,26 +100,18 @@ if sys.version_info >= (3, 10):
93
100
  def __call__(self, func: _AF) -> _AF: ...
94
101
 
95
102
  class _AsyncGeneratorContextManager(
96
- _GeneratorContextManagerBase, AbstractAsyncContextManager[_T_co, bool | None], AsyncContextDecorator
103
+ _GeneratorContextManagerBase[AsyncGenerator[_T_co, _SendT_contra]],
104
+ AbstractAsyncContextManager[_T_co, bool | None],
105
+ AsyncContextDecorator,
97
106
  ):
98
- # __init__ and these attributes are actually defined in the base class _GeneratorContextManagerBase,
99
- # adding them there is more trouble than it's worth to include in the stub (see #6676)
100
- def __init__(self, func: Callable[..., AsyncIterator[_T_co]], args: tuple[Any, ...], kwds: dict[str, Any]) -> None: ...
101
- gen: AsyncGenerator[_T_co, Any]
102
- func: Callable[..., AsyncGenerator[_T_co, Any]]
103
- args: tuple[Any, ...]
104
- kwds: dict[str, Any]
105
107
  async def __aexit__(
106
108
  self, typ: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None
107
109
  ) -> bool | None: ...
108
110
 
109
111
  else:
110
- class _AsyncGeneratorContextManager(_GeneratorContextManagerBase, AbstractAsyncContextManager[_T_co, bool | None]):
111
- def __init__(self, func: Callable[..., AsyncIterator[_T_co]], args: tuple[Any, ...], kwds: dict[str, Any]) -> None: ...
112
- gen: AsyncGenerator[_T_co, Any]
113
- func: Callable[..., AsyncGenerator[_T_co, Any]]
114
- args: tuple[Any, ...]
115
- kwds: dict[str, Any]
112
+ class _AsyncGeneratorContextManager(
113
+ _GeneratorContextManagerBase[AsyncGenerator[_T_co, _SendT_contra]], AbstractAsyncContextManager[_T_co, bool | None]
114
+ ):
116
115
  async def __aexit__(
117
116
  self, typ: type[BaseException] | None, value: BaseException | None, traceback: TracebackType | None
118
117
  ) -> bool | None: ...
@@ -24,8 +24,9 @@ from _ctypes import (
24
24
  set_errno as set_errno,
25
25
  sizeof as sizeof,
26
26
  )
27
+ from _typeshed import StrPath
27
28
  from ctypes._endian import BigEndianStructure as BigEndianStructure, LittleEndianStructure as LittleEndianStructure
28
- from typing import Any, ClassVar, Generic, TypeVar
29
+ from typing import Any, ClassVar, Generic, TypeVar, type_check_only
29
30
  from typing_extensions import Self, TypeAlias, deprecated
30
31
 
31
32
  if sys.platform == "win32":
@@ -45,15 +46,32 @@ DEFAULT_MODE: int
45
46
 
46
47
  class ArgumentError(Exception): ...
47
48
 
49
+ # defined within CDLL.__init__
50
+ # Runtime name is ctypes.CDLL.__init__.<locals>._FuncPtr
51
+ @type_check_only
52
+ class _CDLLFuncPointer(_CFuncPtr):
53
+ _flags_: ClassVar[int]
54
+ _restype_: ClassVar[type[_CDataType]]
55
+
56
+ # Not a real class; _CDLLFuncPointer with a __name__ set on it.
57
+ @type_check_only
58
+ class _NamedFuncPointer(_CDLLFuncPointer):
59
+ __name__: str
60
+
61
+ if sys.version_info >= (3, 12):
62
+ _NameTypes: TypeAlias = StrPath | None
63
+ else:
64
+ _NameTypes: TypeAlias = str | None
65
+
48
66
  class CDLL:
49
67
  _func_flags_: ClassVar[int]
50
- _func_restype_: ClassVar[_CDataType]
68
+ _func_restype_: ClassVar[type[_CDataType]]
51
69
  _name: str
52
70
  _handle: int
53
- _FuncPtr: type[_FuncPointer]
71
+ _FuncPtr: type[_CDLLFuncPointer]
54
72
  def __init__(
55
73
  self,
56
- name: str | None,
74
+ name: _NameTypes,
57
75
  mode: int = ...,
58
76
  handle: int | None = None,
59
77
  use_errno: bool = False,
@@ -90,27 +108,36 @@ if sys.platform == "win32":
90
108
  pydll: LibraryLoader[PyDLL]
91
109
  pythonapi: PyDLL
92
110
 
93
- class _FuncPointer(_CFuncPtr): ...
111
+ # Class definition within CFUNCTYPE / WINFUNCTYPE / PYFUNCTYPE
112
+ # Names at runtime are
113
+ # ctypes.CFUNCTYPE.<locals>.CFunctionType
114
+ # ctypes.WINFUNCTYPE.<locals>.WinFunctionType
115
+ # ctypes.PYFUNCTYPE.<locals>.CFunctionType
116
+ @type_check_only
117
+ class _CFunctionType(_CFuncPtr):
118
+ _argtypes_: ClassVar[list[type[_CData | _CDataType]]]
119
+ _restype_: ClassVar[type[_CData | _CDataType] | None]
120
+ _flags_: ClassVar[int]
94
121
 
95
- class _NamedFuncPointer(_FuncPointer):
96
- __name__: str
122
+ # Alias for either function pointer type
123
+ _FuncPointer: TypeAlias = _CDLLFuncPointer | _CFunctionType # noqa: Y047 # not used here
97
124
 
98
125
  def CFUNCTYPE(
99
126
  restype: type[_CData | _CDataType] | None,
100
127
  *argtypes: type[_CData | _CDataType],
101
- use_errno: bool = ...,
102
- use_last_error: bool = ...,
103
- ) -> type[_FuncPointer]: ...
128
+ use_errno: bool = False,
129
+ use_last_error: bool = False,
130
+ ) -> type[_CFunctionType]: ...
104
131
 
105
132
  if sys.platform == "win32":
106
133
  def WINFUNCTYPE(
107
134
  restype: type[_CData | _CDataType] | None,
108
135
  *argtypes: type[_CData | _CDataType],
109
- use_errno: bool = ...,
110
- use_last_error: bool = ...,
111
- ) -> type[_FuncPointer]: ...
136
+ use_errno: bool = False,
137
+ use_last_error: bool = False,
138
+ ) -> type[_CFunctionType]: ...
112
139
 
113
- def PYFUNCTYPE(restype: type[_CData | _CDataType] | None, *argtypes: type[_CData | _CDataType]) -> type[_FuncPointer]: ...
140
+ def PYFUNCTYPE(restype: type[_CData | _CDataType] | None, *argtypes: type[_CData | _CDataType]) -> type[_CFunctionType]: ...
114
141
 
115
142
  # Any type that can be implicitly converted to c_void_p when passed as a C function argument.
116
143
  # (bytes is not included here, see below.)
@@ -138,10 +165,31 @@ def ARRAY(typ: _CT, len: int) -> Array[_CT]: ... # Soft Deprecated, no plans to
138
165
  if sys.platform == "win32":
139
166
  def DllCanUnloadNow() -> int: ...
140
167
  def DllGetClassObject(rclsid: Any, riid: Any, ppv: Any) -> int: ... # TODO not documented
141
- def GetLastError() -> int: ...
142
168
 
143
- def memmove(dst: _CVoidPLike, src: _CVoidConstPLike, count: int) -> int: ...
144
- def memset(dst: _CVoidPLike, c: int, count: int) -> int: ...
169
+ # Actually just an instance of _NamedFuncPointer (aka _CDLLFuncPointer),
170
+ # but we want to set a more specific __call__
171
+ @type_check_only
172
+ class _GetLastErrorFunctionType(_NamedFuncPointer):
173
+ def __call__(self) -> int: ...
174
+
175
+ GetLastError: _GetLastErrorFunctionType
176
+
177
+ # Actually just an instance of _CFunctionType, but we want to set a more
178
+ # specific __call__.
179
+ @type_check_only
180
+ class _MemmoveFunctionType(_CFunctionType):
181
+ def __call__(self, dst: _CVoidPLike, src: _CVoidConstPLike, count: int) -> int: ...
182
+
183
+ memmove: _MemmoveFunctionType
184
+
185
+ # Actually just an instance of _CFunctionType, but we want to set a more
186
+ # specific __call__.
187
+ @type_check_only
188
+ class _MemsetFunctionType(_CFunctionType):
189
+ def __call__(self, dst: _CVoidPLike, c: int, count: int) -> int: ...
190
+
191
+ memset: _MemsetFunctionType
192
+
145
193
  def string_at(ptr: _CVoidConstPLike, size: int = -1) -> bytes: ...
146
194
 
147
195
  if sys.platform == "win32":
@@ -208,7 +256,10 @@ if sys.platform == "win32":
208
256
  class HRESULT(_SimpleCData[int]): ... # TODO undocumented
209
257
 
210
258
  if sys.version_info >= (3, 12):
211
- c_time_t: type[c_int32 | c_int64] # alias for one or the other at runtime
259
+ # At runtime, this is an alias for either c_int32 or c_int64,
260
+ # which are themselves an alias for one of c_short, c_int, c_long, or c_longlong
261
+ # This covers all our bases.
262
+ c_time_t: type[c_int32 | c_int64 | c_short | c_int | c_long | c_longlong]
212
263
 
213
264
  class py_object(_CanCastTo, _SimpleCData[_T]): ...
214
265