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
@@ -1,7 +1,21 @@
1
+ from _pickle import (
2
+ PickleError as PickleError,
3
+ Pickler as Pickler,
4
+ PicklingError as PicklingError,
5
+ Unpickler as Unpickler,
6
+ UnpicklingError as UnpicklingError,
7
+ _BufferCallback,
8
+ _ReadableFileobj,
9
+ _ReducedType,
10
+ dump as dump,
11
+ dumps as dumps,
12
+ load as load,
13
+ loads as loads,
14
+ )
1
15
  from _typeshed import ReadableBuffer, SupportsWrite
2
- from collections.abc import Callable, Iterable, Iterator, Mapping
3
- from typing import Any, ClassVar, Protocol, SupportsBytes, SupportsIndex, final
4
- from typing_extensions import TypeAlias
16
+ from collections.abc import Callable, Iterable, Mapping
17
+ from typing import Any, ClassVar, SupportsBytes, SupportsIndex, final
18
+ from typing_extensions import Self
5
19
 
6
20
  __all__ = [
7
21
  "PickleBuffer",
@@ -93,13 +107,9 @@ DEFAULT_PROTOCOL: int
93
107
 
94
108
  bytes_types: tuple[type[Any], ...] # undocumented
95
109
 
96
- class _ReadableFileobj(Protocol):
97
- def read(self, n: int, /) -> bytes: ...
98
- def readline(self) -> bytes: ...
99
-
100
110
  @final
101
111
  class PickleBuffer:
102
- def __init__(self, buffer: ReadableBuffer) -> None: ...
112
+ def __new__(cls, buffer: ReadableBuffer) -> Self: ...
103
113
  def raw(self) -> memoryview:
104
114
  """
105
115
  Return a memoryview of the raw memory underlying this buffer.
@@ -116,261 +126,6 @@ class PickleBuffer:
116
126
  """Release the buffer object that exposes the underlying memory of the object."""
117
127
  ...
118
128
 
119
- _BufferCallback: TypeAlias = Callable[[PickleBuffer], Any] | None
120
-
121
- def dump(
122
- obj: Any,
123
- file: SupportsWrite[bytes],
124
- protocol: int | None = None,
125
- *,
126
- fix_imports: bool = True,
127
- buffer_callback: _BufferCallback = None,
128
- ) -> None:
129
- """
130
- Write a pickled representation of obj to the open file object file.
131
-
132
- This is equivalent to ``Pickler(file, protocol).dump(obj)``, but may
133
- be more efficient.
134
-
135
- The optional *protocol* argument tells the pickler to use the given
136
- protocol; supported protocols are 0, 1, 2, 3, 4 and 5. The default
137
- protocol is 4. It was introduced in Python 3.4, and is incompatible
138
- with previous versions.
139
-
140
- Specifying a negative protocol version selects the highest protocol
141
- version supported. The higher the protocol used, the more recent the
142
- version of Python needed to read the pickle produced.
143
-
144
- The *file* argument must have a write() method that accepts a single
145
- bytes argument. It can thus be a file object opened for binary
146
- writing, an io.BytesIO instance, or any other custom object that meets
147
- this interface.
148
-
149
- If *fix_imports* is True and protocol is less than 3, pickle will try
150
- to map the new Python 3 names to the old module names used in Python
151
- 2, so that the pickle data stream is readable with Python 2.
152
-
153
- If *buffer_callback* is None (the default), buffer views are serialized
154
- into *file* as part of the pickle stream. It is an error if
155
- *buffer_callback* is not None and *protocol* is None or smaller than 5.
156
- """
157
- ...
158
- def dumps(
159
- obj: Any, protocol: int | None = None, *, fix_imports: bool = True, buffer_callback: _BufferCallback = None
160
- ) -> bytes:
161
- """
162
- Return the pickled representation of the object as a bytes object.
163
-
164
- The optional *protocol* argument tells the pickler to use the given
165
- protocol; supported protocols are 0, 1, 2, 3, 4 and 5. The default
166
- protocol is 4. It was introduced in Python 3.4, and is incompatible
167
- with previous versions.
168
-
169
- Specifying a negative protocol version selects the highest protocol
170
- version supported. The higher the protocol used, the more recent the
171
- version of Python needed to read the pickle produced.
172
-
173
- If *fix_imports* is True and *protocol* is less than 3, pickle will
174
- try to map the new Python 3 names to the old module names used in
175
- Python 2, so that the pickle data stream is readable with Python 2.
176
-
177
- If *buffer_callback* is None (the default), buffer views are serialized
178
- into *file* as part of the pickle stream. It is an error if
179
- *buffer_callback* is not None and *protocol* is None or smaller than 5.
180
- """
181
- ...
182
- def load(
183
- file: _ReadableFileobj,
184
- *,
185
- fix_imports: bool = True,
186
- encoding: str = "ASCII",
187
- errors: str = "strict",
188
- buffers: Iterable[Any] | None = (),
189
- ) -> Any:
190
- """
191
- Read and return an object from the pickle data stored in a file.
192
-
193
- This is equivalent to ``Unpickler(file).load()``, but may be more
194
- efficient.
195
-
196
- The protocol version of the pickle is detected automatically, so no
197
- protocol argument is needed. Bytes past the pickled object's
198
- representation are ignored.
199
-
200
- The argument *file* must have two methods, a read() method that takes
201
- an integer argument, and a readline() method that requires no
202
- arguments. Both methods should return bytes. Thus *file* can be a
203
- binary file object opened for reading, an io.BytesIO object, or any
204
- other custom object that meets this interface.
205
-
206
- Optional keyword arguments are *fix_imports*, *encoding* and *errors*,
207
- which are used to control compatibility support for pickle stream
208
- generated by Python 2. If *fix_imports* is True, pickle will try to
209
- map the old Python 2 names to the new names used in Python 3. The
210
- *encoding* and *errors* tell pickle how to decode 8-bit string
211
- instances pickled by Python 2; these default to 'ASCII' and 'strict',
212
- respectively. The *encoding* can be 'bytes' to read these 8-bit
213
- string instances as bytes objects.
214
- """
215
- ...
216
- def loads(
217
- data: ReadableBuffer,
218
- /,
219
- *,
220
- fix_imports: bool = True,
221
- encoding: str = "ASCII",
222
- errors: str = "strict",
223
- buffers: Iterable[Any] | None = (),
224
- ) -> Any:
225
- """
226
- Read and return an object from the given pickle data.
227
-
228
- The protocol version of the pickle is detected automatically, so no
229
- protocol argument is needed. Bytes past the pickled object's
230
- representation are ignored.
231
-
232
- Optional keyword arguments are *fix_imports*, *encoding* and *errors*,
233
- which are used to control compatibility support for pickle stream
234
- generated by Python 2. If *fix_imports* is True, pickle will try to
235
- map the old Python 2 names to the new names used in Python 3. The
236
- *encoding* and *errors* tell pickle how to decode 8-bit string
237
- instances pickled by Python 2; these default to 'ASCII' and 'strict',
238
- respectively. The *encoding* can be 'bytes' to read these 8-bit
239
- string instances as bytes objects.
240
- """
241
- ...
242
-
243
- class PickleError(Exception): ...
244
- class PicklingError(PickleError): ...
245
- class UnpicklingError(PickleError): ...
246
-
247
- _ReducedType: TypeAlias = (
248
- str
249
- | tuple[Callable[..., Any], tuple[Any, ...]]
250
- | tuple[Callable[..., Any], tuple[Any, ...], Any]
251
- | tuple[Callable[..., Any], tuple[Any, ...], Any, Iterator[Any] | None]
252
- | tuple[Callable[..., Any], tuple[Any, ...], Any, Iterator[Any] | None, Iterator[Any] | None]
253
- )
254
-
255
- class Pickler:
256
- """
257
- This takes a binary file for writing a pickle data stream.
258
-
259
- The optional *protocol* argument tells the pickler to use the given
260
- protocol; supported protocols are 0, 1, 2, 3, 4 and 5. The default
261
- protocol is 4. It was introduced in Python 3.4, and is incompatible
262
- with previous versions.
263
-
264
- Specifying a negative protocol version selects the highest protocol
265
- version supported. The higher the protocol used, the more recent the
266
- version of Python needed to read the pickle produced.
267
-
268
- The *file* argument must have a write() method that accepts a single
269
- bytes argument. It can thus be a file object opened for binary
270
- writing, an io.BytesIO instance, or any other custom object that meets
271
- this interface.
272
-
273
- If *fix_imports* is True and protocol is less than 3, pickle will try
274
- to map the new Python 3 names to the old module names used in Python
275
- 2, so that the pickle data stream is readable with Python 2.
276
-
277
- If *buffer_callback* is None (the default), buffer views are
278
- serialized into *file* as part of the pickle stream.
279
-
280
- If *buffer_callback* is not None, then it can be called any number
281
- of times with a buffer view. If the callback returns a false value
282
- (such as None), the given buffer is out-of-band; otherwise the
283
- buffer is serialized in-band, i.e. inside the pickle stream.
284
-
285
- It is an error if *buffer_callback* is not None and *protocol*
286
- is None or smaller than 5.
287
- """
288
- fast: bool
289
- dispatch_table: Mapping[type, Callable[[Any], _ReducedType]]
290
- bin: bool # undocumented
291
- dispatch: ClassVar[dict[type, Callable[[Unpickler, Any], None]]] # undocumented, _Pickler only
292
-
293
- def __init__(
294
- self,
295
- file: SupportsWrite[bytes],
296
- protocol: int | None = None,
297
- *,
298
- fix_imports: bool = True,
299
- buffer_callback: _BufferCallback = None,
300
- ) -> None: ...
301
- def reducer_override(self, obj: Any) -> Any: ...
302
- def dump(self, obj: Any, /) -> None:
303
- """Write a pickled representation of the given object to the open file."""
304
- ...
305
- def clear_memo(self) -> None:
306
- """
307
- Clears the pickler's "memo".
308
-
309
- The memo is the data structure that remembers which objects the
310
- pickler has already seen, so that shared or recursive objects are
311
- pickled by reference and not by value. This method is useful when
312
- re-using picklers.
313
- """
314
- ...
315
- def persistent_id(self, obj: Any) -> Any: ...
316
-
317
- class Unpickler:
318
- """
319
- This takes a binary file for reading a pickle data stream.
320
-
321
- The protocol version of the pickle is detected automatically, so no
322
- protocol argument is needed. Bytes past the pickled object's
323
- representation are ignored.
324
-
325
- The argument *file* must have two methods, a read() method that takes
326
- an integer argument, and a readline() method that requires no
327
- arguments. Both methods should return bytes. Thus *file* can be a
328
- binary file object opened for reading, an io.BytesIO object, or any
329
- other custom object that meets this interface.
330
-
331
- Optional keyword arguments are *fix_imports*, *encoding* and *errors*,
332
- which are used to control compatibility support for pickle stream
333
- generated by Python 2. If *fix_imports* is True, pickle will try to
334
- map the old Python 2 names to the new names used in Python 3. The
335
- *encoding* and *errors* tell pickle how to decode 8-bit string
336
- instances pickled by Python 2; these default to 'ASCII' and 'strict',
337
- respectively. The *encoding* can be 'bytes' to read these 8-bit
338
- string instances as bytes objects.
339
- """
340
- dispatch: ClassVar[dict[int, Callable[[Unpickler], None]]] # undocumented, _Unpickler only
341
-
342
- def __init__(
343
- self,
344
- file: _ReadableFileobj,
345
- *,
346
- fix_imports: bool = True,
347
- encoding: str = "ASCII",
348
- errors: str = "strict",
349
- buffers: Iterable[Any] | None = (),
350
- ) -> None: ...
351
- def load(self) -> Any:
352
- """
353
- Load a pickle.
354
-
355
- Read a pickled object representation from the open file object given
356
- in the constructor, and return the reconstituted object hierarchy
357
- specified therein.
358
- """
359
- ...
360
- def find_class(self, module_name: str, global_name: str, /) -> Any:
361
- """
362
- Return an object from a specified module.
363
-
364
- If necessary, the module will be imported. Subclasses may override
365
- this method (e.g. to restrict unpickling of arbitrary classes and
366
- functions).
367
-
368
- This method is called whenever a class or a function object is
369
- needed. Both arguments passed are str objects.
370
- """
371
- ...
372
- def persistent_load(self, pid: Any) -> Any: ...
373
-
374
129
  MARK: bytes
375
130
  STOP: bytes
376
131
  POP: bytes
@@ -454,6 +209,36 @@ READONLY_BUFFER: bytes
454
209
  def encode_long(x: int) -> bytes: ... # undocumented
455
210
  def decode_long(data: Iterable[SupportsIndex] | SupportsBytes | ReadableBuffer) -> int: ... # undocumented
456
211
 
457
- # pure-Python implementations
458
- _Pickler = Pickler # undocumented
459
- _Unpickler = Unpickler # undocumented
212
+ # undocumented pure-Python implementations
213
+ class _Pickler:
214
+ fast: bool
215
+ dispatch_table: Mapping[type, Callable[[Any], _ReducedType]]
216
+ bin: bool # undocumented
217
+ dispatch: ClassVar[dict[type, Callable[[Unpickler, Any], None]]] # undocumented, _Pickler only
218
+ reducer_override: Callable[[Any], Any]
219
+ def __init__(
220
+ self,
221
+ file: SupportsWrite[bytes],
222
+ protocol: int | None = None,
223
+ *,
224
+ fix_imports: bool = True,
225
+ buffer_callback: _BufferCallback = None,
226
+ ) -> None: ...
227
+ def dump(self, obj: Any) -> None: ...
228
+ def clear_memo(self) -> None: ...
229
+ def persistent_id(self, obj: Any) -> Any: ...
230
+
231
+ class _Unpickler:
232
+ dispatch: ClassVar[dict[int, Callable[[Unpickler], None]]] # undocumented, _Unpickler only
233
+ def __init__(
234
+ self,
235
+ file: _ReadableFileobj,
236
+ *,
237
+ fix_imports: bool = True,
238
+ encoding: str = "ASCII",
239
+ errors: str = "strict",
240
+ buffers: Iterable[Any] | None = None,
241
+ ) -> None: ...
242
+ def load(self) -> Any: ...
243
+ def find_class(self, module: str, name: str) -> Any: ...
244
+ def persistent_load(self, pid: Any) -> Any: ...
@@ -1,3 +1,4 @@
1
+ import sys
1
2
  from collections.abc import Callable, Iterator, MutableMapping
2
3
  from typing import IO, Any
3
4
  from typing_extensions import TypeAlias
@@ -40,7 +41,13 @@ def read_uint8(f: IO[bytes]) -> int: ...
40
41
 
41
42
  uint8: ArgumentDescriptor
42
43
 
43
- def read_stringnl(f: IO[bytes], decode: bool = True, stripquotes: bool = True) -> bytes | str: ...
44
+ if sys.version_info >= (3, 12):
45
+ def read_stringnl(
46
+ f: IO[bytes], decode: bool = True, stripquotes: bool = True, *, encoding: str = "latin-1"
47
+ ) -> bytes | str: ...
48
+
49
+ else:
50
+ def read_stringnl(f: IO[bytes], decode: bool = True, stripquotes: bool = True) -> bytes | str: ...
44
51
 
45
52
  stringnl: ArgumentDescriptor
46
53
 
@@ -3,7 +3,7 @@ from _typeshed import ReadableBuffer
3
3
  from collections.abc import Mapping, MutableMapping
4
4
  from datetime import datetime
5
5
  from enum import Enum
6
- from typing import IO, Any
6
+ from typing import IO, Any, ClassVar
7
7
  from typing_extensions import Self
8
8
 
9
9
  __all__ = ["InvalidFileException", "FMT_XML", "FMT_BINARY", "load", "dump", "loads", "dumps", "UID"]
@@ -100,6 +100,7 @@ if sys.version_info < (3, 9):
100
100
  class Data:
101
101
  data: bytes
102
102
  def __init__(self, data: bytes) -> None: ...
103
+ __hash__: ClassVar[None] # type: ignore[assignment]
103
104
 
104
105
  class UID:
105
106
  data: int
@@ -1,6 +1,6 @@
1
1
  import sys
2
2
  from collections.abc import Callable
3
- from typing import Any, NamedTuple, type_check_only
3
+ from typing import Any, ClassVar, NamedTuple, type_check_only
4
4
  from typing_extensions import TypeAlias
5
5
 
6
6
  __all__ = ["scheduler"]
@@ -25,7 +25,8 @@ else:
25
25
  argument: tuple[Any, ...]
26
26
  kwargs: dict[str, Any]
27
27
 
28
- class Event(_EventBase): ...
28
+ class Event(_EventBase):
29
+ __hash__: ClassVar[None] # type: ignore[assignment]
29
30
 
30
31
  class scheduler:
31
32
  timefunc: Callable[[], float]
@@ -9,7 +9,7 @@ import sys
9
9
  from _typeshed import FileDescriptorLike
10
10
  from collections.abc import Iterable
11
11
  from types import TracebackType
12
- from typing import Any, final
12
+ from typing import Any, ClassVar, final
13
13
  from typing_extensions import Self
14
14
 
15
15
  if sys.platform != "win32":
@@ -17,7 +17,8 @@ if sys.platform != "win32":
17
17
  POLLERR: int
18
18
  POLLHUP: int
19
19
  POLLIN: int
20
- POLLMSG: int
20
+ if sys.platform == "linux":
21
+ POLLMSG: int
21
22
  POLLNVAL: int
22
23
  POLLOUT: int
23
24
  POLLPRI: int
@@ -28,17 +29,20 @@ if sys.platform != "win32":
28
29
  POLLWRBAND: int
29
30
  POLLWRNORM: int
30
31
 
31
- class poll:
32
- """
33
- Returns a polling object.
32
+ # This is actually a function that returns an instance of a class.
33
+ # The class is not accessible directly, and also calls itself select.poll.
34
+ class poll:
35
+ """
36
+ Returns a polling object.
34
37
 
35
- This object supports registering and unregistering file descriptors, and then
36
- polling them for I/O events.
37
- """
38
- def register(self, fd: FileDescriptorLike, eventmask: int = ...) -> None: ...
39
- def modify(self, fd: FileDescriptorLike, eventmask: int) -> None: ...
40
- def unregister(self, fd: FileDescriptorLike) -> None: ...
41
- def poll(self, timeout: float | None = ...) -> list[tuple[int, int]]: ...
38
+ This object supports registering and unregistering file descriptors, and then
39
+ polling them for I/O events.
40
+ """
41
+ # default value is select.POLLIN | select.POLLPRI | select.POLLOUT
42
+ def register(self, fd: FileDescriptorLike, eventmask: int = 7, /) -> None: ...
43
+ def modify(self, fd: FileDescriptorLike, eventmask: int, /) -> None: ...
44
+ def unregister(self, fd: FileDescriptorLike, /) -> None: ...
45
+ def poll(self, timeout: float | None = None, /) -> list[tuple[int, int]]: ...
42
46
 
43
47
  def select(
44
48
  rlist: Iterable[Any], wlist: Iterable[Any], xlist: Iterable[Any], timeout: float | None = None, /
@@ -106,6 +110,7 @@ if sys.platform != "linux" and sys.platform != "win32":
106
110
  data: Any = ...,
107
111
  udata: Any = ...,
108
112
  ) -> None: ...
113
+ __hash__: ClassVar[None] # type: ignore[assignment]
109
114
 
110
115
  # BSD only
111
116
  @final
@@ -169,7 +174,8 @@ if sys.platform != "linux" and sys.platform != "win32":
169
174
  KQ_EV_ONESHOT: int
170
175
  KQ_EV_SYSFLAGS: int
171
176
  KQ_FILTER_AIO: int
172
- KQ_FILTER_NETDEV: int
177
+ if sys.platform != "darwin":
178
+ KQ_FILTER_NETDEV: int
173
179
  KQ_FILTER_PROC: int
174
180
  KQ_FILTER_READ: int
175
181
  KQ_FILTER_SIGNAL: int
@@ -50,10 +50,12 @@ if sys.platform == "linux":
50
50
  class EpollSelector(_PollLikeSelector):
51
51
  def fileno(self) -> int: ...
52
52
 
53
- class DevpollSelector(_PollLikeSelector):
54
- def fileno(self) -> int: ...
53
+ if sys.platform != "linux" and sys.platform != "darwin" and sys.platform != "win32":
54
+ # Solaris only
55
+ class DevpollSelector(_PollLikeSelector):
56
+ def fileno(self) -> int: ...
55
57
 
56
- if sys.platform != "win32":
58
+ if sys.platform != "win32" and sys.platform != "linux":
57
59
  class KqueueSelector(_BaseSelectorImpl):
58
60
  def fileno(self) -> int: ...
59
61
  def select(self, timeout: float | None = None) -> list[tuple[SelectorKey, _EventMask]]: ...
@@ -3,7 +3,7 @@ from _typeshed import structseq
3
3
  from collections.abc import Callable, Iterable
4
4
  from enum import IntEnum
5
5
  from types import FrameType
6
- from typing import Any, Final, final
6
+ from typing import Any, Final, Literal, final
7
7
  from typing_extensions import Never, TypeAlias
8
8
 
9
9
  NSIG: int
@@ -61,8 +61,8 @@ class Handlers(IntEnum):
61
61
  SIG_DFL = 0
62
62
  SIG_IGN = 1
63
63
 
64
- SIG_DFL: Handlers
65
- SIG_IGN: Handlers
64
+ SIG_DFL: Literal[Handlers.SIG_DFL]
65
+ SIG_IGN: Literal[Handlers.SIG_IGN]
66
66
 
67
67
  _SIGNUM: TypeAlias = int | Signals
68
68
  _HANDLER: TypeAlias = Callable[[int, FrameType | None], Any] | int | Handlers | None
@@ -83,45 +83,45 @@ else:
83
83
  def getsignal(signalnum: _SIGNUM, /) -> _HANDLER: ...
84
84
  def signal(signalnum: _SIGNUM, handler: _HANDLER, /) -> _HANDLER: ...
85
85
 
86
- SIGABRT: Signals
87
- SIGFPE: Signals
88
- SIGILL: Signals
89
- SIGINT: Signals
90
- SIGSEGV: Signals
91
- SIGTERM: Signals
86
+ SIGABRT: Literal[Signals.SIGABRT]
87
+ SIGFPE: Literal[Signals.SIGFPE]
88
+ SIGILL: Literal[Signals.SIGILL]
89
+ SIGINT: Literal[Signals.SIGINT]
90
+ SIGSEGV: Literal[Signals.SIGSEGV]
91
+ SIGTERM: Literal[Signals.SIGTERM]
92
92
 
93
93
  if sys.platform == "win32":
94
- SIGBREAK: Signals
95
- CTRL_C_EVENT: Signals
96
- CTRL_BREAK_EVENT: Signals
94
+ SIGBREAK: Literal[Signals.SIGBREAK]
95
+ CTRL_C_EVENT: Literal[Signals.CTRL_C_EVENT]
96
+ CTRL_BREAK_EVENT: Literal[Signals.CTRL_BREAK_EVENT]
97
97
  else:
98
98
  if sys.platform != "linux":
99
- SIGINFO: Signals
100
- SIGEMT: Signals
101
- SIGALRM: Signals
102
- SIGBUS: Signals
103
- SIGCHLD: Signals
104
- SIGCONT: Signals
105
- SIGHUP: Signals
106
- SIGIO: Signals
107
- SIGIOT: Signals
108
- SIGKILL: Signals
109
- SIGPIPE: Signals
110
- SIGPROF: Signals
111
- SIGQUIT: Signals
112
- SIGSTOP: Signals
113
- SIGSYS: Signals
114
- SIGTRAP: Signals
115
- SIGTSTP: Signals
116
- SIGTTIN: Signals
117
- SIGTTOU: Signals
118
- SIGURG: Signals
119
- SIGUSR1: Signals
120
- SIGUSR2: Signals
121
- SIGVTALRM: Signals
122
- SIGWINCH: Signals
123
- SIGXCPU: Signals
124
- SIGXFSZ: Signals
99
+ SIGINFO: Literal[Signals.SIGINFO]
100
+ SIGEMT: Literal[Signals.SIGEMT]
101
+ SIGALRM: Literal[Signals.SIGALRM]
102
+ SIGBUS: Literal[Signals.SIGBUS]
103
+ SIGCHLD: Literal[Signals.SIGCHLD]
104
+ SIGCONT: Literal[Signals.SIGCONT]
105
+ SIGHUP: Literal[Signals.SIGHUP]
106
+ SIGIO: Literal[Signals.SIGIO]
107
+ SIGIOT: Literal[Signals.SIGABRT] # alias
108
+ SIGKILL: Literal[Signals.SIGKILL]
109
+ SIGPIPE: Literal[Signals.SIGPIPE]
110
+ SIGPROF: Literal[Signals.SIGPROF]
111
+ SIGQUIT: Literal[Signals.SIGQUIT]
112
+ SIGSTOP: Literal[Signals.SIGSTOP]
113
+ SIGSYS: Literal[Signals.SIGSYS]
114
+ SIGTRAP: Literal[Signals.SIGTRAP]
115
+ SIGTSTP: Literal[Signals.SIGTSTP]
116
+ SIGTTIN: Literal[Signals.SIGTTIN]
117
+ SIGTTOU: Literal[Signals.SIGTTOU]
118
+ SIGURG: Literal[Signals.SIGURG]
119
+ SIGUSR1: Literal[Signals.SIGUSR1]
120
+ SIGUSR2: Literal[Signals.SIGUSR2]
121
+ SIGVTALRM: Literal[Signals.SIGVTALRM]
122
+ SIGWINCH: Literal[Signals.SIGWINCH]
123
+ SIGXCPU: Literal[Signals.SIGXCPU]
124
+ SIGXFSZ: Literal[Signals.SIGXFSZ]
125
125
 
126
126
  class ItimerError(OSError): ...
127
127
  ITIMER_PROF: int
@@ -133,9 +133,9 @@ else:
133
133
  SIG_UNBLOCK = 1
134
134
  SIG_SETMASK = 2
135
135
 
136
- SIG_BLOCK = Sigmasks.SIG_BLOCK
137
- SIG_UNBLOCK = Sigmasks.SIG_UNBLOCK
138
- SIG_SETMASK = Sigmasks.SIG_SETMASK
136
+ SIG_BLOCK: Literal[Sigmasks.SIG_BLOCK]
137
+ SIG_UNBLOCK: Literal[Sigmasks.SIG_UNBLOCK]
138
+ SIG_SETMASK: Literal[Sigmasks.SIG_SETMASK]
139
139
  def alarm(seconds: int, /) -> int:
140
140
  """Arrange for SIGALRM to arrive after the given number of seconds."""
141
141
  ...
@@ -177,13 +177,13 @@ else:
177
177
  else:
178
178
  def sigwait(sigset: Iterable[int], /) -> _SIGNUM: ...
179
179
  if sys.platform != "darwin":
180
- SIGCLD: Signals
181
- SIGPOLL: Signals
182
- SIGPWR: Signals
183
- SIGRTMAX: Signals
184
- SIGRTMIN: Signals
180
+ SIGCLD: Literal[Signals.SIGCHLD] # alias
181
+ SIGPOLL: Literal[Signals.SIGIO] # alias
182
+ SIGPWR: Literal[Signals.SIGPWR]
183
+ SIGRTMAX: Literal[Signals.SIGRTMAX]
184
+ SIGRTMIN: Literal[Signals.SIGRTMIN]
185
185
  if sys.version_info >= (3, 11):
186
- SIGSTKFLT: Signals
186
+ SIGSTKFLT: Literal[Signals.SIGSTKFLT]
187
187
 
188
188
  @final
189
189
  class struct_siginfo(structseq[int], tuple[int, int, int, int, int, int, int]):
@@ -367,7 +367,6 @@ if sys.platform != "win32" and sys.platform != "darwin":
367
367
  IP_TRANSPARENT as IP_TRANSPARENT,
368
368
  IPX_TYPE as IPX_TYPE,
369
369
  SCM_CREDENTIALS as SCM_CREDENTIALS,
370
- SO_BINDTODEVICE as SO_BINDTODEVICE,
371
370
  SO_DOMAIN as SO_DOMAIN,
372
371
  SO_MARK as SO_MARK,
373
372
  SO_PASSCRED as SO_PASSCRED,
@@ -396,7 +395,6 @@ if sys.platform != "win32" and sys.platform != "darwin":
396
395
  __all__ += [
397
396
  "IP_TRANSPARENT",
398
397
  "SCM_CREDENTIALS",
399
- "SO_BINDTODEVICE",
400
398
  "SO_DOMAIN",
401
399
  "SO_MARK",
402
400
  "SO_PASSCRED",
@@ -517,6 +515,11 @@ if sys.platform != "win32":
517
515
  "IPV6_RTHDRDSTOPTS",
518
516
  ]
519
517
 
518
+ if sys.platform != "darwin" or sys.version_info >= (3, 13):
519
+ from _socket import SO_BINDTODEVICE as SO_BINDTODEVICE
520
+
521
+ __all__ += ["SO_BINDTODEVICE"]
522
+
520
523
  if sys.platform != "darwin" and sys.platform != "linux":
521
524
  if sys.platform != "win32" or sys.version_info >= (3, 9):
522
525
  from _socket import BDADDR_ANY as BDADDR_ANY, BDADDR_LOCAL as BDADDR_LOCAL, BTPROTO_RFCOMM as BTPROTO_RFCOMM
@@ -1046,7 +1049,6 @@ class AddressFamily(IntEnum):
1046
1049
  AF_INET = 2
1047
1050
  AF_INET6 = 10
1048
1051
  AF_APPLETALK = 5
1049
- AF_DECnet = ...
1050
1052
  AF_IPX = 4
1051
1053
  AF_SNA = 22
1052
1054
  AF_UNSPEC = 0
@@ -1096,7 +1098,7 @@ class AddressFamily(IntEnum):
1096
1098
  AF_INET = AddressFamily.AF_INET
1097
1099
  AF_INET6 = AddressFamily.AF_INET6
1098
1100
  AF_APPLETALK = AddressFamily.AF_APPLETALK
1099
- AF_DECnet = AddressFamily.AF_DECnet
1101
+ AF_DECnet: Literal[12]
1100
1102
  AF_IPX = AddressFamily.AF_IPX
1101
1103
  AF_SNA = AddressFamily.AF_SNA
1102
1104
  AF_UNSPEC = AddressFamily.AF_UNSPEC
@@ -1407,7 +1409,7 @@ def create_server(
1407
1409
  address: _Address, *, family: int = ..., backlog: int | None = None, reuse_port: bool = False, dualstack_ipv6: bool = False
1408
1410
  ) -> socket: ...
1409
1411
 
1410
- # the 5th tuple item is an address
1412
+ # The 5th tuple item is the socket address, for IP4, IP6, or IP6 if Python is compiled with --disable-ipv6, respectively.
1411
1413
  def getaddrinfo(
1412
1414
  host: bytes | str | None, port: bytes | str | int | None, family: int = 0, type: int = 0, proto: int = 0, flags: int = 0
1413
- ) -> list[tuple[AddressFamily, SocketKind, int, str, tuple[str, int] | tuple[str, int, int, int]]]: ...
1415
+ ) -> list[tuple[AddressFamily, SocketKind, int, str, tuple[str, int] | tuple[str, int, int, int] | tuple[int, bytes]]]: ...
@@ -683,7 +683,7 @@ class PrepareProtocol:
683
683
  def __init__(self, *args: object, **kwargs: object) -> None: ...
684
684
 
685
685
  class Row(Sequence[Any]):
686
- def __init__(self, cursor: Cursor, data: tuple[Any, ...], /) -> None: ...
686
+ def __new__(cls, cursor: Cursor, data: tuple[Any, ...], /) -> Self: ...
687
687
  def keys(self) -> list[str]:
688
688
  """Returns the keys of the row."""
689
689
  ...