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,5 @@
1
+ from authlib.oauth2.rfc6749 import AuthorizationCodeMixin as _AuthorizationCodeMixin
2
+
3
+ class AuthorizationCodeMixin(_AuthorizationCodeMixin):
4
+ def get_nonce(self) -> str | None: ...
5
+ def get_auth_time(self) -> int | None: ...
@@ -0,0 +1 @@
1
+ def create_half_hash(s: str, alg: str) -> str: ...
@@ -0,0 +1,4 @@
1
+ from .models import OpenIDProviderMetadata as OpenIDProviderMetadata
2
+ from .well_known import get_well_known_url as get_well_known_url
3
+
4
+ __all__ = ["OpenIDProviderMetadata", "get_well_known_url"]
@@ -0,0 +1,36 @@
1
+ from _typeshed import Incomplete
2
+
3
+ from authlib.oauth2.rfc8414 import AuthorizationServerMetadata
4
+
5
+ class OpenIDProviderMetadata(AuthorizationServerMetadata):
6
+ REGISTRY_KEYS: Incomplete
7
+ def validate_jwks_uri(self): ...
8
+ def validate_acr_values_supported(self) -> None: ...
9
+ def validate_subject_types_supported(self) -> None: ...
10
+ def validate_id_token_signing_alg_values_supported(self) -> None: ...
11
+ def validate_id_token_encryption_alg_values_supported(self) -> None: ...
12
+ def validate_id_token_encryption_enc_values_supported(self) -> None: ...
13
+ def validate_userinfo_signing_alg_values_supported(self) -> None: ...
14
+ def validate_userinfo_encryption_alg_values_supported(self) -> None: ...
15
+ def validate_userinfo_encryption_enc_values_supported(self) -> None: ...
16
+ def validate_request_object_signing_alg_values_supported(self) -> None: ...
17
+ def validate_request_object_encryption_alg_values_supported(self) -> None: ...
18
+ def validate_request_object_encryption_enc_values_supported(self) -> None: ...
19
+ def validate_display_values_supported(self) -> None: ...
20
+ def validate_claim_types_supported(self) -> None: ...
21
+ def validate_claims_supported(self) -> None: ...
22
+ def validate_claims_locales_supported(self) -> None: ...
23
+ def validate_claims_parameter_supported(self) -> None: ...
24
+ def validate_request_parameter_supported(self) -> None: ...
25
+ def validate_request_uri_parameter_supported(self) -> None: ...
26
+ def validate_require_request_uri_registration(self) -> None: ...
27
+ @property
28
+ def claim_types_supported(self): ...
29
+ @property
30
+ def claims_parameter_supported(self): ...
31
+ @property
32
+ def request_parameter_supported(self): ...
33
+ @property
34
+ def request_uri_parameter_supported(self): ...
35
+ @property
36
+ def require_request_uri_registration(self): ...
@@ -0,0 +1 @@
1
+ def get_well_known_url(issuer, external: bool = False): ...
@@ -1,4 +1,4 @@
1
- version = "4.0.*"
1
+ version = "4.1.*"
2
2
  upstream_repository = "https://github.com/miguelgrinberg/Flask-Migrate"
3
3
  # Requires versions of flask and Flask-SQLAlchemy with `py.typed` files
4
4
  requires = ["Flask-SQLAlchemy>=3.0.1", "Flask>=2.0.0"]
@@ -1,7 +1,7 @@
1
1
  # pyright: reportInvalidStubStatement=none
2
2
 
3
3
  import sys
4
- from _typeshed import StrPath, SupportsKeysAndGetItem, SupportsWrite
4
+ from _typeshed import StrPath, SupportsFlush, SupportsKeysAndGetItem, SupportsWrite
5
5
  from argparse import Namespace
6
6
  from collections.abc import Callable, Iterable, Sequence
7
7
  from logging import Logger
@@ -20,9 +20,7 @@ _AlembicConfigValue: TypeAlias = Any
20
20
  alembic_version: tuple[int, int, int]
21
21
  log: Logger
22
22
 
23
- # TODO: Use _typeshed.SupportsFlush when it's available in type checkers.
24
- class _SupportsWriteAndFlush(SupportsWrite[_T_contra], Protocol):
25
- def flush(self) -> object: ...
23
+ class _SupportsWriteAndFlush(SupportsWrite[_T_contra], SupportsFlush, Protocol): ...
26
24
 
27
25
  class Config: # should inherit from alembic.config.Config which is not possible yet
28
26
  template_directory: str | None
@@ -1,3 +1,3 @@
1
- version = "5.4.*"
1
+ version = "5.5.*"
2
2
  requires = ["Flask>=0.9"]
3
3
  upstream_repository = "https://github.com/miguelgrinberg/flask-socketio"
@@ -1,8 +1,9 @@
1
1
  from _typeshed import Incomplete
2
2
  from collections.abc import Callable
3
+ from logging import Logger
3
4
  from threading import Thread
4
- from typing import Any, Protocol, TypeVar, overload
5
- from typing_extensions import ParamSpec, TypeAlias
5
+ from typing import Any, Literal, Protocol, TypedDict, TypeVar, overload
6
+ from typing_extensions import ParamSpec, TypeAlias, Unpack
6
7
 
7
8
  from flask import Flask
8
9
  from flask.testing import FlaskClient
@@ -21,7 +22,32 @@ class _HandlerDecorator(Protocol):
21
22
  class _ExceptionHandlerDecorator(Protocol):
22
23
  def __call__(self, exception_handler: _ExceptionHandler[_R_co]) -> _ExceptionHandler[_R_co]: ...
23
24
 
25
+ class _SocketIOServerOptions(TypedDict, total=False):
26
+ client_manager: Incomplete
27
+ logger: Logger | bool
28
+ json: Incomplete
29
+ async_handlers: bool
30
+ always_connect: bool
31
+
32
+ class _EngineIOServerConfig(TypedDict, total=False):
33
+ async_mode: Literal["threading", "eventlet", "gevent", "gevent_uwsgi"]
34
+ ping_interval: float | tuple[float, float] # seconds
35
+ ping_timeout: float # seconds
36
+ max_http_buffer_size: int
37
+ allow_upgrades: bool
38
+ http_compression: bool
39
+ compression_threshold: int
40
+ cookie: str | dict[str, Any] | None
41
+ cors_allowed_origins: str | list[str]
42
+ cors_credentials: bool
43
+ monitor_clients: bool
44
+ engineio_logger: Logger | bool
45
+
46
+ class _SocketIOKwargs(_SocketIOServerOptions, _EngineIOServerConfig): ...
47
+
24
48
  class SocketIO:
49
+ # This is an alias for `socketio.Server.reason` in `python-socketio`, which is not typed.
50
+ reason: Incomplete
25
51
  # Many instance attributes are deliberately not included here,
26
52
  # as the maintainer of Flask-SocketIO considers them private, internal details:
27
53
  # https://github.com/python/typeshed/pull/10735#discussion_r1330768869
@@ -35,7 +61,7 @@ class SocketIO:
35
61
  channel: str = "flask-socketio",
36
62
  path: str = "socket.io",
37
63
  resource: str = "socket.io",
38
- **kwargs, # TODO: Socket.IO server options, Engine.IO server config
64
+ **kwargs: Unpack[_SocketIOKwargs],
39
65
  ) -> None: ...
40
66
  def init_app(
41
67
  self,
@@ -47,7 +73,7 @@ class SocketIO:
47
73
  channel: str = "flask-socketio",
48
74
  path: str = "socket.io",
49
75
  resource: str = "socket.io",
50
- **kwargs, # TODO: Socket.IO server options, Engine.IO server config: ...
76
+ **kwargs: Unpack[_SocketIOKwargs],
51
77
  ) -> None: ...
52
78
  def on(self, message: str, namespace: str | None = None) -> _HandlerDecorator: ...
53
79
  def on_error(self, namespace: str | None = None) -> _ExceptionHandlerDecorator: ...
@@ -1,5 +1,6 @@
1
+ from codecs import _ReadableStream, _WritableStream
1
2
  from collections.abc import Callable, Mapping, Sequence
2
- from typing import Any, ClassVar, Literal, Protocol
3
+ from typing import Any, ClassVar, Literal
3
4
  from typing_extensions import Self
4
5
  from xml.etree.ElementTree import Element
5
6
 
@@ -7,18 +8,6 @@ from . import blockparser, inlinepatterns, postprocessors, preprocessors, treepr
7
8
  from .extensions import Extension
8
9
  from .util import HtmlStash, Registry
9
10
 
10
- # TODO: The following protocols can be replaced by their counterparts from
11
- # codecs, once they have been propagated to all type checkers.
12
- class _WritableStream(Protocol):
13
- def write(self, data: bytes, /) -> object: ...
14
- def seek(self, offset: int, whence: int, /) -> object: ...
15
- def close(self) -> object: ...
16
-
17
- class _ReadableStream(Protocol):
18
- def read(self, size: int = ..., /) -> bytes: ...
19
- def seek(self, offset: int, whence: int, /) -> object: ...
20
- def close(self) -> object: ...
21
-
22
11
  class Markdown:
23
12
  preprocessors: Registry[preprocessors.Preprocessor]
24
13
  inlinePatterns: Registry[inlinepatterns.Pattern]
@@ -60,8 +60,8 @@ def useImageNotFoundException(value: bool | None = None) -> None: ...
60
60
  def isShiftCharacter(character: str) -> bool: ...
61
61
 
62
62
  class Point(NamedTuple):
63
- x: float
64
- y: float
63
+ x: int
64
+ y: int
65
65
 
66
66
  class Size(NamedTuple):
67
67
  width: int
@@ -39,7 +39,7 @@ class BaseConstructor:
39
39
  def add_multi_constructor(cls, tag_prefix, multi_constructor): ...
40
40
 
41
41
  class SafeConstructor(BaseConstructor):
42
- def construct_scalar(self, node: ScalarNode) -> str: ...
42
+ def construct_scalar(self, node: ScalarNode | MappingNode) -> str: ...
43
43
  def flatten_mapping(self, node: MappingNode) -> None: ...
44
44
  def construct_mapping(self, node: MappingNode, deep: bool = False) -> dict[Hashable, Any]: ...
45
45
  def construct_yaml_null(self, node: ScalarNode) -> None: ...
@@ -1,4 +1,4 @@
1
- version = "2.18.*"
1
+ version = "2.19.*"
2
2
  upstream_repository = "https://github.com/pygments/pygments"
3
3
  requires = ["types-docutils", "types-setuptools"]
4
4
  partial_stub = true
@@ -123,4 +123,4 @@ class HTTPExceptionMiddleware:
123
123
  def __init__(self, application: WSGIApplication) -> None: ...
124
124
  def __call__(self, environ: WSGIEnvironment, start_response: StartResponse) -> Iterable[bytes]: ...
125
125
 
126
- status_map: dict[int, WSGIHTTPException]
126
+ status_map: dict[int, type[WSGIHTTPException]]
@@ -0,0 +1,3 @@
1
+ version = "0.4.*"
2
+ requires = ["click>=8.0.0"]
3
+ upstream_repository = "https://github.com/click-contrib/click-log"
@@ -0,0 +1,4 @@
1
+ from .core import ClickHandler as ClickHandler, ColorFormatter as ColorFormatter, basic_config as basic_config
2
+ from .options import simple_verbosity_option as simple_verbosity_option
3
+
4
+ __version__: str
@@ -0,0 +1,15 @@
1
+ import logging
2
+
3
+ LOGGER_KEY: str
4
+ DEFAULT_LEVEL: int
5
+ PY2: bool
6
+ text_type: type
7
+
8
+ class ColorFormatter(logging.Formatter):
9
+ colors: dict[str, dict[str, str]]
10
+ def format(self, record: logging.LogRecord) -> str: ...
11
+
12
+ class ClickHandler(logging.Handler):
13
+ def emit(self, record: logging.LogRecord) -> None: ...
14
+
15
+ def basic_config(logger: logging.Logger | str | None = None) -> None: ...
@@ -0,0 +1,12 @@
1
+ import logging
2
+ import typing as t
3
+ from typing_extensions import TypeAlias
4
+
5
+ import click
6
+
7
+ _AnyCallable: TypeAlias = t.Callable[..., t.Any]
8
+ _FC = t.TypeVar("_FC", bound=_AnyCallable | click.Command)
9
+
10
+ def simple_verbosity_option(
11
+ logger: logging.Logger | str | None = None, *names: str, **kwargs: t.Any
12
+ ) -> t.Callable[[_FC], _FC]: ...
@@ -0,0 +1,3 @@
1
+ version = "0.8.*"
2
+ requires = ["click>=8.0.0", "Flask>=2.3.2"]
3
+ upstream_repository = "https://github.com/fredrik-corneliusson/click-web"
@@ -0,0 +1,16 @@
1
+ import logging
2
+ import types
3
+ from _typeshed import Incomplete
4
+
5
+ import click
6
+ import flask
7
+
8
+ # This should be jinja2.Environment, but it does not have stubs and forbidden for requires in METADATA.toml
9
+ jinja_env: Incomplete
10
+ script_file: str | None
11
+ click_root_cmd: str | None
12
+ OUTPUT_FOLDER: str
13
+ _flask_app: flask.Flask | None
14
+ logger: logging.Logger | None
15
+
16
+ def create_click_web_app(module: types.ModuleType, command: click.BaseCommand, root: str = "/") -> flask.Flask: ...
@@ -0,0 +1,2 @@
1
+ class ClickWebException(Exception): ...
2
+ class CommandNotFound(ClickWebException): ...
@@ -0,0 +1,79 @@
1
+ import logging
2
+
3
+ from flask import Response
4
+
5
+ from .input_fields import FieldId
6
+
7
+ logger: logging.Logger | None
8
+
9
+ HTML_HEAD: str
10
+ HTML_TAIL: str
11
+
12
+ class Executor:
13
+ RAW_CMD_PATH: str
14
+
15
+ def __init__(self) -> None: ...
16
+ def exec(self, command_path: str) -> Response: ...
17
+ def _exec_raw(self, command: list[str]) -> Response: ... # undocumented
18
+ def _exec_html(self, command_path: str) -> Response: ... # undocumented
19
+ def _run_script_and_generate_stream(self) -> None: ... # undocumented
20
+ def _create_cmd_header(self, commands: list[CmdPart]) -> str: ... # undocumented
21
+ def _create_result_footer(self) -> str: ... # undocumented
22
+
23
+ def _get_download_link(field_info: FieldFileInfo) -> str: ... # undocumented
24
+
25
+ class CommandLineRaw:
26
+ def __init__(self, script_file_path: str, command: str) -> None: ...
27
+ def append(self, part: str, secret: bool = False) -> None: ...
28
+ def get_commandline(self, obfuscate: bool = False) -> list[str]: ...
29
+ def get_download_field_infos(self) -> list[FieldInfo]: ...
30
+ def after_script_executed(self) -> None: ...
31
+
32
+ class CommandLineForm:
33
+ def __init__(self, script_file_path: str, commands: list[str]) -> None: ...
34
+ def append(self, part: str, secret: bool = False) -> None: ...
35
+ def get_commandline(self, obfuscate: bool = False) -> list[str]: ...
36
+ def get_download_field_infos(self) -> list[FieldInfo]: ...
37
+ def after_script_executed(self) -> None: ...
38
+
39
+ def _get_python_interpreter() -> str: ...
40
+
41
+ class CmdPart:
42
+ def __init__(self, part: str, secret: bool = False) -> None: ...
43
+
44
+ class FormToCommandLineBuilder:
45
+ def __init__(self, command_line: CommandLineForm) -> None: ...
46
+ def add_command_args(self, command_index: int) -> None: ...
47
+ @staticmethod
48
+ def _is_option(cmd_option: str) -> bool: ...
49
+ def _process_option(self, field_info: FieldInfo) -> None: ...
50
+
51
+ class FieldInfo:
52
+ @staticmethod
53
+ def factory(key: str) -> FieldInfo: ...
54
+ def __init__(self, param: FieldId) -> None: ...
55
+ def before_script_execute(self) -> None: ...
56
+ def after_script_executed(self) -> None: ...
57
+ def __lt__(self, other: object) -> bool: ...
58
+ def __eq__(self, other: object) -> bool: ...
59
+
60
+ class FieldFileInfo(FieldInfo):
61
+ def __init__(self, fimeta: FieldId) -> None: ...
62
+ def before_script_execute(self) -> None: ...
63
+ @classmethod
64
+ def temp_dir(cls) -> str: ...
65
+ def save(self) -> None: ...
66
+
67
+ class FieldOutFileInfo(FieldFileInfo):
68
+ def __init__(self, fimeta: FieldId) -> None: ...
69
+ def save(self) -> None: ...
70
+
71
+ class FieldPathInfo(FieldFileInfo):
72
+ def save(self) -> None: ...
73
+ def after_script_executed(self) -> None: ...
74
+
75
+ class FieldPathOutInfo(FieldOutFileInfo):
76
+ def save(self) -> None: ...
77
+ def after_script_executed(self) -> None: ...
78
+
79
+ def zip_folder(folder_path: str, out_folder: str, out_prefix: str) -> str: ...
@@ -0,0 +1,6 @@
1
+ import click
2
+
3
+ def get_form_for(command_path: str) -> str: ...
4
+ def _get_commands_by_path(command_path: str) -> list[tuple[click.Context, click.Command]]: ...
5
+ def _generate_form_data(ctx_and_commands: list[tuple[click.Context, click.Command]]): ...
6
+ def _process_help(help_text: bool) -> str: ...
@@ -0,0 +1,6 @@
1
+ from typing import Any
2
+
3
+ import click
4
+
5
+ def index() -> str: ...
6
+ def _click_to_tree(ctx: click.Context, node: click.Command, ancestors: list[click.Command] | None = None) -> dict[str, Any]: ...
@@ -0,0 +1,49 @@
1
+ from typing import Any
2
+
3
+ import click
4
+
5
+ class FieldId:
6
+ SEPARATOR: str
7
+
8
+ def __init__(
9
+ self,
10
+ command_index: int,
11
+ param_index: int,
12
+ param_type: str,
13
+ click_type: str,
14
+ nargs: int,
15
+ form_type: str,
16
+ name: str,
17
+ key: str | None = None,
18
+ ): ...
19
+ @classmethod
20
+ def from_string(cls, field_info_as_string: str) -> FieldId: ...
21
+
22
+ class NotSupported(ValueError): ...
23
+
24
+ class BaseInput:
25
+ param_type_cls: type | None
26
+ def __init__(self, ctx: click.Context, param: click.Parameter, command_index: int, param_index: int) -> None: ...
27
+ def is_supported(self) -> bool: ...
28
+ @property
29
+ def fields(self) -> dict[str, Any]: ...
30
+ @property
31
+ def type_attrs(self) -> dict[str, Any]: ...
32
+ def _to_cmd_line_name(self, name: str) -> str: ...
33
+ def _build_name(self, name: str): ...
34
+
35
+ class ChoiceInput(BaseInput): ...
36
+ class FlagInput(BaseInput): ...
37
+ class IntInput(BaseInput): ...
38
+ class FloatInput(BaseInput): ...
39
+ class FolderInput(BaseInput): ...
40
+ class FileInput(BaseInput): ...
41
+ class EmailInput(BaseInput): ...
42
+ class PasswordInput(BaseInput): ...
43
+ class TextAreaInput(BaseInput): ...
44
+ class DefaultInput(BaseInput): ...
45
+
46
+ INPUT_TYPES: list[type]
47
+ _DEFAULT_INPUT: list[type]
48
+
49
+ def get_input_field(ctx: click.Context, param: click.Parameter, command_index, param_index) -> dict[str, Any]: ...
@@ -0,0 +1,18 @@
1
+ import re
2
+ import typing as t
3
+
4
+ import click
5
+
6
+ class EmailParamType(click.ParamType):
7
+ EMAIL_REGEX: re.Pattern[str]
8
+ def convert(self, value: t.Any, param: click.Parameter | None, ctx: click.Context | None) -> t.Any: ...
9
+
10
+ class PasswordParamType(click.ParamType):
11
+ def convert(self, value: t.Any, param: click.Parameter | None, ctx: click.Context | None) -> t.Any: ...
12
+
13
+ class TextAreaParamType(click.ParamType):
14
+ def convert(self, value: t.Any, param: click.Parameter | None, ctx: click.Context | None) -> t.Any: ...
15
+
16
+ EMAIL_TYPE: EmailParamType
17
+ PASSWORD_TYPE: PasswordParamType
18
+ TEXTAREA_TYPE: TextAreaParamType
@@ -1,2 +1,2 @@
1
- version = "4.0.0"
1
+ version = "5.0.1"
2
2
  upstream_repository = "https://github.com/kiorky/croniter"
@@ -162,6 +162,13 @@ class croniter(Iterator[Any]):
162
162
  def iter(self, ret_type: _RetType | None = ...) -> Iterator[Any]: ...
163
163
  def is_leap(self, year: int) -> bool: ...
164
164
  @classmethod
165
+ def value_alias(
166
+ cls,
167
+ val: int,
168
+ field: Literal[0, 1, 2, 3, 4, 5, 6],
169
+ len_expressions: int | list[Any] | dict[Any, Any] | tuple[Any, ...] | set[Any] = 5,
170
+ ) -> int: ...
171
+ @classmethod
165
172
  def expand(
166
173
  cls,
167
174
  expr_format: str,
@@ -0,0 +1,6 @@
1
+ version = "3.3.*"
2
+ upstream_repository = "https://github.com/django-import-export/django-import-export"
3
+ requires = ["django-stubs"] # Add tablib when typed, and update _Incomplete aliases in stubs
4
+
5
+ [tool.stubtest]
6
+ skip = true # Django requires configured settings at runtime
@@ -0,0 +1,114 @@
1
+ from _typeshed import Incomplete
2
+ from collections.abc import Callable
3
+ from logging import Logger
4
+ from typing import Any, TypeVar
5
+ from typing_extensions import TypeAlias, deprecated
6
+
7
+ from django.contrib import admin
8
+ from django.contrib.admin.helpers import ActionForm
9
+ from django.core.files import File
10
+ from django.db.models import Model, QuerySet
11
+ from django.forms import Form, Media
12
+ from django.http.request import HttpRequest
13
+ from django.http.response import HttpResponse
14
+ from django.template.response import TemplateResponse
15
+ from django.urls import URLPattern
16
+
17
+ from .formats.base_formats import Format
18
+ from .mixins import BaseExportMixin, BaseImportMixin
19
+ from .results import Result
20
+ from .tmp_storages import BaseStorage
21
+
22
+ Dataset: TypeAlias = Incomplete # tablib.Dataset
23
+ logger: Logger
24
+
25
+ _ModelT = TypeVar("_ModelT", bound=Model)
26
+
27
+ class ImportExportMixinBase:
28
+ base_change_list_template: str
29
+ change_list_template: str
30
+ def __init__(self, *args: Any, **kwargs: Any) -> None: ...
31
+ def init_change_list_template(self) -> None: ...
32
+ def get_model_info(self) -> tuple[str, str]: ...
33
+ def changelist_view(self, request: HttpRequest, extra_context: dict[str, Any] | None = None) -> HttpResponse: ...
34
+
35
+ class ImportMixin(BaseImportMixin[_ModelT], ImportExportMixinBase):
36
+ import_export_change_list_template: str
37
+ import_template_name: str
38
+ import_form_class: type[Form] = ...
39
+ confirm_form_class: type[Form] = ...
40
+ from_encoding: str
41
+ skip_admin_log: bool | None
42
+ tmp_storage_class: str | type[BaseStorage]
43
+ def get_skip_admin_log(self) -> bool: ...
44
+ def get_tmp_storage_class(self) -> type[BaseStorage]: ...
45
+ def has_import_permission(self, request: HttpRequest) -> bool: ...
46
+ def get_urls(self) -> list[URLPattern]: ...
47
+ def process_import(self, request: HttpRequest, *args: Any, **kwargs: Any) -> HttpResponse: ...
48
+ def process_dataset(
49
+ self,
50
+ dataset: Dataset,
51
+ confirm_form: Form,
52
+ request: HttpRequest,
53
+ *args: Any,
54
+ rollback_on_validation_errors: bool = False,
55
+ **kwargs: Any,
56
+ ) -> Result: ...
57
+ def process_result(self, result: Result, request: HttpRequest) -> HttpResponse: ...
58
+ def generate_log_entries(self, result: Result, request: HttpRequest) -> None: ...
59
+ def add_success_message(self, result: Result, request: HttpRequest) -> None: ...
60
+ def get_import_context_data(self, **kwargs: Any) -> dict[str, Any]: ...
61
+ def get_context_data(self, **kwargs: Any) -> dict[str, Any]: ...
62
+ @deprecated("Use get_import_form_class instead")
63
+ def get_import_form(self) -> type[Form]: ...
64
+ @deprecated("Use get_confirm_form_class instead")
65
+ def get_confirm_import_form(self) -> type[Form]: ...
66
+ @deprecated("Use get_import_form_kwargs or get_confirm_form_kwargs")
67
+ def get_form_kwargs(self, form: Form, *args: Any, **kwargs: Any) -> dict[str, Any]: ...
68
+ def create_import_form(self, request: HttpRequest) -> Form: ...
69
+ def get_import_form_class(self, request: HttpRequest) -> type[Form]: ...
70
+ def get_import_form_kwargs(self, request: HttpRequest) -> dict[str, Any]: ...
71
+ def get_import_form_initial(self, request: HttpRequest) -> dict[str, Any]: ...
72
+ def create_confirm_form(self, request: HttpRequest, import_form: Form | None = None) -> Form: ...
73
+ def get_confirm_form_class(self, request: HttpRequest) -> type[Form]: ...
74
+ def get_confirm_form_kwargs(self, request: HttpRequest, import_form: Form | None = None) -> dict[str, Any]: ...
75
+ def get_confirm_form_initial(self, request: HttpRequest, import_form: Form | None) -> dict[str, Any]: ...
76
+ def get_import_data_kwargs(self, request: HttpRequest, *args: Any, **kwargs: Any) -> dict[str, Any]: ...
77
+ def write_to_tmp_storage(self, import_file: File[bytes], input_format: Format) -> BaseStorage: ...
78
+ def add_data_read_fail_error_to_form(self, form: Form, e: Exception) -> None: ...
79
+ def import_action(self, request: HttpRequest, *args: Any, **kwargs: Any) -> TemplateResponse: ...
80
+ def changelist_view(self, request: HttpRequest, extra_context: dict[str, Any] | None = None) -> HttpResponse: ...
81
+
82
+ class ExportMixin(BaseExportMixin[_ModelT], ImportExportMixinBase):
83
+ import_export_change_list_template: str | None
84
+ export_template_name: str
85
+ to_encoding: str | None
86
+ export_form_class: type[Form] = ...
87
+ def get_urls(self) -> list[URLPattern]: ...
88
+ def has_export_permission(self, request: HttpRequest) -> bool: ...
89
+ def get_export_queryset(self, request: HttpRequest) -> QuerySet[_ModelT]: ...
90
+ def get_export_data(self, file_format: Format, queryset: QuerySet[_ModelT], *args: Any, **kwargs: Any) -> str | bytes: ...
91
+ def get_export_context_data(self, **kwargs: Any) -> dict[str, Any]: ...
92
+ def get_context_data(self, **kwargs: Any) -> dict[str, Any]: ...
93
+ @deprecated("Use get_export_form_class or use the export_form_class attribute")
94
+ def get_export_form(self) -> Form: ...
95
+ def get_export_form_class(self) -> type[Form]: ...
96
+ def export_action(self, request: HttpRequest, *args: Any, **kwargs: Any) -> TemplateResponse: ...
97
+ def changelist_view(self, request: HttpRequest, extra_context: dict[str, Any] | None = None) -> HttpResponse: ...
98
+ def get_export_filename(self, request: HttpRequest, queryset: QuerySet[_ModelT], file_format: Format) -> str: ... # type: ignore[override]
99
+
100
+ class ImportExportMixin(ImportMixin[_ModelT], ExportMixin[_ModelT]):
101
+ import_export_change_list_template: str
102
+
103
+ class ImportExportModelAdmin(ImportExportMixin[_ModelT], admin.ModelAdmin[_ModelT]): ... # type: ignore[misc]
104
+
105
+ class ExportActionMixin(ExportMixin[_ModelT]):
106
+ action_form: type[ActionForm]
107
+ def __init__(self, *args: Any, **kwargs: Any) -> None: ...
108
+ def export_admin_action(self, request: HttpRequest, queryset: QuerySet[_ModelT]) -> HttpResponse: ...
109
+ def get_actions(self, request: HttpRequest) -> dict[str, tuple[Callable[..., str], str, str] | None]: ...
110
+ @property
111
+ def media(self) -> Media: ...
112
+
113
+ class ExportActionModelAdmin(ExportActionMixin[_ModelT], admin.ModelAdmin[_ModelT]): ... # type: ignore[misc]
114
+ class ImportExportActionModelAdmin(ImportMixin[_ModelT], ExportActionModelAdmin[_ModelT]): ... # type: ignore[misc]
@@ -0,0 +1,2 @@
1
+ class ImportExportError(Exception): ...
2
+ class FieldError(ImportExportError): ...
@@ -0,0 +1,34 @@
1
+ from collections.abc import Callable, Mapping
2
+ from typing import Any, ClassVar
3
+
4
+ from django.db.models import Model
5
+ from django.db.models.fields import NOT_PROVIDED
6
+
7
+ from .widgets import Widget
8
+
9
+ class Field:
10
+ empty_values: ClassVar[list[str | None]]
11
+ attribute: str | None
12
+ default: type[NOT_PROVIDED] | Callable[[], Any] | Any
13
+ column_name: str | None
14
+ widget: Widget
15
+ readonly: bool
16
+ saves_null_values: bool
17
+ dehydrate_method: str
18
+ m2m_add: bool
19
+ def __init__(
20
+ self,
21
+ attribute: str | None = None,
22
+ column_name: str | None = None,
23
+ widget: Widget | None = None,
24
+ default: type[NOT_PROVIDED] | Callable[[], Any] | Any = ...,
25
+ readonly: bool = False,
26
+ saves_null_values: bool = True,
27
+ dehydrate_method: str | None = None,
28
+ m2m_add: bool = False,
29
+ ) -> None: ...
30
+ def clean(self, data: Mapping[str, Any], **kwargs: Any) -> Any: ...
31
+ def get_value(self, obj: Model) -> Any: ...
32
+ def save(self, obj: Model, data: Mapping[str, Any], is_m2m: bool = False, **kwargs: Any) -> None: ...
33
+ def export(self, obj: Model) -> str: ...
34
+ def get_dehydrate_method(self, field_name: str | None = None) -> str: ...