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
@@ -0,0 +1,39 @@
1
+ from _typeshed import Incomplete
2
+
3
+ from authlib.oauth1 import ClientAuth
4
+
5
+ class OAuth1Client:
6
+ auth_class: type[ClientAuth] = ...
7
+ session: Incomplete
8
+ auth: Incomplete
9
+ def __init__(
10
+ self,
11
+ session,
12
+ client_id,
13
+ client_secret: Incomplete | None = None,
14
+ token: Incomplete | None = None,
15
+ token_secret: Incomplete | None = None,
16
+ redirect_uri: Incomplete | None = None,
17
+ rsa_key: Incomplete | None = None,
18
+ verifier: Incomplete | None = None,
19
+ signature_method="HMAC-SHA1",
20
+ signature_type="HEADER",
21
+ force_include_body: bool = False,
22
+ realm: Incomplete | None = None,
23
+ **kwargs,
24
+ ) -> None: ...
25
+ @property
26
+ def redirect_uri(self): ...
27
+ @redirect_uri.setter
28
+ def redirect_uri(self, uri) -> None: ...
29
+ @property
30
+ def token(self): ...
31
+ @token.setter
32
+ def token(self, token) -> None: ...
33
+ def create_authorization_url(self, url, request_token: Incomplete | None = None, **kwargs): ...
34
+ def fetch_request_token(self, url, **kwargs): ...
35
+ def fetch_access_token(self, url, verifier: Incomplete | None = None, **kwargs): ...
36
+ def parse_authorization_response(self, url): ...
37
+ def parse_response_token(self, status_code, text): ...
38
+ @staticmethod
39
+ def handle_error(error_type, error_description) -> None: ...
@@ -0,0 +1 @@
1
+ from authlib.oauth1.rfc5849.errors import *
@@ -0,0 +1,35 @@
1
+ from .authorization_server import AuthorizationServer as AuthorizationServer
2
+ from .client_auth import ClientAuth as ClientAuth
3
+ from .models import (
4
+ ClientMixin as ClientMixin,
5
+ TemporaryCredential as TemporaryCredential,
6
+ TemporaryCredentialMixin as TemporaryCredentialMixin,
7
+ TokenCredentialMixin as TokenCredentialMixin,
8
+ )
9
+ from .resource_protector import ResourceProtector as ResourceProtector
10
+ from .signature import (
11
+ SIGNATURE_HMAC_SHA1 as SIGNATURE_HMAC_SHA1,
12
+ SIGNATURE_PLAINTEXT as SIGNATURE_PLAINTEXT,
13
+ SIGNATURE_RSA_SHA1 as SIGNATURE_RSA_SHA1,
14
+ SIGNATURE_TYPE_BODY as SIGNATURE_TYPE_BODY,
15
+ SIGNATURE_TYPE_HEADER as SIGNATURE_TYPE_HEADER,
16
+ SIGNATURE_TYPE_QUERY as SIGNATURE_TYPE_QUERY,
17
+ )
18
+ from .wrapper import OAuth1Request as OAuth1Request
19
+
20
+ __all__ = [
21
+ "OAuth1Request",
22
+ "ClientAuth",
23
+ "SIGNATURE_HMAC_SHA1",
24
+ "SIGNATURE_RSA_SHA1",
25
+ "SIGNATURE_PLAINTEXT",
26
+ "SIGNATURE_TYPE_HEADER",
27
+ "SIGNATURE_TYPE_QUERY",
28
+ "SIGNATURE_TYPE_BODY",
29
+ "ClientMixin",
30
+ "TemporaryCredentialMixin",
31
+ "TokenCredentialMixin",
32
+ "TemporaryCredential",
33
+ "AuthorizationServer",
34
+ "ResourceProtector",
35
+ ]
@@ -0,0 +1,21 @@
1
+ from _typeshed import Incomplete
2
+
3
+ from authlib.oauth1.rfc5849.base_server import BaseServer
4
+
5
+ class AuthorizationServer(BaseServer):
6
+ TOKEN_RESPONSE_HEADER: Incomplete
7
+ TEMPORARY_CREDENTIALS_METHOD: str
8
+ def create_oauth1_request(self, request) -> None: ...
9
+ def handle_response(self, status_code, payload, headers) -> None: ...
10
+ def handle_error_response(self, error): ...
11
+ def validate_temporary_credentials_request(self, request): ...
12
+ def create_temporary_credentials_response(self, request: Incomplete | None = None): ...
13
+ def validate_authorization_request(self, request): ...
14
+ def create_authorization_response(self, request, grant_user: Incomplete | None = None): ...
15
+ def validate_token_request(self, request): ...
16
+ def create_token_response(self, request): ...
17
+ def create_temporary_credential(self, request) -> None: ...
18
+ def get_temporary_credential(self, request) -> None: ...
19
+ def delete_temporary_credential(self, request) -> None: ...
20
+ def create_authorization_verifier(self, request) -> None: ...
21
+ def create_token_credential(self, request) -> None: ...
@@ -0,0 +1,12 @@
1
+ from _typeshed import Incomplete
2
+
3
+ class BaseServer:
4
+ SIGNATURE_METHODS: Incomplete
5
+ SUPPORTED_SIGNATURE_METHODS: Incomplete
6
+ EXPIRY_TIME: int
7
+ @classmethod
8
+ def register_signature_method(cls, name, verify) -> None: ...
9
+ def validate_timestamp_and_nonce(self, request) -> None: ...
10
+ def validate_oauth_signature(self, request) -> None: ...
11
+ def get_client_by_id(self, client_id) -> None: ...
12
+ def exists_nonce(self, nonce, request) -> None: ...
@@ -0,0 +1,41 @@
1
+ from _typeshed import Incomplete
2
+
3
+ CONTENT_TYPE_FORM_URLENCODED: str
4
+ CONTENT_TYPE_MULTI_PART: str
5
+
6
+ class ClientAuth:
7
+ SIGNATURE_METHODS: Incomplete
8
+ @classmethod
9
+ def register_signature_method(cls, name, sign) -> None: ...
10
+ client_id: Incomplete
11
+ client_secret: Incomplete
12
+ token: Incomplete
13
+ token_secret: Incomplete
14
+ redirect_uri: Incomplete
15
+ signature_method: Incomplete
16
+ signature_type: Incomplete
17
+ rsa_key: Incomplete
18
+ verifier: Incomplete
19
+ realm: Incomplete
20
+ force_include_body: Incomplete
21
+ def __init__(
22
+ self,
23
+ client_id,
24
+ client_secret: Incomplete | None = None,
25
+ token: Incomplete | None = None,
26
+ token_secret: Incomplete | None = None,
27
+ redirect_uri: Incomplete | None = None,
28
+ rsa_key: Incomplete | None = None,
29
+ verifier: Incomplete | None = None,
30
+ signature_method="HMAC-SHA1",
31
+ signature_type="HEADER",
32
+ realm: Incomplete | None = None,
33
+ force_include_body: bool = False,
34
+ ) -> None: ...
35
+ def get_oauth_signature(self, method, uri, headers, body): ...
36
+ def get_oauth_params(self, nonce, timestamp): ...
37
+ def sign(self, method, uri, headers, body): ...
38
+ def prepare(self, method, uri, headers, body): ...
39
+
40
+ def generate_nonce(): ...
41
+ def generate_timestamp(): ...
@@ -0,0 +1,56 @@
1
+ from _typeshed import Incomplete
2
+
3
+ from authlib.common.errors import AuthlibHTTPError
4
+
5
+ class OAuth1Error(AuthlibHTTPError):
6
+ def __init__(
7
+ self, description: Incomplete | None = None, uri: Incomplete | None = None, status_code: Incomplete | None = None
8
+ ) -> None: ...
9
+ def get_headers(self): ...
10
+
11
+ class InsecureTransportError(OAuth1Error):
12
+ error: str
13
+ description: str
14
+ @classmethod
15
+ def check(cls, uri) -> None: ...
16
+
17
+ class InvalidRequestError(OAuth1Error):
18
+ error: str
19
+
20
+ class UnsupportedParameterError(OAuth1Error):
21
+ error: str
22
+
23
+ class UnsupportedSignatureMethodError(OAuth1Error):
24
+ error: str
25
+
26
+ class MissingRequiredParameterError(OAuth1Error):
27
+ error: str
28
+ def __init__(self, key) -> None: ...
29
+
30
+ class DuplicatedOAuthProtocolParameterError(OAuth1Error):
31
+ error: str
32
+
33
+ class InvalidClientError(OAuth1Error):
34
+ error: str
35
+ status_code: int
36
+
37
+ class InvalidTokenError(OAuth1Error):
38
+ error: str
39
+ description: str
40
+ status_code: int
41
+
42
+ class InvalidSignatureError(OAuth1Error):
43
+ error: str
44
+ status_code: int
45
+
46
+ class InvalidNonceError(OAuth1Error):
47
+ error: str
48
+ status_code: int
49
+
50
+ class AccessDeniedError(OAuth1Error):
51
+ error: str
52
+ description: str
53
+
54
+ class MethodNotAllowedError(OAuth1Error):
55
+ error: str
56
+ status_code: int
@@ -0,0 +1,21 @@
1
+ class ClientMixin:
2
+ def get_default_redirect_uri(self) -> None: ...
3
+ def get_client_secret(self) -> None: ...
4
+ def get_rsa_public_key(self) -> None: ...
5
+
6
+ class TokenCredentialMixin:
7
+ def get_oauth_token(self) -> None: ...
8
+ def get_oauth_token_secret(self) -> None: ...
9
+
10
+ class TemporaryCredentialMixin(TokenCredentialMixin):
11
+ def get_client_id(self) -> None: ...
12
+ def get_redirect_uri(self) -> None: ...
13
+ def check_verifier(self, verifier) -> None: ...
14
+
15
+ class TemporaryCredential(dict[str, object], TemporaryCredentialMixin):
16
+ def get_client_id(self): ...
17
+ def get_user_id(self): ...
18
+ def get_redirect_uri(self): ...
19
+ def check_verifier(self, verifier): ...
20
+ def get_oauth_token(self): ...
21
+ def get_oauth_token_secret(self): ...
@@ -0,0 +1,5 @@
1
+ from _typeshed import Incomplete
2
+
3
+ def prepare_headers(oauth_params, headers: Incomplete | None = None, realm: Incomplete | None = None): ...
4
+ def prepare_form_encoded_body(oauth_params, body): ...
5
+ def prepare_request_uri_query(oauth_params, uri): ...
@@ -0,0 +1,5 @@
1
+ from authlib.oauth1.rfc5849.base_server import BaseServer
2
+
3
+ class ResourceProtector(BaseServer):
4
+ def validate_request(self, method, uri, body, headers): ...
5
+ def get_token_credential(self, request) -> None: ...
@@ -0,0 +1,2 @@
1
+ def sign_sha1(msg, rsa_private_key): ...
2
+ def verify_sha1(sig, msg, rsa_public_key): ...
@@ -0,0 +1,22 @@
1
+ from _typeshed import Incomplete
2
+
3
+ SIGNATURE_HMAC_SHA1: str
4
+ SIGNATURE_RSA_SHA1: str
5
+ SIGNATURE_PLAINTEXT: str
6
+ SIGNATURE_TYPE_HEADER: str
7
+ SIGNATURE_TYPE_QUERY: str
8
+ SIGNATURE_TYPE_BODY: str
9
+
10
+ def construct_base_string(method, uri, params, host: Incomplete | None = None): ...
11
+ def normalize_base_string_uri(uri, host: Incomplete | None = None): ...
12
+ def normalize_parameters(params): ...
13
+ def generate_signature_base_string(request): ...
14
+ def hmac_sha1_signature(base_string, client_secret, token_secret): ...
15
+ def rsa_sha1_signature(base_string, rsa_private_key): ...
16
+ def plaintext_signature(client_secret, token_secret): ...
17
+ def sign_hmac_sha1(client, request): ...
18
+ def sign_rsa_sha1(client, request): ...
19
+ def sign_plaintext(client, request): ...
20
+ def verify_hmac_sha1(request): ...
21
+ def verify_rsa_sha1(request): ...
22
+ def verify_plaintext(request): ...
@@ -0,0 +1,2 @@
1
+ def escape(s): ...
2
+ def unescape(s): ...
@@ -0,0 +1,33 @@
1
+ from _typeshed import Incomplete
2
+
3
+ class OAuth1Request:
4
+ method: Incomplete
5
+ uri: Incomplete
6
+ body: Incomplete
7
+ headers: Incomplete
8
+ client: Incomplete
9
+ credential: Incomplete
10
+ user: Incomplete
11
+ query: Incomplete
12
+ query_params: Incomplete
13
+ body_params: Incomplete
14
+ params: Incomplete
15
+ def __init__(self, method, uri, body: Incomplete | None = None, headers: Incomplete | None = None) -> None: ...
16
+ @property
17
+ def client_id(self): ...
18
+ @property
19
+ def client_secret(self): ...
20
+ @property
21
+ def rsa_public_key(self): ...
22
+ @property
23
+ def timestamp(self): ...
24
+ @property
25
+ def redirect_uri(self): ...
26
+ @property
27
+ def signature(self): ...
28
+ @property
29
+ def signature_method(self): ...
30
+ @property
31
+ def token(self): ...
32
+ @property
33
+ def token_secret(self): ...
@@ -0,0 +1,22 @@
1
+ from .auth import ClientAuth as ClientAuth, TokenAuth as TokenAuth
2
+ from .base import OAuth2Error as OAuth2Error
3
+ from .client import OAuth2Client as OAuth2Client
4
+ from .rfc6749 import (
5
+ AuthorizationServer as AuthorizationServer,
6
+ ClientAuthentication as ClientAuthentication,
7
+ JsonRequest as JsonRequest,
8
+ OAuth2Request as OAuth2Request,
9
+ ResourceProtector as ResourceProtector,
10
+ )
11
+
12
+ __all__ = [
13
+ "OAuth2Error",
14
+ "ClientAuth",
15
+ "TokenAuth",
16
+ "OAuth2Client",
17
+ "OAuth2Request",
18
+ "JsonRequest",
19
+ "AuthorizationServer",
20
+ "ClientAuthentication",
21
+ "ResourceProtector",
22
+ ]
@@ -0,0 +1,24 @@
1
+ from _typeshed import Incomplete
2
+
3
+ def encode_client_secret_basic(client, method, uri, headers, body): ...
4
+ def encode_client_secret_post(client, method, uri, headers, body): ...
5
+ def encode_none(client, method, uri, headers, body): ...
6
+
7
+ class ClientAuth:
8
+ DEFAULT_AUTH_METHODS: Incomplete
9
+ client_id: Incomplete
10
+ client_secret: Incomplete
11
+ auth_method: Incomplete
12
+ def __init__(self, client_id, client_secret, auth_method: Incomplete | None = None) -> None: ...
13
+ def prepare(self, method, uri, headers, body): ...
14
+
15
+ class TokenAuth:
16
+ DEFAULT_TOKEN_TYPE: str
17
+ SIGN_METHODS: Incomplete
18
+ token: Incomplete
19
+ token_placement: Incomplete
20
+ client: Incomplete
21
+ hooks: Incomplete
22
+ def __init__(self, token, token_placement: str = "header", client: Incomplete | None = None) -> None: ...
23
+ def set_token(self, token) -> None: ...
24
+ def prepare(self, uri, headers, body): ...
@@ -0,0 +1,20 @@
1
+ from _typeshed import Incomplete
2
+
3
+ from authlib.common.errors import AuthlibHTTPError
4
+
5
+ class OAuth2Error(AuthlibHTTPError):
6
+ state: Incomplete
7
+ redirect_uri: Incomplete
8
+ redirect_fragment: Incomplete
9
+ def __init__(
10
+ self,
11
+ description: Incomplete | None = None,
12
+ uri: Incomplete | None = None,
13
+ status_code: Incomplete | None = None,
14
+ state: Incomplete | None = None,
15
+ redirect_uri: Incomplete | None = None,
16
+ redirect_fragment: bool = False,
17
+ error: Incomplete | None = None,
18
+ ) -> None: ...
19
+ def get_body(self): ...
20
+ def __call__(self, uri: Incomplete | None = None): ...
@@ -0,0 +1,96 @@
1
+ from _typeshed import Incomplete
2
+
3
+ from authlib.oauth2 import ClientAuth, OAuth2Error, TokenAuth
4
+
5
+ DEFAULT_HEADERS: Incomplete
6
+
7
+ class OAuth2Client:
8
+ client_auth_class = ClientAuth
9
+ token_auth_class = TokenAuth
10
+ oauth_error_class = OAuth2Error
11
+ EXTRA_AUTHORIZE_PARAMS: Incomplete
12
+ SESSION_REQUEST_PARAMS: Incomplete
13
+ session: Incomplete
14
+ client_id: Incomplete
15
+ client_secret: Incomplete
16
+ state: Incomplete
17
+ token_endpoint_auth_method: Incomplete
18
+ revocation_endpoint_auth_method: Incomplete
19
+ scope: Incomplete
20
+ redirect_uri: Incomplete
21
+ code_challenge_method: Incomplete
22
+ token_auth: Incomplete
23
+ update_token: Incomplete
24
+ metadata: Incomplete
25
+ compliance_hook: Incomplete
26
+ leeway: Incomplete
27
+ def __init__(
28
+ self,
29
+ session,
30
+ client_id: Incomplete | None = None,
31
+ client_secret: Incomplete | None = None,
32
+ token_endpoint_auth_method: Incomplete | None = None,
33
+ revocation_endpoint_auth_method: Incomplete | None = None,
34
+ scope: Incomplete | None = None,
35
+ state: Incomplete | None = None,
36
+ redirect_uri: Incomplete | None = None,
37
+ code_challenge_method: Incomplete | None = None,
38
+ token: Incomplete | None = None,
39
+ token_placement: str = "header",
40
+ update_token: Incomplete | None = None,
41
+ leeway: int = 60,
42
+ **metadata,
43
+ ) -> None: ...
44
+ def register_client_auth_method(self, auth) -> None: ...
45
+ def client_auth(self, auth_method): ...
46
+ @property
47
+ def token(self): ...
48
+ @token.setter
49
+ def token(self, token) -> None: ...
50
+ def create_authorization_url(
51
+ self, url, state: Incomplete | None = None, code_verifier: Incomplete | None = None, **kwargs
52
+ ): ...
53
+ def fetch_token(
54
+ self,
55
+ url: Incomplete | None = None,
56
+ body: str = "",
57
+ method: str = "POST",
58
+ headers: Incomplete | None = None,
59
+ auth: Incomplete | None = None,
60
+ grant_type: Incomplete | None = None,
61
+ state: Incomplete | None = None,
62
+ **kwargs,
63
+ ): ...
64
+ def token_from_fragment(self, authorization_response, state: Incomplete | None = None): ...
65
+ def refresh_token(
66
+ self,
67
+ url: Incomplete | None = None,
68
+ refresh_token: Incomplete | None = None,
69
+ body: str = "",
70
+ auth: Incomplete | None = None,
71
+ headers: Incomplete | None = None,
72
+ **kwargs,
73
+ ): ...
74
+ def ensure_active_token(self, token: Incomplete | None = None): ...
75
+ def revoke_token(
76
+ self,
77
+ url,
78
+ token: Incomplete | None = None,
79
+ token_type_hint: Incomplete | None = None,
80
+ body: Incomplete | None = None,
81
+ auth: Incomplete | None = None,
82
+ headers: Incomplete | None = None,
83
+ **kwargs,
84
+ ): ...
85
+ def introspect_token(
86
+ self,
87
+ url,
88
+ token: Incomplete | None = None,
89
+ token_type_hint: Incomplete | None = None,
90
+ body: Incomplete | None = None,
91
+ auth: Incomplete | None = None,
92
+ headers: Incomplete | None = None,
93
+ **kwargs,
94
+ ): ...
95
+ def register_compliance_hook(self, hook_type, hook) -> None: ...
96
+ def parse_response_token(self, resp): ...
@@ -0,0 +1,76 @@
1
+ from .authenticate_client import ClientAuthentication as ClientAuthentication
2
+ from .authorization_server import AuthorizationServer as AuthorizationServer
3
+ from .errors import (
4
+ AccessDeniedError as AccessDeniedError,
5
+ InsecureTransportError as InsecureTransportError,
6
+ InvalidClientError as InvalidClientError,
7
+ InvalidGrantError as InvalidGrantError,
8
+ InvalidRequestError as InvalidRequestError,
9
+ InvalidScopeError as InvalidScopeError,
10
+ MismatchingStateException as MismatchingStateException,
11
+ MissingAuthorizationError as MissingAuthorizationError,
12
+ MissingCodeException as MissingCodeException,
13
+ MissingTokenException as MissingTokenException,
14
+ MissingTokenTypeException as MissingTokenTypeException,
15
+ OAuth2Error as OAuth2Error,
16
+ UnauthorizedClientError as UnauthorizedClientError,
17
+ UnsupportedGrantTypeError as UnsupportedGrantTypeError,
18
+ UnsupportedResponseTypeError as UnsupportedResponseTypeError,
19
+ UnsupportedTokenTypeError as UnsupportedTokenTypeError,
20
+ )
21
+ from .grants import (
22
+ AuthorizationCodeGrant as AuthorizationCodeGrant,
23
+ AuthorizationEndpointMixin as AuthorizationEndpointMixin,
24
+ BaseGrant as BaseGrant,
25
+ ClientCredentialsGrant as ClientCredentialsGrant,
26
+ ImplicitGrant as ImplicitGrant,
27
+ RefreshTokenGrant as RefreshTokenGrant,
28
+ ResourceOwnerPasswordCredentialsGrant as ResourceOwnerPasswordCredentialsGrant,
29
+ TokenEndpointMixin as TokenEndpointMixin,
30
+ )
31
+ from .models import AuthorizationCodeMixin as AuthorizationCodeMixin, ClientMixin as ClientMixin, TokenMixin as TokenMixin
32
+ from .requests import JsonRequest as JsonRequest, OAuth2Request as OAuth2Request
33
+ from .resource_protector import ResourceProtector as ResourceProtector, TokenValidator as TokenValidator
34
+ from .token_endpoint import TokenEndpoint as TokenEndpoint
35
+ from .util import list_to_scope as list_to_scope, scope_to_list as scope_to_list
36
+ from .wrappers import OAuth2Token as OAuth2Token
37
+
38
+ __all__ = [
39
+ "OAuth2Token",
40
+ "OAuth2Request",
41
+ "JsonRequest",
42
+ "OAuth2Error",
43
+ "AccessDeniedError",
44
+ "MissingAuthorizationError",
45
+ "InvalidGrantError",
46
+ "InvalidClientError",
47
+ "InvalidRequestError",
48
+ "InvalidScopeError",
49
+ "InsecureTransportError",
50
+ "UnauthorizedClientError",
51
+ "UnsupportedResponseTypeError",
52
+ "UnsupportedGrantTypeError",
53
+ "UnsupportedTokenTypeError",
54
+ "MissingCodeException",
55
+ "MissingTokenException",
56
+ "MissingTokenTypeException",
57
+ "MismatchingStateException",
58
+ "ClientMixin",
59
+ "AuthorizationCodeMixin",
60
+ "TokenMixin",
61
+ "ClientAuthentication",
62
+ "AuthorizationServer",
63
+ "ResourceProtector",
64
+ "TokenValidator",
65
+ "TokenEndpoint",
66
+ "BaseGrant",
67
+ "AuthorizationEndpointMixin",
68
+ "TokenEndpointMixin",
69
+ "AuthorizationCodeGrant",
70
+ "ImplicitGrant",
71
+ "ResourceOwnerPasswordCredentialsGrant",
72
+ "ClientCredentialsGrant",
73
+ "RefreshTokenGrant",
74
+ "scope_to_list",
75
+ "list_to_scope",
76
+ ]
@@ -0,0 +1,13 @@
1
+ from collections.abc import Callable, Collection
2
+
3
+ from authlib.oauth2 import OAuth2Request
4
+ from authlib.oauth2.rfc6749 import ClientMixin
5
+
6
+ __all__ = ["ClientAuthentication"]
7
+
8
+ class ClientAuthentication:
9
+ query_client: Callable[[str], ClientMixin]
10
+ def __init__(self, query_client: Callable[[str], ClientMixin]) -> None: ...
11
+ def register(self, method: str, func: Callable[[Callable[[str], ClientMixin], OAuth2Request], ClientMixin]) -> None: ...
12
+ def authenticate(self, request: OAuth2Request, methods: Collection[str], endpoint: str) -> ClientMixin: ...
13
+ def __call__(self, request: OAuth2Request, methods: Collection[str], endpoint: str = "token") -> ClientMixin: ...
@@ -0,0 +1,46 @@
1
+ from _typeshed import Incomplete
2
+ from collections.abc import Callable, Collection, Mapping
3
+ from typing_extensions import TypeAlias
4
+
5
+ from authlib.oauth2 import JsonRequest, OAuth2Error, OAuth2Request
6
+ from authlib.oauth2.rfc6749 import BaseGrant, ClientMixin
7
+ from authlib.oauth2.rfc6750 import BearerTokenGenerator
8
+
9
+ _ServerResponse: TypeAlias = tuple[int, str, list[tuple[str, str]]]
10
+
11
+ class AuthorizationServer:
12
+ scopes_supported: Collection[str] | None
13
+ def __init__(self, scopes_supported: Collection[str] | None = None) -> None: ...
14
+ def query_client(self, client_id: str) -> ClientMixin: ...
15
+ def save_token(self, token: dict[str, str | int], request: OAuth2Request) -> None: ...
16
+ def generate_token(
17
+ self,
18
+ grant_type: str,
19
+ client: ClientMixin,
20
+ user: Incomplete | None = None,
21
+ scope: str | None = None,
22
+ expires_in: int | None = None,
23
+ include_refresh_token: bool = True,
24
+ ) -> dict[str, str | int]: ...
25
+ def register_token_generator(self, grant_type: str, func: BearerTokenGenerator) -> None: ...
26
+ def authenticate_client(self, request: OAuth2Request, methods: Collection[str], endpoint: str = "token") -> ClientMixin: ...
27
+ def register_client_auth_method(self, method, func) -> None: ...
28
+ def get_error_uri(self, request, error) -> None: ...
29
+ def send_signal(self, name, *args: object, **kwargs: object) -> None: ...
30
+ def create_oauth2_request(self, request) -> OAuth2Request: ...
31
+ def create_json_request(self, request) -> JsonRequest: ...
32
+ def handle_response(self, status: int, body: Mapping[str, object], headers: Mapping[str, str]) -> object: ...
33
+ def validate_requested_scope(self, scope: str, state: str | None = None) -> None: ...
34
+ def register_grant(
35
+ self, grant_cls: type[BaseGrant], extensions: Collection[Callable[[BaseGrant], None]] | None = None
36
+ ) -> None: ...
37
+ def register_endpoint(self, endpoint) -> None: ...
38
+ def get_authorization_grant(self, request: OAuth2Request) -> BaseGrant: ...
39
+ def get_consent_grant(self, request: Incomplete | None = None, end_user: Incomplete | None = None): ...
40
+ def get_token_grant(self, request: OAuth2Request) -> BaseGrant: ...
41
+ def create_endpoint_response(self, name, request: Incomplete | None = None): ...
42
+ def create_authorization_response(
43
+ self, request: Incomplete | None = None, grant_user: Incomplete | None = None
44
+ ) -> object: ...
45
+ def create_token_response(self, request: Incomplete | None = None) -> _ServerResponse: ...
46
+ def handle_error_response(self, request: OAuth2Request, error: OAuth2Error) -> object: ...