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,229 +0,0 @@
1
- from _typeshed import Incomplete
2
- from collections.abc import Awaitable, Callable, Mapping
3
- from types import TracebackType
4
- from typing import Any, Generic, TypeVar
5
- from typing_extensions import Self
6
-
7
- from redis.asyncio.client import ResponseCallbackT
8
- from redis.asyncio.connection import AbstractConnection, BaseParser, Connection, Encoder
9
- from redis.asyncio.parser import CommandsParser
10
- from redis.client import AbstractRedis
11
- from redis.cluster import AbstractRedisCluster, LoadBalancer
12
-
13
- # TODO: add AsyncRedisClusterCommands stubs
14
- # from redis.commands import AsyncRedisClusterCommands
15
- from redis.commands.core import _StrType
16
- from redis.credentials import CredentialProvider
17
- from redis.exceptions import ResponseError
18
- from redis.retry import Retry
19
- from redis.typing import AnyKeyT, EncodableT, KeyT
20
-
21
- TargetNodesT = TypeVar("TargetNodesT", str, ClusterNode, list[ClusterNode], dict[Any, ClusterNode]) # noqa: Y001
22
-
23
- # It uses `DefaultParser` in real life, but it is a dynamic base class.
24
- class ClusterParser(BaseParser):
25
- def on_disconnect(self) -> None: ...
26
- def on_connect(self, connection: AbstractConnection) -> None: ...
27
- async def can_read_destructive(self) -> bool: ...
28
- async def read_response(self, disable_decoding: bool = False) -> EncodableT | ResponseError | list[EncodableT] | None: ...
29
-
30
- class RedisCluster(AbstractRedis, AbstractRedisCluster, Generic[_StrType]): # TODO: AsyncRedisClusterCommands
31
- @classmethod
32
- def from_url(
33
- cls,
34
- url: str,
35
- *,
36
- host: str | None = None,
37
- port: str | int = 6379,
38
- # Cluster related kwargs
39
- startup_nodes: list[ClusterNode] | None = None,
40
- require_full_coverage: bool = True,
41
- read_from_replicas: bool = False,
42
- reinitialize_steps: int = 5,
43
- cluster_error_retry_attempts: int = 3,
44
- connection_error_retry_attempts: int = 3,
45
- max_connections: int = 2147483648,
46
- # Client related kwargs
47
- db: str | int = 0,
48
- path: str | None = None,
49
- credential_provider: CredentialProvider | None = None,
50
- username: str | None = None,
51
- password: str | None = None,
52
- client_name: str | None = None,
53
- # Encoding related kwargs
54
- encoding: str = "utf-8",
55
- encoding_errors: str = "strict",
56
- decode_responses: bool = False,
57
- # Connection related kwargs
58
- health_check_interval: float = 0,
59
- socket_connect_timeout: float | None = None,
60
- socket_keepalive: bool = False,
61
- socket_keepalive_options: Mapping[int, int | bytes] | None = None,
62
- socket_timeout: float | None = None,
63
- retry: Retry | None = None,
64
- retry_on_error: list[Exception] | None = None,
65
- # SSL related kwargs
66
- ssl: bool = False,
67
- ssl_ca_certs: str | None = None,
68
- ssl_ca_data: str | None = None,
69
- ssl_cert_reqs: str = "required",
70
- ssl_certfile: str | None = None,
71
- ssl_check_hostname: bool = False,
72
- ssl_keyfile: str | None = None,
73
- address_remap: Callable[[str, int], tuple[str, int]] | None = None,
74
- ) -> Self: ...
75
-
76
- retry: Retry | None
77
- connection_kwargs: dict[str, Any]
78
- nodes_manager: NodesManager
79
- encoder: Encoder
80
- read_from_replicas: bool
81
- reinitialize_steps: int
82
- cluster_error_retry_attempts: int
83
- reinitialize_counter: int
84
- commands_parser: CommandsParser
85
- node_flags: set[str]
86
- command_flags: dict[str, str]
87
- response_callbacks: Incomplete
88
- result_callbacks: dict[str, Callable[[Incomplete, Incomplete], Incomplete]]
89
-
90
- def __init__(
91
- self,
92
- host: str | None = None,
93
- port: str | int = 6379,
94
- # Cluster related kwargs
95
- startup_nodes: list[ClusterNode] | None = None,
96
- require_full_coverage: bool = True,
97
- read_from_replicas: bool = False,
98
- reinitialize_steps: int = 5,
99
- cluster_error_retry_attempts: int = 3,
100
- connection_error_retry_attempts: int = 3,
101
- max_connections: int = 2147483648,
102
- # Client related kwargs
103
- db: str | int = 0,
104
- path: str | None = None,
105
- credential_provider: CredentialProvider | None = None,
106
- username: str | None = None,
107
- password: str | None = None,
108
- client_name: str | None = None,
109
- # Encoding related kwargs
110
- encoding: str = "utf-8",
111
- encoding_errors: str = "strict",
112
- decode_responses: bool = False,
113
- # Connection related kwargs
114
- health_check_interval: float = 0,
115
- socket_connect_timeout: float | None = None,
116
- socket_keepalive: bool = False,
117
- socket_keepalive_options: Mapping[int, int | bytes] | None = None,
118
- socket_timeout: float | None = None,
119
- retry: Retry | None = None,
120
- retry_on_error: list[Exception] | None = None,
121
- # SSL related kwargs
122
- ssl: bool = False,
123
- ssl_ca_certs: str | None = None,
124
- ssl_ca_data: str | None = None,
125
- ssl_cert_reqs: str = "required",
126
- ssl_certfile: str | None = None,
127
- ssl_check_hostname: bool = False,
128
- ssl_keyfile: str | None = None,
129
- address_remap: Callable[[str, int], tuple[str, int]] | None = None,
130
- ) -> None: ...
131
- async def initialize(self) -> Self: ...
132
- async def close(self) -> None: ...
133
- async def __aenter__(self) -> Self: ...
134
- async def __aexit__(
135
- self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None
136
- ) -> None: ...
137
- def __await__(self) -> Awaitable[Self]: ...
138
- def __del__(self) -> None: ...
139
- async def on_connect(self, connection: Connection) -> None: ...
140
- def get_nodes(self) -> list[ClusterNode]: ...
141
- def get_primaries(self) -> list[ClusterNode]: ...
142
- def get_replicas(self) -> list[ClusterNode]: ...
143
- def get_random_node(self) -> ClusterNode: ...
144
- def get_default_node(self) -> ClusterNode: ...
145
- def set_default_node(self, node: ClusterNode) -> None: ...
146
- def get_node(self, host: str | None = None, port: int | None = None, node_name: str | None = None) -> ClusterNode | None: ...
147
- def get_node_from_key(self, key: str, replica: bool = False) -> ClusterNode | None: ...
148
- def keyslot(self, key: EncodableT) -> int: ...
149
- def get_encoder(self) -> Encoder: ...
150
- def get_connection_kwargs(self) -> dict[str, Any | None]: ...
151
- def set_response_callback(self, command: str, callback: ResponseCallbackT) -> None: ...
152
- async def execute_command(self, *args: EncodableT, **kwargs: Any) -> Any: ...
153
- def pipeline(self, transaction: Any | None = None, shard_hint: Any | None = None) -> ClusterPipeline[_StrType]: ...
154
-
155
- class ClusterNode:
156
- host: str
157
- port: str | int
158
- name: str
159
- server_type: str | None
160
- max_connections: int
161
- connection_class: type[Connection]
162
- connection_kwargs: dict[str, Any]
163
- response_callbacks: dict[Incomplete, Incomplete]
164
- def __init__(
165
- self,
166
- host: str,
167
- port: str | int,
168
- server_type: str | None = None,
169
- *,
170
- max_connections: int = 2147483648,
171
- connection_class: type[Connection] = ...,
172
- **connection_kwargs: Any,
173
- ) -> None: ...
174
- def __eq__(self, obj: object) -> bool: ...
175
- def __del__(self) -> None: ...
176
- async def disconnect(self) -> None: ...
177
- def acquire_connection(self) -> Connection: ...
178
- async def parse_response(self, connection: Connection, command: str, **kwargs: Any) -> Any: ...
179
- async def execute_command(self, *args: Any, **kwargs: Any) -> Any: ...
180
- async def execute_pipeline(self, commands: list[PipelineCommand]) -> bool: ...
181
-
182
- class NodesManager:
183
- startup_nodes: dict[str, ClusterNode]
184
- require_full_coverage: bool
185
- connection_kwargs: dict[str, Any]
186
- default_node: ClusterNode | None
187
- nodes_cache: dict[str, ClusterNode]
188
- slots_cache: dict[int, list[ClusterNode]]
189
- read_load_balancer: LoadBalancer
190
- address_remap: Callable[[str, int], tuple[str, int]] | None
191
- def __init__(
192
- self,
193
- startup_nodes: list[ClusterNode],
194
- require_full_coverage: bool,
195
- connection_kwargs: dict[str, Any],
196
- address_remap: Callable[[str, int], tuple[str, int]] | None = None,
197
- ) -> None: ...
198
- def get_node(self, host: str | None = None, port: int | None = None, node_name: str | None = None) -> ClusterNode | None: ...
199
- def set_nodes(self, old: dict[str, ClusterNode], new: dict[str, ClusterNode], remove_old: bool = False) -> None: ...
200
- def get_node_from_slot(self, slot: int, read_from_replicas: bool = False) -> ClusterNode: ...
201
- def get_nodes_by_server_type(self, server_type: str) -> list[ClusterNode]: ...
202
- async def initialize(self) -> None: ...
203
- async def close(self, attr: str = "nodes_cache") -> None: ...
204
- def remap_host_port(self, host: str, port: int) -> tuple[str, int]: ...
205
-
206
- class ClusterPipeline(AbstractRedis, AbstractRedisCluster, Generic[_StrType]): # TODO: AsyncRedisClusterCommands
207
- def __init__(self, client: RedisCluster[_StrType]) -> None: ...
208
- async def initialize(self) -> Self: ...
209
- async def __aenter__(self) -> Self: ...
210
- async def __aexit__(
211
- self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None
212
- ) -> None: ...
213
- def __await__(self) -> Awaitable[Self]: ...
214
- def __enter__(self) -> Self: ...
215
- def __exit__(
216
- self, exc_type: type[BaseException] | None, exc_value: BaseException | None, traceback: TracebackType | None
217
- ) -> None: ...
218
- def __bool__(self) -> bool: ...
219
- def __len__(self) -> int: ...
220
- def execute_command(self, *args: KeyT | EncodableT, **kwargs: Any) -> Self: ...
221
- async def execute(self, raise_on_error: bool = True, allow_redirections: bool = True) -> list[Any]: ...
222
- def mset_nonatomic(self, mapping: Mapping[AnyKeyT, EncodableT]) -> Self: ...
223
-
224
- class PipelineCommand:
225
- args: Any
226
- kwargs: Any
227
- position: int
228
- result: Exception | None | Any
229
- def __init__(self, position: int, *args: Any, **kwargs: Any) -> None: ...
@@ -1,363 +0,0 @@
1
- import asyncio
2
- import enum
3
- import ssl
4
- from _typeshed import Unused
5
- from abc import abstractmethod
6
- from collections.abc import Callable, Iterable, Mapping
7
- from types import MappingProxyType
8
- from typing import Any, Final, Generic, Literal, Protocol, TypedDict, TypeVar, overload
9
- from typing_extensions import Self, TypeAlias
10
-
11
- from redis.asyncio.retry import Retry
12
- from redis.credentials import CredentialProvider
13
- from redis.exceptions import AuthenticationError, RedisError, ResponseError
14
- from redis.typing import EncodableT, EncodedT
15
-
16
- _SSLVerifyMode: TypeAlias = Literal["none", "optional", "required"]
17
-
18
- SYM_STAR: Final[bytes]
19
- SYM_DOLLAR: Final[bytes]
20
- SYM_CRLF: Final[bytes]
21
- SYM_LF: Final[bytes]
22
- SYM_EMPTY: Final[bytes]
23
-
24
- SERVER_CLOSED_CONNECTION_ERROR: Final[str]
25
-
26
- class _Sentinel(enum.Enum):
27
- sentinel = object()
28
-
29
- SENTINEL: Final[object]
30
- MODULE_LOAD_ERROR: Final[str]
31
- NO_SUCH_MODULE_ERROR: Final[str]
32
- MODULE_UNLOAD_NOT_POSSIBLE_ERROR: Final[str]
33
- MODULE_EXPORTS_DATA_TYPES_ERROR: Final[str]
34
- NO_AUTH_SET_ERROR: Final[dict[str, type[AuthenticationError]]]
35
-
36
- class Encoder:
37
- encoding: str
38
- encoding_errors: str
39
- decode_responses: bool
40
- def __init__(self, encoding: str, encoding_errors: str, decode_responses: bool) -> None: ...
41
- def encode(self, value: EncodableT) -> EncodedT: ...
42
- def decode(self, value: EncodableT, force: bool = False) -> EncodableT: ...
43
-
44
- ExceptionMappingT: TypeAlias = Mapping[str, type[Exception] | Mapping[str, type[Exception]]]
45
-
46
- class BaseParser:
47
- EXCEPTION_CLASSES: ExceptionMappingT
48
- def __init__(self, socket_read_size: int) -> None: ...
49
- @classmethod
50
- def parse_error(cls, response: str) -> ResponseError: ...
51
- @abstractmethod
52
- def on_disconnect(self) -> None: ...
53
- @abstractmethod
54
- def on_connect(self, connection: AbstractConnection) -> None: ...
55
- @abstractmethod
56
- async def can_read_destructive(self) -> bool: ...
57
- @abstractmethod
58
- async def read_response(self, disable_decoding: bool = False) -> EncodableT | ResponseError | list[EncodableT] | None: ...
59
-
60
- class PythonParser(BaseParser):
61
- encoder: Encoder | None
62
- def __init__(self, socket_read_size: int) -> None: ...
63
- def on_connect(self, connection: AbstractConnection) -> None: ...
64
- def on_disconnect(self) -> None: ...
65
- async def can_read_destructive(self) -> bool: ...
66
- async def read_response(self, disable_decoding: bool = False) -> EncodableT | ResponseError | None: ...
67
-
68
- class HiredisParser(BaseParser):
69
- def __init__(self, socket_read_size: int) -> None: ...
70
- def on_connect(self, connection: AbstractConnection) -> None: ...
71
- def on_disconnect(self) -> None: ...
72
- async def can_read_destructive(self) -> bool: ...
73
- async def read_from_socket(self) -> Literal[True]: ...
74
- async def read_response(self, disable_decoding: bool = False) -> EncodableT | list[EncodableT]: ...
75
-
76
- DefaultParser: type[PythonParser | HiredisParser]
77
-
78
- class ConnectCallbackProtocol(Protocol):
79
- def __call__(self, connection: Connection): ...
80
-
81
- class AsyncConnectCallbackProtocol(Protocol):
82
- async def __call__(self, connection: Connection): ...
83
-
84
- ConnectCallbackT: TypeAlias = ConnectCallbackProtocol | AsyncConnectCallbackProtocol
85
-
86
- class AbstractConnection:
87
- pid: int
88
- db: str | int
89
- client_name: str | None
90
- credential_provider: CredentialProvider | None
91
- password: str | None
92
- username: str | None
93
- socket_timeout: float | None
94
- socket_connect_timeout: float | None
95
- retry_on_timeout: bool
96
- retry_on_error: list[type[Exception]]
97
- retry: Retry
98
- health_check_interval: float
99
- next_health_check: float
100
- encoder: Encoder
101
- redis_connect_func: ConnectCallbackT | None
102
-
103
- def __init__(
104
- self,
105
- *,
106
- db: str | int = 0,
107
- password: str | None = None,
108
- socket_timeout: float | None = None,
109
- socket_connect_timeout: float | None = None,
110
- retry_on_timeout: bool = False,
111
- retry_on_error: list[type[RedisError]] | _Sentinel = ...,
112
- encoding: str = "utf-8",
113
- encoding_errors: str = "strict",
114
- decode_responses: bool = False,
115
- parser_class: type[BaseParser] = ...,
116
- socket_read_size: int = 65536,
117
- health_check_interval: float = 0,
118
- client_name: str | None = None,
119
- username: str | None = None,
120
- retry: Retry | None = None,
121
- redis_connect_func: ConnectCallbackT | None = None,
122
- encoder_class: type[Encoder] = ...,
123
- credential_provider: CredentialProvider | None = None,
124
- ) -> None: ...
125
- @abstractmethod
126
- def repr_pieces(self) -> list[tuple[str, Any]]: ...
127
- @property
128
- def is_connected(self) -> bool: ...
129
- def register_connect_callback(self, callback: ConnectCallbackT) -> None: ...
130
- def clear_connect_callbacks(self) -> None: ...
131
- def set_parser(self, parser_class: type[BaseParser]) -> None: ...
132
- async def connect(self) -> None: ...
133
- async def on_connect(self) -> None: ...
134
- async def disconnect(self, nowait: bool = False) -> None: ...
135
- async def check_health(self) -> None: ...
136
- async def send_packed_command(self, command: bytes | str | Iterable[bytes], check_health: bool = True) -> None: ...
137
- async def send_command(self, *args: Any, **kwargs: Any) -> None: ...
138
- async def can_read_destructive(self) -> bool: ...
139
- async def read_response(
140
- self, disable_decoding: bool = False, timeout: float | None = None, *, disconnect_on_error: bool = True
141
- ) -> EncodableT | list[EncodableT] | None: ...
142
- def pack_command(self, *args: EncodableT) -> list[bytes]: ...
143
- def pack_commands(self, commands: Iterable[Iterable[EncodableT]]) -> list[bytes]: ...
144
-
145
- class Connection(AbstractConnection):
146
- host: str
147
- port: int
148
- socket_keepalive: bool
149
- socket_keepalive_options: Mapping[int, int | bytes] | None
150
- socket_type: int
151
-
152
- def __init__(
153
- self,
154
- *,
155
- host: str = "localhost",
156
- port: str | int = 6379,
157
- socket_keepalive: bool = False,
158
- socket_keepalive_options: Mapping[int, int | bytes] | None = None,
159
- socket_type: int = 0,
160
- # **kwargs forwarded to AbstractConnection.
161
- db: str | int = 0,
162
- password: str | None = None,
163
- socket_timeout: float | None = None,
164
- socket_connect_timeout: float | None = None,
165
- retry_on_timeout: bool = False,
166
- retry_on_error: list[type[RedisError]] | _Sentinel = ...,
167
- encoding: str = "utf-8",
168
- encoding_errors: str = "strict",
169
- decode_responses: bool = False,
170
- parser_class: type[BaseParser] = ...,
171
- socket_read_size: int = 65536,
172
- health_check_interval: float = 0,
173
- client_name: str | None = None,
174
- username: str | None = None,
175
- retry: Retry | None = None,
176
- redis_connect_func: ConnectCallbackT | None = None,
177
- encoder_class: type[Encoder] = ...,
178
- credential_provider: CredentialProvider | None = None,
179
- ) -> None: ...
180
- def repr_pieces(self) -> list[tuple[str, Any]]: ...
181
-
182
- class SSLConnection(Connection):
183
- ssl_context: RedisSSLContext
184
- def __init__(
185
- self,
186
- ssl_keyfile: str | None = None,
187
- ssl_certfile: str | None = None,
188
- ssl_cert_reqs: _SSLVerifyMode = "required",
189
- ssl_ca_certs: str | None = None,
190
- ssl_ca_data: str | None = None,
191
- ssl_check_hostname: bool = False,
192
- *,
193
- # **kwargs forwarded to Connection.
194
- host: str = "localhost",
195
- port: str | int = 6379,
196
- socket_keepalive: bool = False,
197
- socket_keepalive_options: Mapping[int, int | bytes] | None = None,
198
- socket_type: int = 0,
199
- db: str | int = 0,
200
- password: str | None = None,
201
- socket_timeout: float | None = None,
202
- socket_connect_timeout: float | None = None,
203
- retry_on_timeout: bool = False,
204
- retry_on_error: list[type[RedisError]] | _Sentinel = ...,
205
- encoding: str = "utf-8",
206
- encoding_errors: str = "strict",
207
- decode_responses: bool = False,
208
- parser_class: type[BaseParser] = ...,
209
- socket_read_size: int = 65536,
210
- health_check_interval: float = 0,
211
- client_name: str | None = None,
212
- username: str | None = None,
213
- retry: Retry | None = None,
214
- redis_connect_func: ConnectCallbackT | None = None,
215
- encoder_class: type[Encoder] = ...,
216
- credential_provider: CredentialProvider | None = None,
217
- ) -> None: ...
218
- @property
219
- def keyfile(self) -> str | None: ...
220
- @property
221
- def certfile(self) -> str | None: ...
222
- @property
223
- def cert_reqs(self) -> ssl.VerifyMode: ...
224
- @property
225
- def ca_certs(self) -> str | None: ...
226
- @property
227
- def ca_data(self) -> str | None: ...
228
- @property
229
- def check_hostname(self) -> bool: ...
230
-
231
- class RedisSSLContext:
232
- keyfile: str | None
233
- certfile: str | None
234
- cert_reqs: ssl.VerifyMode
235
- ca_certs: str | None
236
- ca_data: str | None
237
- check_hostname: bool
238
- context: ssl.SSLContext | None
239
- def __init__(
240
- self,
241
- keyfile: str | None = None,
242
- certfile: str | None = None,
243
- cert_reqs: _SSLVerifyMode | None = None,
244
- ca_certs: str | None = None,
245
- ca_data: str | None = None,
246
- check_hostname: bool = False,
247
- ) -> None: ...
248
- def get(self) -> ssl.SSLContext: ...
249
-
250
- class UnixDomainSocketConnection(Connection):
251
- path: str
252
- def __init__(
253
- self,
254
- *,
255
- path: str = "",
256
- # **kwargs forwarded to AbstractConnection.
257
- db: str | int = 0,
258
- password: str | None = None,
259
- socket_timeout: float | None = None,
260
- socket_connect_timeout: float | None = None,
261
- retry_on_timeout: bool = False,
262
- retry_on_error: list[type[RedisError]] | _Sentinel = ...,
263
- encoding: str = "utf-8",
264
- encoding_errors: str = "strict",
265
- decode_responses: bool = False,
266
- parser_class: type[BaseParser] = ...,
267
- socket_read_size: int = 65536,
268
- health_check_interval: float = 0,
269
- client_name: str | None = None,
270
- username: str | None = None,
271
- retry: Retry | None = None,
272
- redis_connect_func: ConnectCallbackT | None = None,
273
- encoder_class: type[Encoder] = ...,
274
- credential_provider: CredentialProvider | None = None,
275
- ) -> None: ...
276
- def repr_pieces(self) -> list[tuple[str, Any]]: ...
277
-
278
- FALSE_STRINGS: Final[tuple[str, ...]]
279
-
280
- def to_bool(value: object) -> bool | None: ...
281
-
282
- URL_QUERY_ARGUMENT_PARSERS: MappingProxyType[str, Callable[[str], Any]]
283
-
284
- class ConnectKwargs(TypedDict):
285
- username: str
286
- password: str
287
- connection_class: type[AbstractConnection]
288
- host: str
289
- port: int
290
- db: int
291
- path: str
292
-
293
- def parse_url(url: str) -> ConnectKwargs: ...
294
-
295
- _ConnectionT = TypeVar("_ConnectionT", bound=AbstractConnection)
296
-
297
- class ConnectionPool(Generic[_ConnectionT]):
298
- # kwargs accepts all arguments from the connection class chosen for
299
- # the given URL, except those encoded in the URL itself.
300
- @classmethod
301
- def from_url(cls, url: str, **kwargs: Any) -> Self: ...
302
-
303
- connection_class: type[_ConnectionT]
304
- connection_kwargs: Mapping[str, Any]
305
- max_connections: int
306
- encoder_class: type[Encoder]
307
- pid: int
308
-
309
- @overload
310
- def __init__(
311
- self: ConnectionPool[_ConnectionT], # pyright: ignore[reportInvalidTypeVarUse] #11780
312
- connection_class: type[_ConnectionT],
313
- max_connections: int | None = None,
314
- # **kwargs are passed to the constructed connection instances.
315
- **connection_kwargs: Any,
316
- ) -> None: ...
317
- @overload
318
- def __init__(self: ConnectionPool[Connection], *, max_connections: int | None = None, **connection_kwargs) -> None: ...
319
- def reset(self) -> None: ...
320
- async def get_connection(self, command_name: Unused, *keys: Unused, **options: Unused) -> _ConnectionT: ...
321
- def get_encoder(self) -> Encoder: ...
322
- def make_connection(self) -> _ConnectionT: ...
323
- async def release(self, connection: AbstractConnection) -> None: ...
324
- def owns_connection(self, connection: AbstractConnection) -> bool: ...
325
- async def disconnect(self, inuse_connections: bool = True) -> None: ...
326
- def set_retry(self, retry: Retry) -> None: ...
327
-
328
- class BlockingConnectionPool(ConnectionPool[_ConnectionT]):
329
- queue_class: type[asyncio.Queue[_ConnectionT | None]]
330
- timeout: int | None
331
- pool: asyncio.Queue[_ConnectionT | None]
332
-
333
- @overload
334
- def __init__(
335
- self: BlockingConnectionPool[_ConnectionT], # pyright: ignore[reportInvalidTypeVarUse] #11780
336
- max_connections: int,
337
- timeout: int | None,
338
- connection_class: type[_ConnectionT],
339
- queue_class: type[asyncio.Queue[_ConnectionT | None]] = ...,
340
- # **kwargs are passed to the constructed connection instances.
341
- **connection_kwargs: Any,
342
- ) -> None: ...
343
- @overload
344
- def __init__(
345
- self: BlockingConnectionPool[_ConnectionT], # pyright: ignore[reportInvalidTypeVarUse] #11780
346
- max_connections: int = 50,
347
- timeout: int | None = 20,
348
- *,
349
- connection_class: type[_ConnectionT],
350
- queue_class: type[asyncio.Queue[_ConnectionT | None]] = ...,
351
- # **kwargs are passed to the constructed connection instances.
352
- **connection_kwargs: Any,
353
- ) -> None: ...
354
- @overload
355
- def __init__(
356
- self: BlockingConnectionPool[Connection],
357
- max_connections: int = 50,
358
- timeout: int | None = 20,
359
- *,
360
- queue_class: type[asyncio.Queue[Connection | None]] = ...,
361
- # **kwargs are passed to the constructed connection instances.
362
- **connection_kwargs: Any,
363
- ) -> None: ...
@@ -1,51 +0,0 @@
1
- import threading
2
- from collections.abc import Awaitable
3
- from types import SimpleNamespace, TracebackType
4
- from typing import Any, ClassVar
5
- from typing_extensions import Self
6
-
7
- from redis.asyncio import Redis
8
- from redis.commands.core import AsyncScript
9
-
10
- class Lock:
11
- lua_release: ClassVar[AsyncScript | None]
12
- lua_extend: ClassVar[AsyncScript | None]
13
- lua_reacquire: ClassVar[AsyncScript | None]
14
- LUA_RELEASE_SCRIPT: ClassVar[str]
15
- LUA_EXTEND_SCRIPT: ClassVar[str]
16
- LUA_REACQUIRE_SCRIPT: ClassVar[str]
17
- redis: Redis[Any]
18
- name: str | bytes | memoryview
19
- timeout: float | None
20
- sleep: float
21
- blocking: bool
22
- blocking_timeout: float | None
23
- thread_local: bool
24
- local: threading.local | SimpleNamespace
25
- def __init__(
26
- self,
27
- redis: Redis[Any],
28
- name: str | bytes | memoryview,
29
- timeout: float | None = None,
30
- sleep: float = 0.1,
31
- blocking: bool = True,
32
- blocking_timeout: float | None = None,
33
- thread_local: bool = True,
34
- ) -> None: ...
35
- def register_scripts(self) -> None: ...
36
- async def __aenter__(self) -> Self: ...
37
- async def __aexit__(
38
- self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
39
- ) -> None: ...
40
- async def acquire(
41
- self, blocking: bool | None = None, blocking_timeout: float | None = None, token: str | bytes | None = None
42
- ) -> bool: ...
43
- async def do_acquire(self, token: str | bytes) -> bool: ...
44
- async def locked(self) -> bool: ...
45
- async def owned(self) -> bool: ...
46
- def release(self) -> Awaitable[None]: ...
47
- async def do_release(self, expected_token: bytes) -> None: ...
48
- def extend(self, additional_time: float, replace_ttl: bool = False) -> Awaitable[bool]: ...
49
- async def do_extend(self, additional_time: float, replace_ttl: bool) -> bool: ...
50
- def reacquire(self) -> Awaitable[bool]: ...
51
- async def do_reacquire(self) -> bool: ...
@@ -1,9 +0,0 @@
1
- from _typeshed import Incomplete
2
- from typing import Any
3
-
4
- # TODO: define and use:
5
- # from redis.asyncio.cluster import ClusterNode
6
-
7
- class CommandsParser:
8
- async def initialize(self, node: Incomplete | None = None) -> None: ... # TODO: ClusterNode
9
- async def get_keys(self, *args: Any) -> tuple[str, ...] | None: ...
@@ -1,12 +0,0 @@
1
- from collections.abc import Awaitable, Callable, Iterable
2
- from typing import TypeVar
3
-
4
- from redis.backoff import AbstractBackoff
5
- from redis.exceptions import RedisError
6
-
7
- _T = TypeVar("_T")
8
-
9
- class Retry:
10
- def __init__(self, backoff: AbstractBackoff, retries: int, supported_errors: tuple[type[RedisError], ...] = ...) -> None: ...
11
- def update_supported_errors(self, specified_errors: Iterable[type[RedisError]]) -> None: ...
12
- async def call_with_retry(self, do: Callable[[], Awaitable[_T]], fail: Callable[[RedisError], Awaitable[object]]) -> _T: ...