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,1743 +0,0 @@
1
- import builtins
2
- from _typeshed import Incomplete, SupportsItems
3
- from collections.abc import AsyncIterator, Awaitable, Callable, Iterable, Iterator, Mapping, Sequence
4
- from datetime import datetime, timedelta
5
- from typing import Any, Generic, Literal, TypeVar, overload
6
-
7
- from ..asyncio.client import Redis as AsyncRedis
8
- from ..client import _CommandOptions, _Key, _Value
9
- from ..typing import ChannelT, EncodableT, KeyT, PatternT, ScriptTextT, StreamIdT
10
-
11
- _ScoreCastFuncReturn = TypeVar("_ScoreCastFuncReturn")
12
- _StrType = TypeVar("_StrType", bound=str | bytes)
13
-
14
- class ACLCommands(Generic[_StrType]):
15
- def acl_cat(self, category: str | None = None, **kwargs: _CommandOptions) -> list[str]: ...
16
- def acl_deluser(self, *username: str, **kwargs: _CommandOptions) -> int: ...
17
- def acl_genpass(self, bits: int | None = None, **kwargs: _CommandOptions) -> str: ...
18
- def acl_getuser(self, username: str, **kwargs: _CommandOptions) -> Any | None: ...
19
- def acl_help(self, **kwargs: _CommandOptions): ...
20
- def acl_list(self, **kwargs: _CommandOptions) -> list[str]: ...
21
- def acl_log(self, count: int | None = None, **kwargs: _CommandOptions): ...
22
- def acl_log_reset(self, **kwargs: _CommandOptions): ...
23
- def acl_load(self, **kwargs: _CommandOptions) -> bool: ...
24
- def acl_save(self, **kwargs: _CommandOptions): ...
25
- def acl_setuser(
26
- self,
27
- username: str,
28
- enabled: bool = False,
29
- nopass: bool = False,
30
- passwords: Sequence[str] | None = None,
31
- hashed_passwords: Sequence[str] | None = None,
32
- categories: Sequence[str] | None = None,
33
- commands: Sequence[str] | None = None,
34
- keys: Sequence[str] | None = None,
35
- channels: Iterable[ChannelT] | None = None,
36
- selectors: Iterable[tuple[str, KeyT]] | None = None,
37
- reset: bool = False,
38
- reset_keys: bool = False,
39
- reset_channels: bool = False,
40
- reset_passwords: bool = False,
41
- **kwargs: _CommandOptions,
42
- ) -> bool: ...
43
- def acl_users(self, **kwargs: _CommandOptions) -> list[str]: ...
44
- def acl_whoami(self, **kwargs: _CommandOptions) -> str: ...
45
-
46
- class AsyncACLCommands(Generic[_StrType]):
47
- async def acl_cat(self, category: str | None = None, **kwargs: _CommandOptions) -> list[str]: ...
48
- async def acl_deluser(self, *username: str, **kwargs: _CommandOptions) -> int: ...
49
- async def acl_genpass(self, bits: int | None = None, **kwargs: _CommandOptions) -> str: ...
50
- async def acl_getuser(self, username: str, **kwargs: _CommandOptions) -> Any | None: ...
51
- async def acl_help(self, **kwargs: _CommandOptions): ...
52
- async def acl_list(self, **kwargs: _CommandOptions) -> list[str]: ...
53
- async def acl_log(self, count: int | None = None, **kwargs: _CommandOptions): ...
54
- async def acl_log_reset(self, **kwargs: _CommandOptions): ...
55
- async def acl_load(self, **kwargs: _CommandOptions) -> bool: ...
56
- async def acl_save(self, **kwargs: _CommandOptions): ...
57
- async def acl_setuser(
58
- self,
59
- username: str,
60
- enabled: bool = False,
61
- nopass: bool = False,
62
- passwords: Sequence[str] | None = None,
63
- hashed_passwords: Sequence[str] | None = None,
64
- categories: Sequence[str] | None = None,
65
- commands: Sequence[str] | None = None,
66
- keys: Sequence[str] | None = None,
67
- channels: Iterable[ChannelT] | None = None,
68
- selectors: Iterable[tuple[str, KeyT]] | None = None,
69
- reset: bool = False,
70
- reset_keys: bool = False,
71
- reset_channels: bool = False,
72
- reset_passwords: bool = False,
73
- **kwargs: _CommandOptions,
74
- ) -> bool: ...
75
- async def acl_users(self, **kwargs: _CommandOptions) -> list[str]: ...
76
- async def acl_whoami(self, **kwargs: _CommandOptions) -> str: ...
77
-
78
- class ManagementCommands:
79
- def bgrewriteaof(self, **kwargs: _CommandOptions): ...
80
- def bgsave(self, schedule: bool = True, **kwargs: _CommandOptions): ...
81
- def role(self): ...
82
- def client_kill(self, address: str, **kwargs: _CommandOptions) -> bool: ...
83
- def client_kill_filter(
84
- self,
85
- _id: Incomplete | None = None,
86
- _type: Incomplete | None = None,
87
- addr: Incomplete | None = None,
88
- skipme: Incomplete | None = None,
89
- laddr: Incomplete | None = None,
90
- user: Incomplete | None = None,
91
- **kwargs: _CommandOptions,
92
- ): ...
93
- def client_info(self, **kwargs: _CommandOptions): ...
94
- def client_list(
95
- self, _type: str | None = None, client_id: list[str] = [], **kwargs: _CommandOptions
96
- ) -> list[dict[str, str]]: ...
97
- def client_getname(self, **kwargs: _CommandOptions) -> str | None: ...
98
- def client_getredir(self, **kwargs: _CommandOptions): ...
99
- def client_reply(self, reply, **kwargs: _CommandOptions): ...
100
- def client_id(self, **kwargs: _CommandOptions) -> int: ...
101
- def client_tracking_on(
102
- self,
103
- clientid: Incomplete | None = None,
104
- prefix=[],
105
- bcast: bool = False,
106
- optin: bool = False,
107
- optout: bool = False,
108
- noloop: bool = False,
109
- ): ...
110
- def client_tracking_off(
111
- self,
112
- clientid: Incomplete | None = None,
113
- prefix=[],
114
- bcast: bool = False,
115
- optin: bool = False,
116
- optout: bool = False,
117
- noloop: bool = False,
118
- ): ...
119
- def client_tracking(
120
- self,
121
- on: bool = True,
122
- clientid: Incomplete | None = None,
123
- prefix=[],
124
- bcast: bool = False,
125
- optin: bool = False,
126
- optout: bool = False,
127
- noloop: bool = False,
128
- **kwargs: _CommandOptions,
129
- ): ...
130
- def client_trackinginfo(self, **kwargs: _CommandOptions): ...
131
- def client_setname(self, name: str, **kwargs: _CommandOptions) -> bool: ...
132
- def client_unblock(self, client_id, error: bool = False, **kwargs: _CommandOptions): ...
133
- def client_pause(self, timeout, all: bool = True, **kwargs: _CommandOptions): ...
134
- def client_unpause(self, **kwargs: _CommandOptions): ...
135
- def client_no_evict(self, mode: str): ...
136
- def client_no_touch(self, mode: str): ...
137
- def command(self, **kwargs: _CommandOptions): ...
138
- def command_info(self, **kwargs: _CommandOptions): ...
139
- def command_count(self, **kwargs: _CommandOptions): ...
140
- def config_get(self, pattern: PatternT = "*", *args: PatternT, **kwargs: _CommandOptions): ...
141
- def config_set(self, name: KeyT, value: EncodableT, *args: KeyT | EncodableT, **kwargs: _CommandOptions): ...
142
- def config_resetstat(self, **kwargs: _CommandOptions): ...
143
- def config_rewrite(self, **kwargs: _CommandOptions): ...
144
- def dbsize(self, **kwargs: _CommandOptions) -> int: ...
145
- def debug_object(self, key, **kwargs: _CommandOptions): ...
146
- def debug_segfault(self, **kwargs: _CommandOptions): ...
147
- def echo(self, value: _Value, **kwargs: _CommandOptions) -> bytes: ...
148
- def flushall(self, asynchronous: bool = False, **kwargs: _CommandOptions) -> bool: ...
149
- def flushdb(self, asynchronous: bool = False, **kwargs: _CommandOptions) -> bool: ...
150
- def sync(self): ...
151
- def psync(self, replicationid, offset): ...
152
- def swapdb(self, first, second, **kwargs: _CommandOptions): ...
153
- def select(self, index, **kwargs: _CommandOptions): ...
154
- def info(self, section: _Key | None = None, *args: _Key, **kwargs: _CommandOptions) -> Mapping[str, Any]: ...
155
- def lastsave(self, **kwargs: _CommandOptions): ...
156
- def lolwut(self, *version_numbers: _Value, **kwargs: _CommandOptions) -> bytes: ...
157
- def reset(self) -> None: ...
158
- def migrate(
159
- self,
160
- host,
161
- port,
162
- keys,
163
- destination_db,
164
- timeout,
165
- copy: bool = False,
166
- replace: bool = False,
167
- auth: Incomplete | None = None,
168
- **kwargs: _CommandOptions,
169
- ): ...
170
- def object(self, infotype, key, **kwargs: _CommandOptions): ...
171
- def memory_doctor(self, **kwargs: _CommandOptions): ...
172
- def memory_help(self, **kwargs: _CommandOptions): ...
173
- def memory_stats(self, **kwargs: _CommandOptions) -> dict[str, Any]: ...
174
- def memory_malloc_stats(self, **kwargs: _CommandOptions): ...
175
- def memory_usage(self, key, samples: Incomplete | None = None, **kwargs: _CommandOptions): ...
176
- def memory_purge(self, **kwargs: _CommandOptions): ...
177
- def ping(self, **kwargs: _CommandOptions) -> bool: ...
178
- def quit(self, **kwargs: _CommandOptions): ...
179
- def replicaof(self, *args, **kwargs: _CommandOptions): ...
180
- def save(self, **kwargs: _CommandOptions) -> bool: ...
181
- def shutdown(
182
- self,
183
- save: bool = False,
184
- nosave: bool = False,
185
- now: bool = False,
186
- force: bool = False,
187
- abort: bool = False,
188
- **kwargs: _CommandOptions,
189
- ) -> None: ...
190
- def slaveof(self, host: Incomplete | None = None, port: Incomplete | None = None, **kwargs: _CommandOptions): ...
191
- def slowlog_get(self, num: Incomplete | None = None, **kwargs: _CommandOptions): ...
192
- def slowlog_len(self, **kwargs: _CommandOptions): ...
193
- def slowlog_reset(self, **kwargs: _CommandOptions): ...
194
- def time(self, **kwargs: _CommandOptions): ...
195
- def wait(self, num_replicas, timeout, **kwargs: _CommandOptions): ...
196
-
197
- class AsyncManagementCommands:
198
- async def bgrewriteaof(self, **kwargs: _CommandOptions): ...
199
- async def bgsave(self, schedule: bool = True, **kwargs: _CommandOptions): ...
200
- async def role(self): ...
201
- async def client_kill(self, address: str, **kwargs: _CommandOptions) -> bool: ...
202
- async def client_kill_filter(
203
- self,
204
- _id: Incomplete | None = None,
205
- _type: Incomplete | None = None,
206
- addr: Incomplete | None = None,
207
- skipme: Incomplete | None = None,
208
- laddr: Incomplete | None = None,
209
- user: Incomplete | None = None,
210
- **kwargs: _CommandOptions,
211
- ): ...
212
- async def client_info(self, **kwargs: _CommandOptions): ...
213
- async def client_list(
214
- self, _type: str | None = None, client_id: list[str] = [], **kwargs: _CommandOptions
215
- ) -> list[dict[str, str]]: ...
216
- async def client_getname(self, **kwargs: _CommandOptions) -> str | None: ...
217
- async def client_getredir(self, **kwargs: _CommandOptions): ...
218
- async def client_reply(self, reply, **kwargs: _CommandOptions): ...
219
- async def client_id(self, **kwargs: _CommandOptions) -> int: ...
220
- async def client_tracking_on(
221
- self,
222
- clientid: Incomplete | None = None,
223
- prefix=[],
224
- bcast: bool = False,
225
- optin: bool = False,
226
- optout: bool = False,
227
- noloop: bool = False,
228
- ): ...
229
- async def client_tracking_off(
230
- self,
231
- clientid: Incomplete | None = None,
232
- prefix=[],
233
- bcast: bool = False,
234
- optin: bool = False,
235
- optout: bool = False,
236
- noloop: bool = False,
237
- ): ...
238
- async def client_tracking(
239
- self,
240
- on: bool = True,
241
- clientid: Incomplete | None = None,
242
- prefix=[],
243
- bcast: bool = False,
244
- optin: bool = False,
245
- optout: bool = False,
246
- noloop: bool = False,
247
- **kwargs: _CommandOptions,
248
- ): ...
249
- async def client_trackinginfo(self, **kwargs: _CommandOptions): ...
250
- async def client_setname(self, name: str, **kwargs: _CommandOptions) -> bool: ...
251
- async def client_unblock(self, client_id, error: bool = False, **kwargs: _CommandOptions): ...
252
- async def client_pause(self, timeout, all: bool = True, **kwargs: _CommandOptions): ...
253
- async def client_unpause(self, **kwargs: _CommandOptions): ...
254
- async def command(self, **kwargs: _CommandOptions): ...
255
- async def command_info(self, **kwargs: _CommandOptions): ...
256
- async def command_count(self, **kwargs: _CommandOptions): ...
257
- async def config_get(self, pattern: PatternT = "*", *args: PatternT, **kwargs: _CommandOptions): ...
258
- async def config_set(self, name: KeyT, value: EncodableT, *args: KeyT | EncodableT, **kwargs: _CommandOptions): ...
259
- async def config_resetstat(self, **kwargs: _CommandOptions): ...
260
- async def config_rewrite(self, **kwargs: _CommandOptions): ...
261
- async def dbsize(self, **kwargs: _CommandOptions) -> int: ...
262
- async def debug_object(self, key, **kwargs: _CommandOptions): ...
263
- async def debug_segfault(self, **kwargs: _CommandOptions): ...
264
- async def echo(self, value: _Value, **kwargs: _CommandOptions) -> bytes: ...
265
- async def flushall(self, asynchronous: bool = False, **kwargs: _CommandOptions) -> bool: ...
266
- async def flushdb(self, asynchronous: bool = False, **kwargs: _CommandOptions) -> bool: ...
267
- async def sync(self): ...
268
- async def psync(self, replicationid, offset): ...
269
- async def swapdb(self, first, second, **kwargs: _CommandOptions): ...
270
- async def select(self, index, **kwargs: _CommandOptions): ...
271
- async def info(self, section: _Key | None = None, *args: _Key, **kwargs: _CommandOptions) -> Mapping[str, Any]: ...
272
- async def lastsave(self, **kwargs: _CommandOptions): ...
273
- async def lolwut(self, *version_numbers: _Value, **kwargs: _CommandOptions) -> bytes: ...
274
- async def reset(self) -> None: ...
275
- async def migrate(
276
- self,
277
- host,
278
- port,
279
- keys,
280
- destination_db,
281
- timeout,
282
- copy: bool = False,
283
- replace: bool = False,
284
- auth: Incomplete | None = None,
285
- **kwargs: _CommandOptions,
286
- ): ...
287
- async def object(self, infotype, key, **kwargs: _CommandOptions): ...
288
- async def memory_doctor(self, **kwargs: _CommandOptions): ...
289
- async def memory_help(self, **kwargs: _CommandOptions): ...
290
- async def memory_stats(self, **kwargs: _CommandOptions) -> dict[str, Any]: ...
291
- async def memory_malloc_stats(self, **kwargs: _CommandOptions): ...
292
- async def memory_usage(self, key, samples: Incomplete | None = None, **kwargs: _CommandOptions): ...
293
- async def memory_purge(self, **kwargs: _CommandOptions): ...
294
- async def ping(self, **kwargs: _CommandOptions) -> bool: ...
295
- async def quit(self, **kwargs: _CommandOptions): ...
296
- async def replicaof(self, *args, **kwargs: _CommandOptions): ...
297
- async def save(self, **kwargs: _CommandOptions) -> bool: ...
298
- async def shutdown(
299
- self,
300
- save: bool = False,
301
- nosave: bool = False,
302
- now: bool = False,
303
- force: bool = False,
304
- abort: bool = False,
305
- **kwargs: _CommandOptions,
306
- ) -> None: ...
307
- async def slaveof(self, host: Incomplete | None = None, port: Incomplete | None = None, **kwargs: _CommandOptions): ...
308
- async def slowlog_get(self, num: Incomplete | None = None, **kwargs: _CommandOptions): ...
309
- async def slowlog_len(self, **kwargs: _CommandOptions): ...
310
- async def slowlog_reset(self, **kwargs: _CommandOptions): ...
311
- async def time(self, **kwargs: _CommandOptions): ...
312
- async def wait(self, num_replicas, timeout, **kwargs: _CommandOptions): ...
313
-
314
- class BasicKeyCommands(Generic[_StrType]):
315
- def append(self, key, value): ...
316
- def bitcount(self, key: _Key, start: int | None = None, end: int | None = None, mode: str | None = None) -> int: ...
317
- def bitfield(self, key, default_overflow: Incomplete | None = None): ...
318
- def bitop(self, operation, dest, *keys): ...
319
- def bitpos(self, key: _Key, bit: int, start: int | None = None, end: int | None = None, mode: str | None = None): ...
320
- def copy(self, source, destination, destination_db: Incomplete | None = None, replace: bool = False): ...
321
- def decr(self, name, amount: int = 1) -> int: ...
322
- def decrby(self, name, amount: int = 1) -> int: ...
323
- def delete(self, *names: _Key) -> int: ...
324
- def __delitem__(self, name: _Key) -> None: ...
325
- def dump(self, name: _Key) -> _StrType | None: ...
326
- def exists(self, *names: _Key) -> int: ...
327
- __contains__ = exists
328
- def expire(
329
- self, name: _Key, time: int | timedelta, nx: bool = False, xx: bool = False, gt: bool = False, lt: bool = False
330
- ) -> bool: ...
331
- def expireat(self, name, when, nx: bool = False, xx: bool = False, gt: bool = False, lt: bool = False): ...
332
- def get(self, name: _Key) -> _StrType | None: ...
333
- def getdel(self, name: _Key) -> _StrType | None: ...
334
- def getex(
335
- self,
336
- name,
337
- ex: Incomplete | None = None,
338
- px: Incomplete | None = None,
339
- exat: Incomplete | None = None,
340
- pxat: Incomplete | None = None,
341
- persist: bool = False,
342
- ): ...
343
- def __getitem__(self, name: str): ...
344
- def getbit(self, name: _Key, offset: int) -> int: ...
345
- def getrange(self, key, start, end): ...
346
- def getset(self, name, value) -> _StrType | None: ...
347
- def incr(self, name: _Key, amount: int = 1) -> int: ...
348
- def incrby(self, name: _Key, amount: int = 1) -> int: ...
349
- def incrbyfloat(self, name: _Key, amount: float = 1.0) -> float: ...
350
- def keys(self, pattern: _Key = "*", **kwargs: _CommandOptions) -> list[_StrType]: ...
351
- def lmove(
352
- self,
353
- first_list: _Key,
354
- second_list: _Key,
355
- src: Literal["LEFT", "RIGHT"] = "LEFT",
356
- dest: Literal["LEFT", "RIGHT"] = "RIGHT",
357
- ) -> _Value: ...
358
- def blmove(
359
- self,
360
- first_list: _Key,
361
- second_list: _Key,
362
- timeout: float,
363
- src: Literal["LEFT", "RIGHT"] = "LEFT",
364
- dest: Literal["LEFT", "RIGHT"] = "RIGHT",
365
- ) -> _Value | None: ...
366
- def mget(self, keys: _Key | Iterable[_Key], *args: _Key) -> list[_StrType | None]: ...
367
- def mset(self, mapping: Mapping[_Key, _Value]) -> Literal[True]: ...
368
- def msetnx(self, mapping: Mapping[_Key, _Value]) -> bool: ...
369
- def move(self, name: _Key, db: int) -> bool: ...
370
- def persist(self, name: _Key) -> bool: ...
371
- def pexpire(
372
- self, name: _Key, time: int | timedelta, nx: bool = False, xx: bool = False, gt: bool = False, lt: bool = False
373
- ) -> Literal[1, 0]: ...
374
- def pexpireat(
375
- self, name: _Key, when: int | datetime, nx: bool = False, xx: bool = False, gt: bool = False, lt: bool = False
376
- ) -> Literal[1, 0]: ...
377
- def psetex(self, name, time_ms, value): ...
378
- def pttl(self, name: _Key) -> int: ...
379
- def hrandfield(self, key, count: Incomplete | None = None, withvalues: bool = False): ...
380
- def randomkey(self, **kwargs: _CommandOptions): ...
381
- def rename(self, src, dst): ...
382
- def renamenx(self, src, dst): ...
383
- def restore(
384
- self,
385
- name,
386
- ttl,
387
- value,
388
- replace: bool = False,
389
- absttl: bool = False,
390
- idletime: Incomplete | None = None,
391
- frequency: Incomplete | None = None,
392
- ): ...
393
- def set(
394
- self,
395
- name: _Key,
396
- value: _Value,
397
- ex: None | float | timedelta = None,
398
- px: None | float | timedelta = None,
399
- nx: bool = False,
400
- xx: bool = False,
401
- keepttl: bool = False,
402
- get: bool = False,
403
- exat: Incomplete | None = None,
404
- pxat: Incomplete | None = None,
405
- ) -> bool | None: ...
406
- def __setitem__(self, name, value) -> None: ...
407
- def setbit(self, name: _Key, offset: int, value: int) -> int: ...
408
- def setex(self, name: _Key, time: int | timedelta, value: _Value) -> bool: ...
409
- def setnx(self, name: _Key, value: _Value) -> bool: ...
410
- def setrange(self, name, offset, value): ...
411
- def stralgo(
412
- self,
413
- algo,
414
- value1,
415
- value2,
416
- specific_argument: str = "strings",
417
- len: bool = False,
418
- idx: bool = False,
419
- minmatchlen: Incomplete | None = None,
420
- withmatchlen: bool = False,
421
- **kwargs: _CommandOptions,
422
- ): ...
423
- def strlen(self, name): ...
424
- def substr(self, name, start, end: int = -1): ...
425
- def touch(self, *args): ...
426
- def ttl(self, name: _Key) -> int: ...
427
- def type(self, name): ...
428
- def watch(self, *names): ...
429
- def unwatch(self): ...
430
- def unlink(self, *names: _Key) -> int: ...
431
-
432
- class AsyncBasicKeyCommands(Generic[_StrType]):
433
- async def append(self, key, value): ...
434
- async def bitcount(self, key: _Key, start: int | None = None, end: int | None = None, mode: str | None = None) -> int: ...
435
- async def bitfield(self, key, default_overflow: Incomplete | None = None): ...
436
- async def bitop(self, operation, dest, *keys): ...
437
- async def bitpos(self, key: _Key, bit: int, start: int | None = None, end: int | None = None, mode: str | None = None): ...
438
- async def copy(self, source, destination, destination_db: Incomplete | None = None, replace: bool = False): ...
439
- async def decr(self, name, amount: int = 1) -> int: ...
440
- async def decrby(self, name, amount: int = 1) -> int: ...
441
- async def delete(self, *names: _Key) -> int: ...
442
- async def dump(self, name: _Key) -> _StrType | None: ...
443
- async def exists(self, *names: _Key) -> int: ...
444
- async def expire(
445
- self, name: _Key, time: int | timedelta, nx: bool = False, xx: bool = False, gt: bool = False, lt: bool = False
446
- ) -> bool: ...
447
- async def expireat(self, name, when, nx: bool = False, xx: bool = False, gt: bool = False, lt: bool = False): ...
448
- async def get(self, name: _Key) -> _StrType | None: ...
449
- async def getdel(self, name: _Key) -> _StrType | None: ...
450
- async def getex(
451
- self,
452
- name,
453
- ex: Incomplete | None = None,
454
- px: Incomplete | None = None,
455
- exat: Incomplete | None = None,
456
- pxat: Incomplete | None = None,
457
- persist: bool = False,
458
- ): ...
459
- async def getbit(self, name: _Key, offset: int) -> int: ...
460
- async def getrange(self, key, start, end): ...
461
- async def getset(self, name, value) -> _StrType | None: ...
462
- async def incr(self, name: _Key, amount: int = 1) -> int: ...
463
- async def incrby(self, name: _Key, amount: int = 1) -> int: ...
464
- async def incrbyfloat(self, name: _Key, amount: float = 1.0) -> float: ...
465
- async def keys(self, pattern: _Key = "*", **kwargs: _CommandOptions) -> list[_StrType]: ...
466
- async def lmove(
467
- self,
468
- first_list: _Key,
469
- second_list: _Key,
470
- src: Literal["LEFT", "RIGHT"] = "LEFT",
471
- dest: Literal["LEFT", "RIGHT"] = "RIGHT",
472
- ) -> _Value: ...
473
- async def blmove(
474
- self,
475
- first_list: _Key,
476
- second_list: _Key,
477
- timeout: float,
478
- src: Literal["LEFT", "RIGHT"] = "LEFT",
479
- dest: Literal["LEFT", "RIGHT"] = "RIGHT",
480
- ) -> _Value | None: ...
481
- async def mget(self, keys: _Key | Iterable[_Key], *args: _Key) -> list[_StrType | None]: ...
482
- async def mset(self, mapping: Mapping[_Key, _Value]) -> Literal[True]: ...
483
- async def msetnx(self, mapping: Mapping[_Key, _Value]) -> bool: ...
484
- async def move(self, name: _Key, db: int) -> bool: ...
485
- async def persist(self, name: _Key) -> bool: ...
486
- async def pexpire(
487
- self, name: _Key, time: int | timedelta, nx: bool = False, xx: bool = False, gt: bool = False, lt: bool = False
488
- ) -> Literal[1, 0]: ...
489
- async def pexpireat(
490
- self, name: _Key, when: int | datetime, nx: bool = False, xx: bool = False, gt: bool = False, lt: bool = False
491
- ) -> Literal[1, 0]: ...
492
- async def psetex(self, name, time_ms, value): ...
493
- async def pttl(self, name: _Key) -> int: ...
494
- async def hrandfield(self, key, count: Incomplete | None = None, withvalues: bool = False): ...
495
- async def randomkey(self, **kwargs: _CommandOptions): ...
496
- async def rename(self, src, dst): ...
497
- async def renamenx(self, src, dst): ...
498
- async def restore(
499
- self,
500
- name,
501
- ttl,
502
- value,
503
- replace: bool = False,
504
- absttl: bool = False,
505
- idletime: Incomplete | None = None,
506
- frequency: Incomplete | None = None,
507
- ): ...
508
- async def set(
509
- self,
510
- name: _Key,
511
- value: _Value,
512
- ex: None | float | timedelta = None,
513
- px: None | float | timedelta = None,
514
- nx: bool = False,
515
- xx: bool = False,
516
- keepttl: bool = False,
517
- get: bool = False,
518
- exat: Incomplete | None = None,
519
- pxat: Incomplete | None = None,
520
- ) -> bool | None: ...
521
- async def setbit(self, name: _Key, offset: int, value: int) -> int: ...
522
- async def setex(self, name: _Key, time: int | timedelta, value: _Value) -> bool: ...
523
- async def setnx(self, name: _Key, value: _Value) -> bool: ...
524
- async def setrange(self, name, offset, value): ...
525
- async def stralgo(
526
- self,
527
- algo,
528
- value1,
529
- value2,
530
- specific_argument: str = "strings",
531
- len: bool = False,
532
- idx: bool = False,
533
- minmatchlen: Incomplete | None = None,
534
- withmatchlen: bool = False,
535
- **kwargs: _CommandOptions,
536
- ): ...
537
- async def strlen(self, name): ...
538
- async def substr(self, name, start, end: int = -1): ...
539
- async def touch(self, *args): ...
540
- async def ttl(self, name: _Key) -> int: ...
541
- async def type(self, name): ...
542
- async def watch(self, *names): ...
543
- async def unwatch(self): ...
544
- async def unlink(self, *names: _Key) -> int: ...
545
- def __getitem__(self, name: str): ...
546
- def __setitem__(self, name, value) -> None: ...
547
- def __delitem__(self, name: _Key) -> None: ...
548
- def __contains__(self, name: _Key) -> None: ...
549
-
550
- class ListCommands(Generic[_StrType]):
551
- @overload
552
- def blpop(self, keys: _Value | Iterable[_Value], timeout: Literal[0] | None = 0) -> tuple[_StrType, _StrType]: ...
553
- @overload
554
- def blpop(self, keys: _Value | Iterable[_Value], timeout: float) -> tuple[_StrType, _StrType] | None: ...
555
- @overload
556
- def brpop(self, keys: _Value | Iterable[_Value], timeout: Literal[0] | None = 0) -> tuple[_StrType, _StrType]: ...
557
- @overload
558
- def brpop(self, keys: _Value | Iterable[_Value], timeout: float) -> tuple[_StrType, _StrType] | None: ...
559
- def brpoplpush(self, src, dst, timeout: int | None = 0): ...
560
- def lindex(self, name: _Key, index: int) -> _StrType | None: ...
561
- def linsert(
562
- self, name: _Key, where: Literal["BEFORE", "AFTER", "before", "after"], refvalue: _Value, value: _Value
563
- ) -> int: ...
564
- def llen(self, name: _Key) -> int: ...
565
- def lpop(self, name, count: int | None = None): ...
566
- def lpush(self, name: _Value, *values: _Value) -> int: ...
567
- def lpushx(self, name, value): ...
568
- def lrange(self, name: _Key, start: int, end: int) -> list[_StrType]: ...
569
- def lrem(self, name: _Key, count: int, value: _Value) -> int: ...
570
- def lset(self, name: _Key, index: int, value: _Value) -> bool: ...
571
- def ltrim(self, name: _Key, start: int, end: int) -> bool: ...
572
- def rpop(self, name, count: int | None = None): ...
573
- def rpoplpush(self, src, dst): ...
574
- def rpush(self, name: _Value, *values: _Value) -> int: ...
575
- def rpushx(self, name, value): ...
576
- def lpos(
577
- self, name, value, rank: Incomplete | None = None, count: Incomplete | None = None, maxlen: Incomplete | None = None
578
- ): ...
579
- @overload
580
- def sort(
581
- self,
582
- name: _Key,
583
- start: int | None = None,
584
- num: int | None = None,
585
- by: _Key | None = None,
586
- get: _Key | Sequence[_Key] | None = None,
587
- desc: bool = False,
588
- alpha: bool = False,
589
- store: None = None,
590
- groups: bool = False,
591
- ) -> list[_StrType]: ...
592
- @overload
593
- def sort(
594
- self,
595
- name: _Key,
596
- start: int | None = None,
597
- num: int | None = None,
598
- by: _Key | None = None,
599
- get: _Key | Sequence[_Key] | None = None,
600
- desc: bool = False,
601
- alpha: bool = False,
602
- *,
603
- store: _Key,
604
- groups: bool = False,
605
- ) -> int: ...
606
- @overload
607
- def sort(
608
- self,
609
- name: _Key,
610
- start: int | None,
611
- num: int | None,
612
- by: _Key | None,
613
- get: _Key | Sequence[_Key] | None,
614
- desc: bool,
615
- alpha: bool,
616
- store: _Key,
617
- groups: bool = False,
618
- ) -> int: ...
619
-
620
- class AsyncListCommands(Generic[_StrType]):
621
- @overload
622
- async def blpop(self, keys: _Value | Iterable[_Value], timeout: Literal[0] | None = 0) -> tuple[_StrType, _StrType]: ...
623
- @overload
624
- async def blpop(self, keys: _Value | Iterable[_Value], timeout: float) -> tuple[_StrType, _StrType] | None: ...
625
- @overload
626
- async def brpop(self, keys: _Value | Iterable[_Value], timeout: Literal[0] | None = 0) -> tuple[_StrType, _StrType]: ...
627
- @overload
628
- async def brpop(self, keys: _Value | Iterable[_Value], timeout: float) -> tuple[_StrType, _StrType] | None: ...
629
- async def brpoplpush(self, src, dst, timeout: int | None = 0): ...
630
- async def lindex(self, name: _Key, index: int) -> _StrType | None: ...
631
- async def linsert(
632
- self, name: _Key, where: Literal["BEFORE", "AFTER", "before", "after"], refvalue: _Value, value: _Value
633
- ) -> int: ...
634
- async def llen(self, name: _Key) -> int: ...
635
- async def lpop(self, name, count: int | None = None): ...
636
- async def lpush(self, name: _Value, *values: _Value) -> int: ...
637
- async def lpushx(self, name, value): ...
638
- async def lrange(self, name: _Key, start: int, end: int) -> list[_StrType]: ...
639
- async def lrem(self, name: _Key, count: int, value: _Value) -> int: ...
640
- async def lset(self, name: _Key, index: int, value: _Value) -> bool: ...
641
- async def ltrim(self, name: _Key, start: int, end: int) -> bool: ...
642
- async def rpop(self, name, count: int | None = None): ...
643
- async def rpoplpush(self, src, dst): ...
644
- async def rpush(self, name: _Value, *values: _Value) -> int: ...
645
- async def rpushx(self, name, value): ...
646
- async def lpos(
647
- self, name, value, rank: Incomplete | None = None, count: Incomplete | None = None, maxlen: Incomplete | None = None
648
- ): ...
649
- @overload
650
- async def sort(
651
- self,
652
- name: _Key,
653
- start: int | None = None,
654
- num: int | None = None,
655
- by: _Key | None = None,
656
- get: _Key | Sequence[_Key] | None = None,
657
- desc: bool = False,
658
- alpha: bool = False,
659
- store: None = None,
660
- groups: bool = False,
661
- ) -> list[_StrType]: ...
662
- @overload
663
- async def sort(
664
- self,
665
- name: _Key,
666
- start: int | None = None,
667
- num: int | None = None,
668
- by: _Key | None = None,
669
- get: _Key | Sequence[_Key] | None = None,
670
- desc: bool = False,
671
- alpha: bool = False,
672
- *,
673
- store: _Key,
674
- groups: bool = False,
675
- ) -> int: ...
676
- @overload
677
- async def sort(
678
- self,
679
- name: _Key,
680
- start: int | None,
681
- num: int | None,
682
- by: _Key | None,
683
- get: _Key | Sequence[_Key] | None,
684
- desc: bool,
685
- alpha: bool,
686
- store: _Key,
687
- groups: bool = False,
688
- ) -> int: ...
689
-
690
- class ScanCommands(Generic[_StrType]):
691
- def scan(
692
- self,
693
- cursor: int = 0,
694
- match: _Key | None = None,
695
- count: int | None = None,
696
- _type: str | None = None,
697
- **kwargs: _CommandOptions,
698
- ) -> tuple[int, list[_StrType]]: ...
699
- def scan_iter(
700
- self, match: _Key | None = None, count: int | None = None, _type: str | None = None, **kwargs: _CommandOptions
701
- ) -> Iterator[_StrType]: ...
702
- def sscan(
703
- self, name: _Key, cursor: int = 0, match: _Key | None = None, count: int | None = None
704
- ) -> tuple[int, list[_StrType]]: ...
705
- def sscan_iter(self, name: _Key, match: _Key | None = None, count: int | None = None) -> Iterator[_StrType]: ...
706
- def hscan(
707
- self, name: _Key, cursor: int = 0, match: _Key | None = None, count: int | None = None
708
- ) -> tuple[int, dict[_StrType, _StrType]]: ...
709
- def hscan_iter(
710
- self, name: _Key, match: _Key | None = None, count: int | None = None
711
- ) -> Iterator[tuple[_StrType, _StrType]]: ...
712
- @overload
713
- def zscan(
714
- self, name: _Key, cursor: int = 0, match: _Key | None = None, count: int | None = None
715
- ) -> tuple[int, list[tuple[_StrType, float]]]: ...
716
- @overload
717
- def zscan(
718
- self,
719
- name: _Key,
720
- cursor: int = 0,
721
- match: _Key | None = None,
722
- count: int | None = None,
723
- *,
724
- score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
725
- ) -> tuple[int, list[tuple[_StrType, _ScoreCastFuncReturn]]]: ...
726
- @overload
727
- def zscan(
728
- self,
729
- name: _Key,
730
- cursor: int,
731
- match: _Key | None,
732
- count: int | None,
733
- score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
734
- ) -> tuple[int, list[tuple[_StrType, _ScoreCastFuncReturn]]]: ...
735
- @overload
736
- def zscan_iter(self, name: _Key, match: _Key | None = None, count: int | None = None) -> Iterator[tuple[_StrType, float]]: ...
737
- @overload
738
- def zscan_iter(
739
- self,
740
- name: _Key,
741
- match: _Key | None = None,
742
- count: int | None = None,
743
- *,
744
- score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
745
- ) -> Iterator[tuple[_StrType, _ScoreCastFuncReturn]]: ...
746
- @overload
747
- def zscan_iter(
748
- self, name: _Key, match: _Key | None, count: int | None, score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn]
749
- ) -> Iterator[tuple[_StrType, _ScoreCastFuncReturn]]: ...
750
-
751
- class AsyncScanCommands(Generic[_StrType]):
752
- async def scan(
753
- self,
754
- cursor: int = 0,
755
- match: _Key | None = None,
756
- count: int | None = None,
757
- _type: str | None = None,
758
- **kwargs: _CommandOptions,
759
- ) -> tuple[int, list[_StrType]]: ...
760
- def scan_iter(
761
- self, match: _Key | None = None, count: int | None = None, _type: str | None = None, **kwargs: _CommandOptions
762
- ) -> AsyncIterator[_StrType]: ...
763
- async def sscan(
764
- self, name: _Key, cursor: int = 0, match: _Key | None = None, count: int | None = None
765
- ) -> tuple[int, list[_StrType]]: ...
766
- def sscan_iter(self, name: _Key, match: _Key | None = None, count: int | None = None) -> AsyncIterator[_StrType]: ...
767
- async def hscan(
768
- self, name: _Key, cursor: int = 0, match: _Key | None = None, count: int | None = None
769
- ) -> tuple[int, dict[_StrType, _StrType]]: ...
770
- def hscan_iter(
771
- self, name: _Key, match: _Key | None = None, count: int | None = None
772
- ) -> AsyncIterator[tuple[_StrType, _StrType]]: ...
773
- @overload
774
- async def zscan(
775
- self, name: _Key, cursor: int = 0, match: _Key | None = None, count: int | None = None
776
- ) -> tuple[int, list[tuple[_StrType, float]]]: ...
777
- @overload
778
- async def zscan(
779
- self,
780
- name: _Key,
781
- cursor: int = 0,
782
- match: _Key | None = None,
783
- count: int | None = None,
784
- *,
785
- score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
786
- ) -> tuple[int, list[tuple[_StrType, _ScoreCastFuncReturn]]]: ...
787
- @overload
788
- async def zscan(
789
- self,
790
- name: _Key,
791
- cursor: int,
792
- match: _Key | None,
793
- count: int | None,
794
- score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
795
- ) -> tuple[int, list[tuple[_StrType, _ScoreCastFuncReturn]]]: ...
796
- @overload
797
- def zscan_iter(
798
- self, name: _Key, match: _Key | None = None, count: int | None = None
799
- ) -> AsyncIterator[tuple[_StrType, float]]: ...
800
- @overload
801
- def zscan_iter(
802
- self,
803
- name: _Key,
804
- match: _Key | None = None,
805
- count: int | None = None,
806
- *,
807
- score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
808
- ) -> AsyncIterator[tuple[_StrType, _ScoreCastFuncReturn]]: ...
809
- @overload
810
- def zscan_iter(
811
- self, name: _Key, match: _Key | None, count: int | None, score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn]
812
- ) -> AsyncIterator[tuple[_StrType, _ScoreCastFuncReturn]]: ...
813
-
814
- class SetCommands(Generic[_StrType]):
815
- def sadd(self, name: _Key, *values: _Value) -> int: ...
816
- def scard(self, name: _Key) -> int: ...
817
- def sdiff(self, keys: _Key | Iterable[_Key], *args: _Key) -> builtins.set[_Value]: ...
818
- def sdiffstore(self, dest: _Key, keys: _Key | Iterable[_Key], *args: _Key) -> int: ...
819
- def sinter(self, keys: _Key | Iterable[_Key], *args: _Key) -> builtins.set[_Value]: ...
820
- def sinterstore(self, dest: _Key, keys: _Key | Iterable[_Key], *args: _Key) -> int: ...
821
- def sismember(self, name: _Key, value: _Value) -> bool: ...
822
- def smembers(self, name: _Key) -> builtins.set[_StrType]: ...
823
- def smismember(self, name, values, *args): ...
824
- def smove(self, src: _Key, dst: _Key, value: _Value) -> bool: ...
825
- @overload
826
- def spop(self, name: _Key, count: None = None) -> _Value | None: ...
827
- @overload
828
- def spop(self, name: _Key, count: int) -> list[_Value]: ...
829
- @overload
830
- def srandmember(self, name: _Key, number: None = None) -> _Value | None: ...
831
- @overload
832
- def srandmember(self, name: _Key, number: int) -> list[_Value]: ...
833
- def srem(self, name: _Key, *values: _Value) -> int: ...
834
- def sunion(self, keys: _Key | Iterable[_Key], *args: _Key) -> builtins.set[_Value]: ...
835
- def sunionstore(self, dest: _Key, keys: _Key | Iterable[_Key], *args: _Key) -> int: ...
836
-
837
- class AsyncSetCommands(Generic[_StrType]):
838
- async def sadd(self, name: _Key, *values: _Value) -> int: ...
839
- async def scard(self, name: _Key) -> int: ...
840
- async def sdiff(self, keys: _Key | Iterable[_Key], *args: _Key) -> builtins.set[_Value]: ...
841
- async def sdiffstore(self, dest: _Key, keys: _Key | Iterable[_Key], *args: _Key) -> int: ...
842
- async def sinter(self, keys: _Key | Iterable[_Key], *args: _Key) -> builtins.set[_Value]: ...
843
- async def sinterstore(self, dest: _Key, keys: _Key | Iterable[_Key], *args: _Key) -> int: ...
844
- async def sismember(self, name: _Key, value: _Value) -> bool: ...
845
- async def smembers(self, name: _Key) -> builtins.set[_StrType]: ...
846
- async def smismember(self, name, values, *args): ...
847
- async def smove(self, src: _Key, dst: _Key, value: _Value) -> bool: ...
848
- @overload
849
- async def spop(self, name: _Key, count: None = None) -> _Value | None: ...
850
- @overload
851
- async def spop(self, name: _Key, count: int) -> list[_Value]: ...
852
- @overload
853
- async def srandmember(self, name: _Key, number: None = None) -> _Value | None: ...
854
- @overload
855
- async def srandmember(self, name: _Key, number: int) -> list[_Value]: ...
856
- async def srem(self, name: _Key, *values: _Value) -> int: ...
857
- async def sunion(self, keys: _Key | Iterable[_Key], *args: _Key) -> builtins.set[_Value]: ...
858
- async def sunionstore(self, dest: _Key, keys: _Key | Iterable[_Key], *args: _Key) -> int: ...
859
-
860
- class StreamCommands:
861
- def xack(self, name, groupname, *ids): ...
862
- def xadd(
863
- self,
864
- name: KeyT,
865
- # Only accepts dict objects, but for variance reasons we use a looser annotation
866
- fields: SupportsItems[bytes | memoryview | str | float, Any],
867
- id: str | int | bytes | memoryview = "*",
868
- maxlen=None,
869
- approximate: bool = True,
870
- nomkstream: bool = False,
871
- minid: Incomplete | None = None,
872
- limit: Incomplete | None = None,
873
- ): ...
874
- def xautoclaim(
875
- self,
876
- name,
877
- groupname,
878
- consumername,
879
- min_idle_time,
880
- start_id: StreamIdT = "0-0",
881
- count: Incomplete | None = None,
882
- justid: bool = False,
883
- ): ...
884
- def xclaim(
885
- self,
886
- name,
887
- groupname,
888
- consumername,
889
- min_idle_time,
890
- message_ids,
891
- idle=None,
892
- time=None,
893
- retrycount=None,
894
- force=False,
895
- justid=False,
896
- ): ...
897
- def xdel(self, name: KeyT, *ids: str | int | bytes | memoryview): ...
898
- def xgroup_create(self, name, groupname, id: str = "$", mkstream: bool = False, entries_read: int | None = None): ...
899
- def xgroup_delconsumer(self, name, groupname, consumername): ...
900
- def xgroup_destroy(self, name, groupname): ...
901
- def xgroup_createconsumer(self, name, groupname, consumername): ...
902
- def xgroup_setid(self, name, groupname, id, entries_read: int | None = None): ...
903
- def xinfo_consumers(self, name, groupname): ...
904
- def xinfo_groups(self, name): ...
905
- def xinfo_stream(self, name, full: bool = False): ...
906
- def xlen(self, name: _Key) -> int: ...
907
- def xpending(self, name, groupname): ...
908
- def xpending_range(
909
- self, name: _Key, groupname, min, max, count: int, consumername: Incomplete | None = None, idle: int | None = None
910
- ): ...
911
- def xrange(self, name, min: str = "-", max: str = "+", count: Incomplete | None = None): ...
912
- def xread(self, streams, count: Incomplete | None = None, block: Incomplete | None = None): ...
913
- def xreadgroup(
914
- self,
915
- groupname,
916
- consumername,
917
- streams,
918
- count: Incomplete | None = None,
919
- block: Incomplete | None = None,
920
- noack: bool = False,
921
- ): ...
922
- def xrevrange(self, name, max: str = "+", min: str = "-", count: Incomplete | None = None): ...
923
- def xtrim(
924
- self, name, maxlen: int | None = None, approximate: bool = True, minid: Incomplete | None = None, limit: int | None = None
925
- ): ...
926
-
927
- class AsyncStreamCommands:
928
- async def xack(self, name, groupname, *ids): ...
929
- async def xadd(
930
- self,
931
- name: KeyT,
932
- # Only accepts dict objects, but for variance reasons we use a looser annotation
933
- fields: SupportsItems[bytes | memoryview | str | float, Any],
934
- id: str | int | bytes | memoryview = "*",
935
- maxlen=None,
936
- approximate: bool = True,
937
- nomkstream: bool = False,
938
- minid: Incomplete | None = None,
939
- limit: Incomplete | None = None,
940
- ): ...
941
- async def xautoclaim(
942
- self,
943
- name,
944
- groupname,
945
- consumername,
946
- min_idle_time,
947
- start_id: StreamIdT = "0-0",
948
- count: Incomplete | None = None,
949
- justid: bool = False,
950
- ): ...
951
- async def xclaim(
952
- self,
953
- name,
954
- groupname,
955
- consumername,
956
- min_idle_time,
957
- message_ids,
958
- idle=None,
959
- time=None,
960
- retrycount=None,
961
- force=False,
962
- justid=False,
963
- ): ...
964
- async def xdel(self, name: KeyT, *ids: str | int | bytes | memoryview): ...
965
- async def xgroup_create(self, name, groupname, id: str = "$", mkstream: bool = False, entries_read: int | None = None): ...
966
- async def xgroup_delconsumer(self, name, groupname, consumername): ...
967
- async def xgroup_destroy(self, name, groupname): ...
968
- async def xgroup_createconsumer(self, name, groupname, consumername): ...
969
- async def xgroup_setid(self, name, groupname, id, entries_read: int | None = None): ...
970
- async def xinfo_consumers(self, name, groupname): ...
971
- async def xinfo_groups(self, name): ...
972
- async def xinfo_stream(self, name, full: bool = False): ...
973
- async def xlen(self, name: _Key) -> int: ...
974
- async def xpending(self, name, groupname): ...
975
- async def xpending_range(
976
- self, name: _Key, groupname, min, max, count: int, consumername: Incomplete | None = None, idle: int | None = None
977
- ): ...
978
- async def xrange(self, name, min: str = "-", max: str = "+", count: Incomplete | None = None): ...
979
- async def xread(self, streams, count: Incomplete | None = None, block: Incomplete | None = None): ...
980
- async def xreadgroup(
981
- self,
982
- groupname,
983
- consumername,
984
- streams,
985
- count: Incomplete | None = None,
986
- block: Incomplete | None = None,
987
- noack: bool = False,
988
- ): ...
989
- async def xrevrange(self, name, max: str = "+", min: str = "-", count: Incomplete | None = None): ...
990
- async def xtrim(
991
- self, name, maxlen: int | None = None, approximate: bool = True, minid: Incomplete | None = None, limit: int | None = None
992
- ): ...
993
-
994
- class SortedSetCommands(Generic[_StrType]):
995
- def zadd(
996
- self,
997
- name: _Key,
998
- mapping: Mapping[_Key, _Value],
999
- nx: bool = False,
1000
- xx: bool = False,
1001
- ch: bool = False,
1002
- incr: bool = False,
1003
- gt: Incomplete | None = False,
1004
- lt: Incomplete | None = False,
1005
- ) -> int: ...
1006
- def zcard(self, name: _Key) -> int: ...
1007
- def zcount(self, name: _Key, min: _Value, max: _Value) -> int: ...
1008
- def zdiff(self, keys, withscores: bool = False): ...
1009
- def zdiffstore(self, dest, keys): ...
1010
- def zincrby(self, name: _Key, amount: float, value: _Value) -> float: ...
1011
- def zinter(self, keys, aggregate: Incomplete | None = None, withscores: bool = False): ...
1012
- def zinterstore(self, dest: _Key, keys: Iterable[_Key], aggregate: Literal["SUM", "MIN", "MAX"] | None = None) -> int: ...
1013
- def zlexcount(self, name: _Key, min: _Value, max: _Value) -> int: ...
1014
- def zpopmax(self, name: _Key, count: int | None = None) -> list[tuple[_StrType, float]]: ...
1015
- def zpopmin(self, name: _Key, count: int | None = None) -> list[tuple[_StrType, float]]: ...
1016
- def zrandmember(self, key, count: Incomplete | None = None, withscores: bool = False): ...
1017
- @overload
1018
- def bzpopmax(self, keys: _Key | Iterable[_Key], timeout: Literal[0] = 0) -> tuple[_StrType, _StrType, float]: ...
1019
- @overload
1020
- def bzpopmax(self, keys: _Key | Iterable[_Key], timeout: float) -> tuple[_StrType, _StrType, float] | None: ...
1021
- @overload
1022
- def bzpopmin(self, keys: _Key | Iterable[_Key], timeout: Literal[0] = 0) -> tuple[_StrType, _StrType, float]: ...
1023
- @overload
1024
- def bzpopmin(self, keys: _Key | Iterable[_Key], timeout: float) -> tuple[_StrType, _StrType, float] | None: ...
1025
- @overload
1026
- def zrange( # type: ignore[overload-overlap]
1027
- self,
1028
- name: _Key,
1029
- start: int,
1030
- end: int,
1031
- desc: bool,
1032
- withscores: Literal[True],
1033
- score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
1034
- byscore: bool = False,
1035
- bylex: bool = False,
1036
- offset: int | None = None,
1037
- num: int | None = None,
1038
- ) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
1039
- @overload
1040
- def zrange( # type: ignore[overload-overlap]
1041
- self,
1042
- name: _Key,
1043
- start: int,
1044
- end: int,
1045
- desc: bool,
1046
- withscores: Literal[True],
1047
- score_cast_func: Callable[[_StrType], float] = ...,
1048
- byscore: bool = False,
1049
- bylex: bool = False,
1050
- offset: int | None = None,
1051
- num: int | None = None,
1052
- ) -> list[tuple[_StrType, float]]: ...
1053
- @overload
1054
- def zrange( # type: ignore[overload-overlap]
1055
- self,
1056
- name: _Key,
1057
- start: int,
1058
- end: int,
1059
- *,
1060
- withscores: Literal[True],
1061
- score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
1062
- byscore: bool = False,
1063
- bylex: bool = False,
1064
- offset: int | None = None,
1065
- num: int | None = None,
1066
- ) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
1067
- @overload
1068
- def zrange( # type: ignore[overload-overlap]
1069
- self,
1070
- name: _Key,
1071
- start: int,
1072
- end: int,
1073
- *,
1074
- withscores: Literal[True],
1075
- score_cast_func: Callable[[_StrType], float] = ...,
1076
- byscore: bool = False,
1077
- bylex: bool = False,
1078
- offset: int | None = None,
1079
- num: int | None = None,
1080
- ) -> list[tuple[_StrType, float]]: ...
1081
- @overload
1082
- def zrange(
1083
- self,
1084
- name: _Key,
1085
- start: int,
1086
- end: int,
1087
- desc: bool = False,
1088
- withscores: bool = False,
1089
- score_cast_func: Callable[[_StrType], Any] = ...,
1090
- byscore: bool = False,
1091
- bylex: bool = False,
1092
- offset: int | None = None,
1093
- num: int | None = None,
1094
- ) -> list[_StrType]: ...
1095
- @overload
1096
- def zrevrange(
1097
- self,
1098
- name: _Key,
1099
- start: int,
1100
- end: int,
1101
- withscores: Literal[True],
1102
- score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
1103
- ) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
1104
- @overload
1105
- def zrevrange( # type: ignore[overload-overlap]
1106
- self, name: _Key, start: int, end: int, withscores: Literal[True]
1107
- ) -> list[tuple[_StrType, float]]: ...
1108
- @overload
1109
- def zrevrange(
1110
- self, name: _Key, start: int, end: int, withscores: bool = False, score_cast_func: Callable[[Any], Any] = ...
1111
- ) -> list[_StrType]: ...
1112
- def zrangestore(
1113
- self,
1114
- dest,
1115
- name,
1116
- start,
1117
- end,
1118
- byscore: bool = False,
1119
- bylex: bool = False,
1120
- desc: bool = False,
1121
- offset: Incomplete | None = None,
1122
- num: Incomplete | None = None,
1123
- ): ...
1124
- def zrangebylex(
1125
- self, name: _Key, min: _Value, max: _Value, start: int | None = None, num: int | None = None
1126
- ) -> list[_StrType]: ...
1127
- def zrevrangebylex(
1128
- self, name: _Key, max: _Value, min: _Value, start: int | None = None, num: int | None = None
1129
- ) -> list[_StrType]: ...
1130
- @overload
1131
- def zrangebyscore( # type: ignore[overload-overlap]
1132
- self,
1133
- name: _Key,
1134
- min: _Value,
1135
- max: _Value,
1136
- start: int | None = None,
1137
- num: int | None = None,
1138
- *,
1139
- withscores: Literal[True],
1140
- score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
1141
- ) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
1142
- @overload
1143
- def zrangebyscore( # type: ignore[overload-overlap]
1144
- self, name: _Key, min: _Value, max: _Value, start: int | None = None, num: int | None = None, *, withscores: Literal[True]
1145
- ) -> list[tuple[_StrType, float]]: ...
1146
- @overload
1147
- def zrangebyscore(
1148
- self,
1149
- name: _Key,
1150
- min: _Value,
1151
- max: _Value,
1152
- start: int | None = None,
1153
- num: int | None = None,
1154
- withscores: bool = False,
1155
- score_cast_func: Callable[[_StrType], Any] = ...,
1156
- ) -> list[_StrType]: ...
1157
- @overload
1158
- def zrevrangebyscore( # type: ignore[overload-overlap]
1159
- self,
1160
- name: _Key,
1161
- max: _Value,
1162
- min: _Value,
1163
- start: int | None = None,
1164
- num: int | None = None,
1165
- *,
1166
- withscores: Literal[True],
1167
- score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
1168
- ) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
1169
- @overload
1170
- def zrevrangebyscore( # type: ignore[overload-overlap]
1171
- self, name: _Key, max: _Value, min: _Value, start: int | None = None, num: int | None = None, *, withscores: Literal[True]
1172
- ) -> list[tuple[_StrType, float]]: ...
1173
- @overload
1174
- def zrevrangebyscore(
1175
- self,
1176
- name: _Key,
1177
- max: _Value,
1178
- min: _Value,
1179
- start: int | None = None,
1180
- num: int | None = None,
1181
- withscores: bool = False,
1182
- score_cast_func: Callable[[_StrType], Any] = ...,
1183
- ) -> list[_StrType]: ...
1184
- def zrank(self, name: _Key, value: _Value, withscore: bool = False) -> int | None: ...
1185
- def zrem(self, name: _Key, *values: _Value) -> int: ...
1186
- def zremrangebylex(self, name: _Key, min: _Value, max: _Value) -> int: ...
1187
- def zremrangebyrank(self, name: _Key, min: int, max: int) -> int: ...
1188
- def zremrangebyscore(self, name: _Key, min: _Value, max: _Value) -> int: ...
1189
- def zrevrank(self, name: _Key, value: _Value, withscore: bool = False) -> int | None: ...
1190
- def zscore(self, name: _Key, value: _Value) -> float | None: ...
1191
- def zunion(self, keys, aggregate: Incomplete | None = None, withscores: bool = False): ...
1192
- def zunionstore(self, dest: _Key, keys: Iterable[_Key], aggregate: Literal["SUM", "MIN", "MAX"] | None = None) -> int: ...
1193
- def zmscore(self, key, members): ...
1194
-
1195
- class AsyncSortedSetCommands(Generic[_StrType]):
1196
- async def zadd(
1197
- self,
1198
- name: _Key,
1199
- mapping: Mapping[_Key, _Value],
1200
- nx: bool = False,
1201
- xx: bool = False,
1202
- ch: bool = False,
1203
- incr: bool = False,
1204
- gt: Incomplete | None = False,
1205
- lt: Incomplete | None = False,
1206
- ) -> int: ...
1207
- async def zcard(self, name: _Key) -> int: ...
1208
- async def zcount(self, name: _Key, min: _Value, max: _Value) -> int: ...
1209
- async def zdiff(self, keys, withscores: bool = False): ...
1210
- async def zdiffstore(self, dest, keys): ...
1211
- async def zincrby(self, name: _Key, amount: float, value: _Value) -> float: ...
1212
- async def zinter(self, keys, aggregate: Incomplete | None = None, withscores: bool = False): ...
1213
- async def zinterstore(
1214
- self, dest: _Key, keys: Iterable[_Key], aggregate: Literal["SUM", "MIN", "MAX"] | None = None
1215
- ) -> int: ...
1216
- async def zlexcount(self, name: _Key, min: _Value, max: _Value) -> int: ...
1217
- async def zpopmax(self, name: _Key, count: int | None = None) -> list[tuple[_StrType, float]]: ...
1218
- async def zpopmin(self, name: _Key, count: int | None = None) -> list[tuple[_StrType, float]]: ...
1219
- async def zrandmember(self, key, count: Incomplete | None = None, withscores: bool = False): ...
1220
- @overload
1221
- async def bzpopmax(self, keys: _Key | Iterable[_Key], timeout: Literal[0] = 0) -> tuple[_StrType, _StrType, float]: ...
1222
- @overload
1223
- async def bzpopmax(self, keys: _Key | Iterable[_Key], timeout: float) -> tuple[_StrType, _StrType, float] | None: ...
1224
- @overload
1225
- async def bzpopmin(self, keys: _Key | Iterable[_Key], timeout: Literal[0] = 0) -> tuple[_StrType, _StrType, float]: ...
1226
- @overload
1227
- async def bzpopmin(self, keys: _Key | Iterable[_Key], timeout: float) -> tuple[_StrType, _StrType, float] | None: ...
1228
- @overload
1229
- async def zrange( # type: ignore[overload-overlap]
1230
- self,
1231
- name: _Key,
1232
- start: int,
1233
- end: int,
1234
- desc: bool,
1235
- withscores: Literal[True],
1236
- score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
1237
- byscore: bool = False,
1238
- bylex: bool = False,
1239
- offset: int | None = None,
1240
- num: int | None = None,
1241
- ) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
1242
- @overload
1243
- async def zrange( # type: ignore[overload-overlap]
1244
- self,
1245
- name: _Key,
1246
- start: int,
1247
- end: int,
1248
- desc: bool,
1249
- withscores: Literal[True],
1250
- score_cast_func: Callable[[_StrType], float] = ...,
1251
- byscore: bool = False,
1252
- bylex: bool = False,
1253
- offset: int | None = None,
1254
- num: int | None = None,
1255
- ) -> list[tuple[_StrType, float]]: ...
1256
- @overload
1257
- async def zrange( # type: ignore[overload-overlap]
1258
- self,
1259
- name: _Key,
1260
- start: int,
1261
- end: int,
1262
- desc: bool = False,
1263
- *,
1264
- withscores: Literal[True],
1265
- score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
1266
- byscore: bool = False,
1267
- bylex: bool = False,
1268
- offset: int | None = None,
1269
- num: int | None = None,
1270
- ) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
1271
- @overload
1272
- async def zrange( # type: ignore[overload-overlap]
1273
- self,
1274
- name: _Key,
1275
- start: int,
1276
- end: int,
1277
- desc: bool = False,
1278
- *,
1279
- withscores: Literal[True],
1280
- score_cast_func: Callable[[_StrType], float] = ...,
1281
- byscore: bool = False,
1282
- bylex: bool = False,
1283
- offset: int | None = None,
1284
- num: int | None = None,
1285
- ) -> list[tuple[_StrType, float]]: ...
1286
- @overload
1287
- async def zrange(
1288
- self,
1289
- name: _Key,
1290
- start: int,
1291
- end: int,
1292
- desc: bool = False,
1293
- withscores: bool = False,
1294
- score_cast_func: Callable[[_StrType], Any] = ...,
1295
- byscore: bool = False,
1296
- bylex: bool = False,
1297
- offset: int | None = None,
1298
- num: int | None = None,
1299
- ) -> list[_StrType]: ...
1300
- @overload
1301
- async def zrevrange(
1302
- self,
1303
- name: _Key,
1304
- start: int,
1305
- end: int,
1306
- withscores: Literal[True],
1307
- score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
1308
- ) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
1309
- @overload
1310
- async def zrevrange( # type: ignore[overload-overlap]
1311
- self, name: _Key, start: int, end: int, withscores: Literal[True]
1312
- ) -> list[tuple[_StrType, float]]: ...
1313
- @overload
1314
- async def zrevrange(
1315
- self, name: _Key, start: int, end: int, withscores: bool = False, score_cast_func: Callable[[Any], Any] = ...
1316
- ) -> list[_StrType]: ...
1317
- async def zrangestore(
1318
- self,
1319
- dest,
1320
- name,
1321
- start,
1322
- end,
1323
- byscore: bool = False,
1324
- bylex: bool = False,
1325
- desc: bool = False,
1326
- offset: Incomplete | None = None,
1327
- num: Incomplete | None = None,
1328
- ): ...
1329
- async def zrangebylex(
1330
- self, name: _Key, min: _Value, max: _Value, start: int | None = None, num: int | None = None
1331
- ) -> list[_StrType]: ...
1332
- async def zrevrangebylex(
1333
- self, name: _Key, max: _Value, min: _Value, start: int | None = None, num: int | None = None
1334
- ) -> list[_StrType]: ...
1335
- @overload
1336
- async def zrangebyscore( # type: ignore[overload-overlap]
1337
- self,
1338
- name: _Key,
1339
- min: _Value,
1340
- max: _Value,
1341
- start: int | None = None,
1342
- num: int | None = None,
1343
- *,
1344
- withscores: Literal[True],
1345
- score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
1346
- ) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
1347
- @overload
1348
- async def zrangebyscore( # type: ignore[overload-overlap]
1349
- self, name: _Key, min: _Value, max: _Value, start: int | None = None, num: int | None = None, *, withscores: Literal[True]
1350
- ) -> list[tuple[_StrType, float]]: ...
1351
- @overload
1352
- async def zrangebyscore(
1353
- self,
1354
- name: _Key,
1355
- min: _Value,
1356
- max: _Value,
1357
- start: int | None = None,
1358
- num: int | None = None,
1359
- withscores: bool = False,
1360
- score_cast_func: Callable[[_StrType], Any] = ...,
1361
- ) -> list[_StrType]: ...
1362
- @overload
1363
- async def zrevrangebyscore( # type: ignore[overload-overlap]
1364
- self,
1365
- name: _Key,
1366
- max: _Value,
1367
- min: _Value,
1368
- start: int | None = None,
1369
- num: int | None = None,
1370
- *,
1371
- withscores: Literal[True],
1372
- score_cast_func: Callable[[_StrType], _ScoreCastFuncReturn],
1373
- ) -> list[tuple[_StrType, _ScoreCastFuncReturn]]: ...
1374
- @overload
1375
- async def zrevrangebyscore( # type: ignore[overload-overlap]
1376
- self, name: _Key, max: _Value, min: _Value, start: int | None = None, num: int | None = None, *, withscores: Literal[True]
1377
- ) -> list[tuple[_StrType, float]]: ...
1378
- @overload
1379
- async def zrevrangebyscore(
1380
- self,
1381
- name: _Key,
1382
- max: _Value,
1383
- min: _Value,
1384
- start: int | None = None,
1385
- num: int | None = None,
1386
- withscores: bool = False,
1387
- score_cast_func: Callable[[_StrType], Any] = ...,
1388
- ) -> list[_StrType]: ...
1389
- async def zrank(self, name: _Key, value: _Value, withscore: bool = False) -> int | None: ...
1390
- async def zrem(self, name: _Key, *values: _Value) -> int: ...
1391
- async def zremrangebylex(self, name: _Key, min: _Value, max: _Value) -> int: ...
1392
- async def zremrangebyrank(self, name: _Key, min: int, max: int) -> int: ...
1393
- async def zremrangebyscore(self, name: _Key, min: _Value, max: _Value) -> int: ...
1394
- async def zrevrank(self, name: _Key, value: _Value, withscore: bool = False) -> int | None: ...
1395
- async def zscore(self, name: _Key, value: _Value) -> float | None: ...
1396
- async def zunion(self, keys, aggregate: Incomplete | None = None, withscores: bool = False): ...
1397
- async def zunionstore(
1398
- self, dest: _Key, keys: Iterable[_Key], aggregate: Literal["SUM", "MIN", "MAX"] | None = None
1399
- ) -> int: ...
1400
- async def zmscore(self, key, members): ...
1401
-
1402
- class HyperlogCommands:
1403
- def pfadd(self, name: _Key, *values: _Value) -> int: ...
1404
- def pfcount(self, name: _Key) -> int: ...
1405
- def pfmerge(self, dest: _Key, *sources: _Key) -> bool: ...
1406
-
1407
- class AsyncHyperlogCommands:
1408
- async def pfadd(self, name: _Key, *values: _Value) -> int: ...
1409
- async def pfcount(self, name: _Key) -> int: ...
1410
- async def pfmerge(self, dest: _Key, *sources: _Key) -> bool: ...
1411
-
1412
- class HashCommands(Generic[_StrType]):
1413
- def hdel(self, name: _Key, *keys: _Key) -> int: ...
1414
- def hexists(self, name: _Key, key: _Key) -> bool: ...
1415
- def hget(self, name: _Key, key: _Key) -> _StrType | None: ...
1416
- def hgetall(self, name: _Key) -> dict[_StrType, _StrType]: ...
1417
- def hincrby(self, name: _Key, key: _Key, amount: int = 1) -> int: ...
1418
- def hincrbyfloat(self, name: _Key, key: _Key, amount: float = 1.0) -> float: ...
1419
- def hkeys(self, name: _Key) -> list[_StrType]: ...
1420
- def hlen(self, name: _Key) -> int: ...
1421
- @overload
1422
- def hset(
1423
- self, name: _Key, key: _Key, value: _Value, mapping: Mapping[_Key, _Value] | None = None, items: Incomplete | None = None
1424
- ) -> int: ...
1425
- @overload
1426
- def hset(
1427
- self, name: _Key, key: None, value: None, mapping: Mapping[_Key, _Value], items: Incomplete | None = None
1428
- ) -> int: ...
1429
- @overload
1430
- def hset(self, name: _Key, *, mapping: Mapping[_Key, _Value], items: Incomplete | None = None) -> int: ...
1431
- def hsetnx(self, name: _Key, key: _Key, value: _Value) -> int: ...
1432
- def hmset(self, name: _Key, mapping: Mapping[_Key, _Value]) -> bool: ...
1433
- def hmget(self, name: _Key, keys: _Key | Iterable[_Key], *args: _Key) -> list[_StrType | None]: ...
1434
- def hvals(self, name: _Key) -> list[_StrType]: ...
1435
- def hstrlen(self, name, key): ...
1436
-
1437
- class AsyncHashCommands(Generic[_StrType]):
1438
- async def hdel(self, name: _Key, *keys: _Key) -> int: ...
1439
- async def hexists(self, name: _Key, key: _Key) -> bool: ...
1440
- async def hget(self, name: _Key, key: _Key) -> _StrType | None: ...
1441
- async def hgetall(self, name: _Key) -> dict[_StrType, _StrType]: ...
1442
- async def hincrby(self, name: _Key, key: _Key, amount: int = 1) -> int: ...
1443
- async def hincrbyfloat(self, name: _Key, key: _Key, amount: float = 1.0) -> float: ...
1444
- async def hkeys(self, name: _Key) -> list[_StrType]: ...
1445
- async def hlen(self, name: _Key) -> int: ...
1446
- @overload
1447
- async def hset(
1448
- self, name: _Key, key: _Key, value: _Value, mapping: Mapping[_Key, _Value] | None = None, items: Incomplete | None = None
1449
- ) -> int: ...
1450
- @overload
1451
- async def hset(
1452
- self, name: _Key, key: None, value: None, mapping: Mapping[_Key, _Value], items: Incomplete | None = None
1453
- ) -> int: ...
1454
- @overload
1455
- async def hset(self, name: _Key, *, mapping: Mapping[_Key, _Value], items: Incomplete | None = None) -> int: ...
1456
- async def hsetnx(self, name: _Key, key: _Key, value: _Value) -> int: ...
1457
- async def hmset(self, name: _Key, mapping: Mapping[_Key, _Value]) -> bool: ...
1458
- async def hmget(self, name: _Key, keys: _Key | Iterable[_Key], *args: _Key) -> list[_StrType | None]: ...
1459
- async def hvals(self, name: _Key) -> list[_StrType]: ...
1460
- async def hstrlen(self, name, key): ...
1461
-
1462
- class AsyncScript:
1463
- def __init__(self, registered_client: AsyncRedis[Any], script: ScriptTextT) -> None: ...
1464
- async def __call__(
1465
- self, keys: Sequence[KeyT] | None = None, args: Iterable[EncodableT] | None = None, client: AsyncRedis[Any] | None = None
1466
- ): ...
1467
-
1468
- class PubSubCommands:
1469
- def publish(self, channel: _Key, message: _Key, **kwargs: _CommandOptions) -> int: ...
1470
- def pubsub_channels(self, pattern: _Key = "*", **kwargs: _CommandOptions) -> list[str]: ...
1471
- def pubsub_numpat(self, **kwargs: _CommandOptions) -> int: ...
1472
- def pubsub_numsub(self, *args: _Key, **kwargs: _CommandOptions) -> list[tuple[str, int]]: ...
1473
-
1474
- class AsyncPubSubCommands:
1475
- async def publish(self, channel: _Key, message: _Key, **kwargs: _CommandOptions) -> int: ...
1476
- async def pubsub_channels(self, pattern: _Key = "*", **kwargs: _CommandOptions) -> list[str]: ...
1477
- async def pubsub_numpat(self, **kwargs: _CommandOptions) -> int: ...
1478
- async def pubsub_numsub(self, *args: _Key, **kwargs: _CommandOptions) -> list[tuple[str, int]]: ...
1479
-
1480
- class ScriptCommands(Generic[_StrType]):
1481
- def eval(self, script, numkeys, *keys_and_args): ...
1482
- def evalsha(self, sha, numkeys, *keys_and_args): ...
1483
- def script_exists(self, *args): ...
1484
- def script_debug(self, *args): ...
1485
- def script_flush(self, sync_type: Incomplete | None = None): ...
1486
- def script_kill(self): ...
1487
- def script_load(self, script): ...
1488
- def register_script(self, script: str | _StrType) -> Script: ...
1489
-
1490
- class AsyncScriptCommands(Generic[_StrType]):
1491
- async def eval(self, script, numkeys, *keys_and_args): ...
1492
- async def evalsha(self, sha, numkeys, *keys_and_args): ...
1493
- async def script_exists(self, *args): ...
1494
- async def script_debug(self, *args): ...
1495
- async def script_flush(self, sync_type: Incomplete | None = None): ...
1496
- async def script_kill(self): ...
1497
- async def script_load(self, script): ...
1498
- def register_script(self, script: ScriptTextT) -> AsyncScript: ...
1499
-
1500
- class GeoCommands:
1501
- def geoadd(self, name, values, nx: bool = False, xx: bool = False, ch: bool = False): ...
1502
- def geodist(self, name, place1, place2, unit: Incomplete | None = None): ...
1503
- def geohash(self, name, *values): ...
1504
- def geopos(self, name, *values): ...
1505
- def georadius(
1506
- self,
1507
- name,
1508
- longitude,
1509
- latitude,
1510
- radius,
1511
- unit: Incomplete | None = None,
1512
- withdist: bool = False,
1513
- withcoord: bool = False,
1514
- withhash: bool = False,
1515
- count: Incomplete | None = None,
1516
- sort: Incomplete | None = None,
1517
- store: Incomplete | None = None,
1518
- store_dist: Incomplete | None = None,
1519
- any: bool = False,
1520
- ): ...
1521
- def georadiusbymember(
1522
- self,
1523
- name,
1524
- member,
1525
- radius,
1526
- unit: Incomplete | None = None,
1527
- withdist: bool = False,
1528
- withcoord: bool = False,
1529
- withhash: bool = False,
1530
- count: Incomplete | None = None,
1531
- sort: Incomplete | None = None,
1532
- store: Incomplete | None = None,
1533
- store_dist: Incomplete | None = None,
1534
- any: bool = False,
1535
- ): ...
1536
- def geosearch(
1537
- self,
1538
- name,
1539
- member: Incomplete | None = None,
1540
- longitude: Incomplete | None = None,
1541
- latitude: Incomplete | None = None,
1542
- unit: str = "m",
1543
- radius: Incomplete | None = None,
1544
- width: Incomplete | None = None,
1545
- height: Incomplete | None = None,
1546
- sort: Incomplete | None = None,
1547
- count: Incomplete | None = None,
1548
- any: bool = False,
1549
- withcoord: bool = False,
1550
- withdist: bool = False,
1551
- withhash: bool = False,
1552
- ): ...
1553
- def geosearchstore(
1554
- self,
1555
- dest,
1556
- name,
1557
- member: Incomplete | None = None,
1558
- longitude: Incomplete | None = None,
1559
- latitude: Incomplete | None = None,
1560
- unit: str = "m",
1561
- radius: Incomplete | None = None,
1562
- width: Incomplete | None = None,
1563
- height: Incomplete | None = None,
1564
- sort: Incomplete | None = None,
1565
- count: Incomplete | None = None,
1566
- any: bool = False,
1567
- storedist: bool = False,
1568
- ): ...
1569
-
1570
- class AsyncGeoCommands:
1571
- async def geoadd(self, name, values, nx: bool = False, xx: bool = False, ch: bool = False): ...
1572
- async def geodist(self, name, place1, place2, unit: Incomplete | None = None): ...
1573
- async def geohash(self, name, *values): ...
1574
- async def geopos(self, name, *values): ...
1575
- async def georadius(
1576
- self,
1577
- name,
1578
- longitude,
1579
- latitude,
1580
- radius,
1581
- unit: Incomplete | None = None,
1582
- withdist: bool = False,
1583
- withcoord: bool = False,
1584
- withhash: bool = False,
1585
- count: Incomplete | None = None,
1586
- sort: Incomplete | None = None,
1587
- store: Incomplete | None = None,
1588
- store_dist: Incomplete | None = None,
1589
- any: bool = False,
1590
- ): ...
1591
- async def georadiusbymember(
1592
- self,
1593
- name,
1594
- member,
1595
- radius,
1596
- unit: Incomplete | None = None,
1597
- withdist: bool = False,
1598
- withcoord: bool = False,
1599
- withhash: bool = False,
1600
- count: Incomplete | None = None,
1601
- sort: Incomplete | None = None,
1602
- store: Incomplete | None = None,
1603
- store_dist: Incomplete | None = None,
1604
- any: bool = False,
1605
- ): ...
1606
- async def geosearch(
1607
- self,
1608
- name,
1609
- member: Incomplete | None = None,
1610
- longitude: Incomplete | None = None,
1611
- latitude: Incomplete | None = None,
1612
- unit: str = "m",
1613
- radius: Incomplete | None = None,
1614
- width: Incomplete | None = None,
1615
- height: Incomplete | None = None,
1616
- sort: Incomplete | None = None,
1617
- count: Incomplete | None = None,
1618
- any: bool = False,
1619
- withcoord: bool = False,
1620
- withdist: bool = False,
1621
- withhash: bool = False,
1622
- ): ...
1623
- async def geosearchstore(
1624
- self,
1625
- dest,
1626
- name,
1627
- member: Incomplete | None = None,
1628
- longitude: Incomplete | None = None,
1629
- latitude: Incomplete | None = None,
1630
- unit: str = "m",
1631
- radius: Incomplete | None = None,
1632
- width: Incomplete | None = None,
1633
- height: Incomplete | None = None,
1634
- sort: Incomplete | None = None,
1635
- count: Incomplete | None = None,
1636
- any: bool = False,
1637
- storedist: bool = False,
1638
- ): ...
1639
-
1640
- class ModuleCommands:
1641
- def module_load(self, path, *args): ...
1642
- def module_unload(self, name): ...
1643
- def module_list(self): ...
1644
- def command_info(self): ...
1645
- def command_count(self): ...
1646
- def command_getkeys(self, *args): ...
1647
- def command(self): ...
1648
-
1649
- class Script:
1650
- def __init__(self, registered_client, script) -> None: ...
1651
- def __call__(self, keys=[], args=[], client: Incomplete | None = None): ...
1652
-
1653
- class BitFieldOperation:
1654
- def __init__(self, client, key, default_overflow: Incomplete | None = None): ...
1655
- def reset(self) -> None: ...
1656
- def overflow(self, overflow): ...
1657
- def incrby(self, fmt, offset, increment, overflow: Incomplete | None = None): ...
1658
- def get(self, fmt, offset): ...
1659
- def set(self, fmt, offset, value): ...
1660
- @property
1661
- def command(self): ...
1662
- def execute(self): ...
1663
-
1664
- class AsyncModuleCommands(ModuleCommands):
1665
- async def command_info(self) -> None: ...
1666
-
1667
- class ClusterCommands:
1668
- def cluster(self, cluster_arg: str, *args, **kwargs: _CommandOptions): ...
1669
- def readwrite(self, **kwargs: _CommandOptions) -> bool: ...
1670
- def readonly(self, **kwargs: _CommandOptions) -> bool: ...
1671
-
1672
- class AsyncClusterCommands:
1673
- async def cluster(self, cluster_arg: str, *args, **kwargs: _CommandOptions): ...
1674
- async def readwrite(self, **kwargs: _CommandOptions) -> bool: ...
1675
- async def readonly(self, **kwargs: _CommandOptions) -> bool: ...
1676
-
1677
- class FunctionCommands:
1678
- def function_load(self, code: str, replace: bool | None = False) -> Awaitable[str] | str: ...
1679
- def function_delete(self, library: str) -> Awaitable[str] | str: ...
1680
- def function_flush(self, mode: str = "SYNC") -> Awaitable[str] | str: ...
1681
- def function_list(self, library: str | None = "*", withcode: bool | None = False) -> Awaitable[list[Any]] | list[Any]: ...
1682
- def fcall(self, function, numkeys: int, *keys_and_args: list[Any] | None) -> Awaitable[str] | str: ...
1683
- def fcall_ro(self, function, numkeys: int, *keys_and_args: list[Any] | None) -> Awaitable[str] | str: ...
1684
- def function_dump(self) -> Awaitable[str] | str: ...
1685
- def function_restore(self, payload: str, policy: str | None = "APPEND") -> Awaitable[str] | str: ...
1686
- def function_kill(self) -> Awaitable[str] | str: ...
1687
- def function_stats(self) -> Awaitable[list[Any]] | list[Any]: ...
1688
-
1689
- class AsyncFunctionCommands:
1690
- async def function_load(self, code: str, replace: bool | None = False) -> Awaitable[str] | str: ...
1691
- async def function_delete(self, library: str) -> Awaitable[str] | str: ...
1692
- async def function_flush(self, mode: str = "SYNC") -> Awaitable[str] | str: ...
1693
- async def function_list(
1694
- self, library: str | None = "*", withcode: bool | None = False
1695
- ) -> Awaitable[list[Any]] | list[Any]: ...
1696
- async def fcall(self, function, numkeys: int, *keys_and_args: list[Any] | None) -> Awaitable[str] | str: ...
1697
- async def fcall_ro(self, function, numkeys: int, *keys_and_args: list[Any] | None) -> Awaitable[str] | str: ...
1698
- async def function_dump(self) -> Awaitable[str] | str: ...
1699
- async def function_restore(self, payload: str, policy: str | None = "APPEND") -> Awaitable[str] | str: ...
1700
- async def function_kill(self) -> Awaitable[str] | str: ...
1701
- async def function_stats(self) -> Awaitable[list[Any]] | list[Any]: ...
1702
-
1703
- class DataAccessCommands(
1704
- BasicKeyCommands[_StrType],
1705
- HyperlogCommands,
1706
- HashCommands[_StrType],
1707
- GeoCommands,
1708
- ListCommands[_StrType],
1709
- ScanCommands[_StrType],
1710
- SetCommands[_StrType],
1711
- StreamCommands,
1712
- SortedSetCommands[_StrType],
1713
- ): ...
1714
- class AsyncDataAccessCommands(
1715
- AsyncBasicKeyCommands[_StrType],
1716
- AsyncHyperlogCommands,
1717
- AsyncHashCommands[_StrType],
1718
- AsyncGeoCommands,
1719
- AsyncListCommands[_StrType],
1720
- AsyncScanCommands[_StrType],
1721
- AsyncSetCommands[_StrType],
1722
- AsyncStreamCommands,
1723
- AsyncSortedSetCommands[_StrType],
1724
- ): ...
1725
- class CoreCommands(
1726
- ACLCommands[_StrType],
1727
- ClusterCommands,
1728
- DataAccessCommands[_StrType],
1729
- ManagementCommands,
1730
- ModuleCommands,
1731
- PubSubCommands,
1732
- ScriptCommands[_StrType],
1733
- ): ...
1734
- class AsyncCoreCommands(
1735
- AsyncACLCommands[_StrType],
1736
- AsyncClusterCommands,
1737
- AsyncDataAccessCommands[_StrType],
1738
- AsyncManagementCommands,
1739
- AsyncModuleCommands,
1740
- AsyncPubSubCommands,
1741
- AsyncScriptCommands[_StrType],
1742
- AsyncFunctionCommands,
1743
- ): ...