basedpyright 1.36.2 → 1.37.0-961d59bacff1958014fe4e9ed2ef3116fe2266e2

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 (732) 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 +6 -6
  6. package/dist/typeshed-fallback/commit.txt +1 -1
  7. package/dist/typeshed-fallback/stdlib/_compression.pyi +13 -2
  8. package/dist/typeshed-fallback/stdlib/_ctypes.pyi +49 -16
  9. package/dist/typeshed-fallback/stdlib/_winapi.pyi +9 -0
  10. package/dist/typeshed-fallback/stdlib/_zstd.pyi +7 -2
  11. package/dist/typeshed-fallback/stdlib/argparse.pyi +39 -10
  12. package/dist/typeshed-fallback/stdlib/asyncio/coroutines.pyi +27 -8
  13. package/dist/typeshed-fallback/stdlib/asyncio/protocols.pyi +2 -2
  14. package/dist/typeshed-fallback/stdlib/asyncio/runners.pyi +5 -2
  15. package/dist/typeshed-fallback/stdlib/asyncio/trsock.pyi +1 -1
  16. package/dist/typeshed-fallback/stdlib/builtins.pyi +54 -31
  17. package/dist/typeshed-fallback/stdlib/calendar.pyi +3 -1
  18. package/dist/typeshed-fallback/stdlib/codecs.pyi +2 -1
  19. package/dist/typeshed-fallback/stdlib/compression/_common/_streams.pyi +13 -2
  20. package/dist/typeshed-fallback/stdlib/compression/zstd/__init__.pyi +7 -2
  21. package/dist/typeshed-fallback/stdlib/compression/zstd/_zstdfile.pyi +6 -6
  22. package/dist/typeshed-fallback/stdlib/contextlib.pyi +15 -6
  23. package/dist/typeshed-fallback/stdlib/ctypes/__init__.pyi +3 -0
  24. package/dist/typeshed-fallback/stdlib/enum.pyi +2 -0
  25. package/dist/typeshed-fallback/stdlib/heapq.pyi +5 -0
  26. package/dist/typeshed-fallback/stdlib/html/parser.pyi +2 -1
  27. package/dist/typeshed-fallback/stdlib/http/client.pyi +1 -0
  28. package/dist/typeshed-fallback/stdlib/imaplib.pyi +2 -1
  29. package/dist/typeshed-fallback/stdlib/importlib/readers.pyi +2 -2
  30. package/dist/typeshed-fallback/stdlib/importlib/resources/abc.pyi +3 -2
  31. package/dist/typeshed-fallback/stdlib/importlib/resources/simple.pyi +2 -1
  32. package/dist/typeshed-fallback/stdlib/importlib/util.pyi +15 -1
  33. package/dist/typeshed-fallback/stdlib/ipaddress.pyi +1 -1
  34. package/dist/typeshed-fallback/stdlib/locale.pyi +4 -0
  35. package/dist/typeshed-fallback/stdlib/mimetypes.pyi +6 -6
  36. package/dist/typeshed-fallback/stdlib/mmap.pyi +12 -12
  37. package/dist/typeshed-fallback/stdlib/multiprocessing/dummy/__init__.pyi +20 -8
  38. package/dist/typeshed-fallback/stdlib/multiprocessing/managers.pyi +4 -1
  39. package/dist/typeshed-fallback/stdlib/multiprocessing/process.pyi +4 -0
  40. package/dist/typeshed-fallback/stdlib/multiprocessing/synchronize.pyi +3 -0
  41. package/dist/typeshed-fallback/stdlib/optparse.pyi +1 -1
  42. package/dist/typeshed-fallback/stdlib/os/__init__.pyi +217 -127
  43. package/dist/typeshed-fallback/stdlib/parser.pyi +4 -4
  44. package/dist/typeshed-fallback/stdlib/pathlib/__init__.pyi +11 -0
  45. package/dist/typeshed-fallback/stdlib/pdb.pyi +14 -4
  46. package/dist/typeshed-fallback/stdlib/pyexpat/__init__.pyi +6 -0
  47. package/dist/typeshed-fallback/stdlib/select.pyi +8 -4
  48. package/dist/typeshed-fallback/stdlib/socket.pyi +15 -0
  49. package/dist/typeshed-fallback/stdlib/sqlite3/__init__.pyi +3 -2
  50. package/dist/typeshed-fallback/stdlib/ssl.pyi +3 -0
  51. package/dist/typeshed-fallback/stdlib/stat.pyi +108 -1
  52. package/dist/typeshed-fallback/stdlib/subprocess.pyi +60 -61
  53. package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +41 -4
  54. package/dist/typeshed-fallback/stdlib/sys/_monitoring.pyi +8 -4
  55. package/dist/typeshed-fallback/stdlib/sysconfig.pyi +13 -4
  56. package/dist/typeshed-fallback/stdlib/tarfile.pyi +6 -6
  57. package/dist/typeshed-fallback/stdlib/threading.pyi +9 -4
  58. package/dist/typeshed-fallback/stdlib/tkinter/constants.pyi +6 -6
  59. package/dist/typeshed-fallback/stdlib/tkinter/ttk.pyi +14 -6
  60. package/dist/typeshed-fallback/stdlib/types.pyi +8 -11
  61. package/dist/typeshed-fallback/stdlib/typing.pyi +18 -12
  62. package/dist/typeshed-fallback/stdlib/typing_extensions.pyi +1 -0
  63. package/dist/typeshed-fallback/stdlib/unittest/mock.pyi +1 -0
  64. package/dist/typeshed-fallback/stdlib/unittest/util.pyi +19 -2
  65. package/dist/typeshed-fallback/stdlib/urllib/request.pyi +7 -0
  66. package/dist/typeshed-fallback/stdlib/uuid.pyi +6 -5
  67. package/dist/typeshed-fallback/stdlib/winreg.pyi +3 -3
  68. package/dist/typeshed-fallback/stdlib/xml/etree/ElementTree.pyi +1 -0
  69. package/dist/typeshed-fallback/stdlib/zipfile/__init__.pyi +2 -0
  70. package/dist/typeshed-fallback/stdlib/zlib.pyi +2 -2
  71. package/dist/typeshed-fallback/stubs/Authlib/METADATA.toml +1 -2
  72. package/dist/typeshed-fallback/stubs/Authlib/authlib/common/urls.pyi +1 -1
  73. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/async_app.pyi +4 -3
  74. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/async_openid.pyi +4 -2
  75. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/framework_integration.pyi +2 -2
  76. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/registry.pyi +1 -1
  77. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/sync_app.pyi +3 -3
  78. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/base_client/sync_openid.pyi +4 -2
  79. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_client/__init__.pyi +10 -0
  80. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_client/apps.pyi +14 -0
  81. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_client/integration.pyi +11 -0
  82. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth1/__init__.pyi +4 -0
  83. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth1/authorization_server.pyi +26 -0
  84. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth1/nonce.pyi +1 -0
  85. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth1/resource_protector.pyi +14 -0
  86. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth2/__init__.pyi +8 -0
  87. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth2/authorization_server.pyi +24 -0
  88. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth2/endpoints.pyi +5 -0
  89. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth2/requests.pyi +20 -0
  90. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth2/resource_protector.pyi +15 -0
  91. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/django_oauth2/signals.pyi +6 -0
  92. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_client/__init__.pyi +20 -0
  93. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_client/apps.pyi +18 -0
  94. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_client/integration.pyi +10 -0
  95. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth1/__init__.pyi +7 -0
  96. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth1/authorization_server.pyi +29 -0
  97. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth1/cache.pyi +8 -0
  98. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth1/resource_protector.pyi +18 -0
  99. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth2/__init__.pyi +7 -0
  100. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth2/authorization_server.pyi +23 -0
  101. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth2/errors.pyi +14 -0
  102. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth2/requests.pyi +27 -0
  103. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth2/resource_protector.pyi +15 -0
  104. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/flask_oauth2/signals.pyi +5 -0
  105. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/httpx_client/__init__.pyi +37 -0
  106. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/httpx_client/assertion_client.pyi +50 -0
  107. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/httpx_client/oauth1_client.pyi +56 -0
  108. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/httpx_client/oauth2_client.pyi +72 -0
  109. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/httpx_client/utils.pyi +7 -0
  110. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/requests_client/__init__.pyi +28 -0
  111. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/requests_client/assertion_session.pyi +31 -0
  112. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/requests_client/oauth1_session.pyi +29 -0
  113. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/requests_client/oauth2_session.pyi +43 -0
  114. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/requests_client/utils.pyi +6 -0
  115. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/sqla_oauth2/__init__.pyi +20 -0
  116. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/sqla_oauth2/client_mixin.pyi +55 -0
  117. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/sqla_oauth2/functions.pyi +21 -0
  118. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/sqla_oauth2/tokens_mixins.pyi +39 -0
  119. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/starlette_client/__init__.pyi +14 -0
  120. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/starlette_client/apps.pyi +16 -0
  121. package/dist/typeshed-fallback/stubs/Authlib/authlib/integrations/starlette_client/integration.pyi +13 -0
  122. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/_jwe_algorithms.pyi +12 -10
  123. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/drafts/_jwe_enc_cryptography.pyi +2 -2
  124. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/jwk.pyi +6 -1
  125. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/jws.pyi +6 -4
  126. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7515/models.pyi +3 -2
  127. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/jwe.pyi +9 -8
  128. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7516/models.pyi +12 -11
  129. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/_cryptography_key.pyi +35 -1
  130. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/asymmetric_key.pyi +6 -5
  131. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/base_key.pyi +8 -8
  132. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/jwk.pyi +1 -1
  133. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7517/key_set.pyi +3 -2
  134. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_algs.pyi +28 -23
  135. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jwe_encs.pyi +6 -5
  136. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/jws_algs.pyi +1 -1
  137. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/oct_key.pyi +5 -4
  138. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/rsa_key.pyi +2 -1
  139. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7518/util.pyi +4 -2
  140. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc7519/jwt.pyi +2 -2
  141. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc8037/jws_eddsa.pyi +4 -2
  142. package/dist/typeshed-fallback/stubs/Authlib/authlib/jose/rfc8037/okp_key.pyi +2 -2
  143. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/client.pyi +2 -2
  144. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/authorization_server.pyi +7 -7
  145. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/base_server.pyi +2 -2
  146. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/client_auth.pyi +6 -6
  147. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/errors.pyi +1 -1
  148. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/models.pyi +8 -8
  149. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/parameters.pyi +1 -1
  150. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/resource_protector.pyi +4 -2
  151. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/rsa.pyi +1 -1
  152. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/signature.pyi +20 -18
  153. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth1/rfc5849/util.pyi +2 -2
  154. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/base.pyi +1 -1
  155. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/client.pyi +1 -1
  156. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/authorization_server.pyi +1 -1
  157. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/authorization_code.pyi +2 -2
  158. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/base.pyi +1 -1
  159. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/grants/resource_owner_password_credentials.pyi +1 -1
  160. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/parameters.pyi +5 -3
  161. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/resource_protector.pyi +1 -1
  162. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/token_endpoint.pyi +2 -2
  163. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6749/wrappers.pyi +1 -1
  164. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/errors.pyi +1 -1
  165. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/parameters.pyi +1 -1
  166. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc6750/validator.pyi +1 -1
  167. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7009/revocation.pyi +2 -2
  168. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/assertion.pyi +3 -3
  169. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/auth.pyi +2 -2
  170. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/client.pyi +5 -3
  171. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7523/jwt_bearer.pyi +6 -5
  172. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7591/endpoint.pyi +4 -4
  173. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7592/endpoint.pyi +8 -8
  174. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/introspection.pyi +3 -3
  175. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc7662/token_validator.pyi +1 -1
  176. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8414/well_known.pyi +1 -1
  177. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/device_code.pyi +3 -3
  178. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/endpoint.pyi +2 -2
  179. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc8628/models.pyi +4 -4
  180. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/introspection.pyi +1 -1
  181. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/revocation.pyi +3 -2
  182. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/token.pyi +1 -1
  183. package/dist/typeshed-fallback/stubs/Authlib/authlib/oauth2/rfc9068/token_validator.pyi +1 -1
  184. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/claims.pyi +6 -8
  185. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/code.pyi +2 -1
  186. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/hybrid.pyi +4 -4
  187. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/grants/implicit.pyi +6 -4
  188. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/userinfo.pyi +1 -1
  189. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/core/util.pyi +7 -1
  190. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/discovery/models.pyi +1 -3
  191. package/dist/typeshed-fallback/stubs/Authlib/authlib/oidc/discovery/well_known.pyi +1 -1
  192. package/dist/typeshed-fallback/stubs/Deprecated/METADATA.toml +1 -1
  193. package/dist/typeshed-fallback/stubs/Deprecated/deprecated/__init__.pyi +7 -2
  194. package/dist/typeshed-fallback/stubs/Deprecated/deprecated/params.pyi +20 -0
  195. package/dist/typeshed-fallback/stubs/Flask-SocketIO/METADATA.toml +1 -1
  196. package/dist/typeshed-fallback/stubs/Markdown/METADATA.toml +1 -1
  197. package/dist/typeshed-fallback/stubs/Markdown/markdown/htmlparser.pyi +2 -0
  198. package/dist/typeshed-fallback/stubs/PyMySQL/pymysql/cursors.pyi +1 -0
  199. package/dist/typeshed-fallback/stubs/Pygments/pygments/console.pyi +4 -4
  200. package/dist/typeshed-fallback/stubs/Pygments/pygments/filter.pyi +3 -3
  201. package/dist/typeshed-fallback/stubs/Pygments/pygments/filters/__init__.pyi +14 -14
  202. package/dist/typeshed-fallback/stubs/Pygments/pygments/formatter.pyi +10 -9
  203. package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/__init__.pyi +2 -2
  204. package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/_mapping.pyi +2 -2
  205. package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/bbcode.pyi +5 -4
  206. package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/html.pyi +27 -26
  207. package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/img.pyi +33 -32
  208. package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/irc.pyi +7 -6
  209. package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/latex.pyi +21 -20
  210. package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/other.pyi +9 -8
  211. package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/pangomarkup.pyi +5 -4
  212. package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/rtf.pyi +6 -5
  213. package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/svg.pyi +15 -14
  214. package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/terminal.pyi +7 -6
  215. package/dist/typeshed-fallback/stubs/Pygments/pygments/formatters/terminal256.pyi +18 -17
  216. package/dist/typeshed-fallback/stubs/Pygments/pygments/lexers/__init__.pyi +6 -7
  217. package/dist/typeshed-fallback/stubs/Pygments/pygments/plugin.pyi +5 -5
  218. package/dist/typeshed-fallback/stubs/Pygments/pygments/regexopt.pyi +3 -3
  219. package/dist/typeshed-fallback/stubs/Pygments/pygments/scanner.pyi +6 -6
  220. package/dist/typeshed-fallback/stubs/Pygments/pygments/unistring.pyi +2 -2
  221. package/dist/typeshed-fallback/stubs/Pygments/pygments/util.pyi +5 -5
  222. package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/BufferedTokenStream.pyi +14 -15
  223. package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/CommonTokenFactory.pyi +15 -7
  224. package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/CommonTokenStream.pyi +1 -3
  225. package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/FileStream.pyi +2 -4
  226. package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/InputStream.pyi +13 -11
  227. package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/Lexer.pyi +43 -29
  228. package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/Parser.pyi +47 -34
  229. package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/ParserInterpreter.pyi +13 -13
  230. package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/ParserRuleContext.pyi +30 -23
  231. package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/Recognizer.pyi +26 -17
  232. package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/RuleContext.pyi +22 -20
  233. package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/Token.pyi +26 -25
  234. package/dist/typeshed-fallback/stubs/antlr4-python3-runtime/antlr4/tree/Tree.pyi +30 -26
  235. package/dist/typeshed-fallback/stubs/assertpy/assertpy/assertpy.pyi +13 -10
  236. package/dist/typeshed-fallback/stubs/assertpy/assertpy/base.pyi +4 -5
  237. package/dist/typeshed-fallback/stubs/assertpy/assertpy/collection.pyi +12 -4
  238. package/dist/typeshed-fallback/stubs/assertpy/assertpy/contains.pyi +10 -8
  239. package/dist/typeshed-fallback/stubs/assertpy/assertpy/dict.pyi +8 -6
  240. package/dist/typeshed-fallback/stubs/assertpy/assertpy/dynamic.pyi +1 -1
  241. package/dist/typeshed-fallback/stubs/assertpy/assertpy/extracting.pyi +4 -2
  242. package/dist/typeshed-fallback/stubs/assertpy/assertpy/file.pyi +2 -3
  243. package/dist/typeshed-fallback/stubs/atheris/METADATA.toml +6 -0
  244. package/dist/typeshed-fallback/stubs/atheris/atheris/__init__.pyi +9 -0
  245. package/dist/typeshed-fallback/stubs/atheris/atheris/function_hooks.pyi +14 -0
  246. package/dist/typeshed-fallback/stubs/atheris/atheris/import_hook.pyi +36 -0
  247. package/dist/typeshed-fallback/stubs/atheris/atheris/instrument_bytecode.pyi +7 -0
  248. package/dist/typeshed-fallback/stubs/atheris/atheris/utils.pyi +18 -0
  249. package/dist/typeshed-fallback/stubs/atheris/atheris/version_dependent.pyi +27 -0
  250. package/dist/typeshed-fallback/stubs/aws-xray-sdk/METADATA.toml +1 -1
  251. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/__init__.pyi +2 -1
  252. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/async_context.pyi +15 -5
  253. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/async_recorder.pyi +28 -9
  254. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/context.pyi +7 -7
  255. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/daemon_config.pyi +9 -7
  256. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/emitters/udp_emitter.pyi +2 -2
  257. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/lambda_launcher.pyi +8 -12
  258. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/models/entity.pyi +1 -1
  259. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/models/facade_segment.pyi +1 -1
  260. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/models/http.pyi +9 -9
  261. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/models/segment.pyi +1 -1
  262. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/models/subsegment.pyi +3 -2
  263. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/models/throwable.pyi +11 -3
  264. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/patcher.pyi +3 -2
  265. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/plugins/ec2_plugin.pyi +3 -3
  266. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/plugins/ecs_plugin.pyi +2 -2
  267. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/plugins/elasticbeanstalk_plugin.pyi +3 -3
  268. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/recorder.pyi +19 -15
  269. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/rule_cache.pyi +1 -1
  270. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/sampler.pyi +3 -1
  271. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/sampling_rule.pyi +23 -13
  272. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core/sampling/target_poller.pyi +5 -1
  273. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/ext/psycopg/__init__.pyi +3 -0
  274. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/ext/psycopg/patch.pyi +1 -0
  275. package/dist/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/ext/util.pyi +1 -1
  276. package/dist/typeshed-fallback/stubs/bleach/METADATA.toml +1 -1
  277. package/dist/typeshed-fallback/stubs/bleach/bleach/html5lib_shim.pyi +1 -1
  278. package/dist/typeshed-fallback/stubs/bleach/bleach/linkifier.pyi +1 -1
  279. package/dist/typeshed-fallback/stubs/bleach/bleach/sanitizer.pyi +2 -2
  280. package/dist/typeshed-fallback/stubs/braintree/METADATA.toml +1 -1
  281. package/dist/typeshed-fallback/stubs/braintree/braintree/address.pyi +8 -4
  282. package/dist/typeshed-fallback/stubs/braintree/braintree/address_gateway.pyi +3 -2
  283. package/dist/typeshed-fallback/stubs/braintree/braintree/client_token.pyi +5 -1
  284. package/dist/typeshed-fallback/stubs/braintree/braintree/client_token_gateway.pyi +5 -3
  285. package/dist/typeshed-fallback/stubs/braintree/braintree/error_codes.pyi +11 -2
  286. package/dist/typeshed-fallback/stubs/braintree/braintree/payment_method.pyi +30 -1
  287. package/dist/typeshed-fallback/stubs/braintree/braintree/payment_method_gateway.pyi +30 -2
  288. package/dist/typeshed-fallback/stubs/braintree/braintree/subscription.pyi +10 -5
  289. package/dist/typeshed-fallback/stubs/braintree/braintree/subscription_details.pyi +5 -1
  290. package/dist/typeshed-fallback/stubs/braintree/braintree/subscription_gateway.pyi +12 -5
  291. package/dist/typeshed-fallback/stubs/braintree/braintree/transaction.pyi +6 -2
  292. package/dist/typeshed-fallback/stubs/braintree/braintree/transaction_gateway.pyi +5 -2
  293. package/dist/typeshed-fallback/stubs/colorful/METADATA.toml +2 -0
  294. package/dist/typeshed-fallback/stubs/colorful/colorful/ansi.pyi +14 -0
  295. package/dist/typeshed-fallback/stubs/colorful/colorful/colors.pyi +6 -0
  296. package/dist/typeshed-fallback/stubs/colorful/colorful/core.pyi +102 -0
  297. package/dist/typeshed-fallback/stubs/colorful/colorful/styles.pyi +4 -0
  298. package/dist/typeshed-fallback/stubs/colorful/colorful/terminal.pyi +16 -0
  299. package/dist/typeshed-fallback/stubs/colorful/colorful/utils.pyi +2 -0
  300. package/dist/typeshed-fallback/stubs/decorator/decorator.pyi +2 -2
  301. package/dist/typeshed-fallback/stubs/django-filter/django_filters/filterset.pyi +3 -1
  302. package/dist/typeshed-fallback/stubs/docker/docker/api/container.pyi +6 -1
  303. package/dist/typeshed-fallback/stubs/docker/docker/api/daemon.pyi +12 -4
  304. package/dist/typeshed-fallback/stubs/docker/docker/api/exec_api.pyi +123 -7
  305. package/dist/typeshed-fallback/stubs/docker/docker/client.pyi +12 -8
  306. package/dist/typeshed-fallback/stubs/docker/docker/models/containers.pyi +27 -17
  307. package/dist/typeshed-fallback/stubs/docker/docker/models/images.pyi +1 -1
  308. package/dist/typeshed-fallback/stubs/docker/docker/models/resource.pyi +5 -5
  309. package/dist/typeshed-fallback/stubs/docutils/METADATA.toml +1 -1
  310. package/dist/typeshed-fallback/stubs/docutils/docutils/parsers/rst/directives/body.pyi +10 -0
  311. package/dist/typeshed-fallback/stubs/et_xmlfile/METADATA.toml +2 -0
  312. package/dist/typeshed-fallback/stubs/et_xmlfile/et_xmlfile/__init__.pyi +9 -0
  313. package/dist/typeshed-fallback/stubs/et_xmlfile/et_xmlfile/incremental_tree.pyi +170 -0
  314. package/dist/typeshed-fallback/stubs/et_xmlfile/et_xmlfile/xmlfile.pyi +37 -0
  315. package/dist/typeshed-fallback/stubs/fanstatic/METADATA.toml +1 -1
  316. package/dist/typeshed-fallback/stubs/flake8-bugbear/METADATA.toml +1 -1
  317. package/dist/typeshed-fallback/stubs/flake8-bugbear/bugbear.pyi +37 -65
  318. package/dist/typeshed-fallback/stubs/flake8-builtins/METADATA.toml +1 -1
  319. package/dist/typeshed-fallback/stubs/flake8-simplify/METADATA.toml +1 -1
  320. package/dist/typeshed-fallback/stubs/flake8-simplify/flake8_simplify/__init__.pyi +1 -0
  321. package/dist/typeshed-fallback/stubs/flake8-simplify/flake8_simplify/constants.pyi +6 -3
  322. package/dist/typeshed-fallback/stubs/flake8-simplify/flake8_simplify/utils.pyi +0 -1
  323. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/drawing.pyi +145 -81
  324. package/dist/typeshed-fallback/stubs/fpdf2/fpdf/text_region.pyi +1 -1
  325. package/dist/typeshed-fallback/stubs/geopandas/METADATA.toml +1 -1
  326. package/dist/typeshed-fallback/stubs/geopandas/geopandas/array.pyi +7 -14
  327. package/dist/typeshed-fallback/stubs/geopandas/geopandas/geodataframe.pyi +1 -0
  328. package/dist/typeshed-fallback/stubs/gevent/METADATA.toml +2 -2
  329. package/dist/typeshed-fallback/stubs/gevent/gevent/events.pyi +1 -12
  330. package/dist/typeshed-fallback/stubs/gevent/gevent/libuv/watcher.pyi +1 -0
  331. package/dist/typeshed-fallback/stubs/gevent/gevent/os.pyi +1 -0
  332. package/dist/typeshed-fallback/stubs/gevent/gevent/signal.pyi +2 -1
  333. package/dist/typeshed-fallback/stubs/google-cloud-ndb/METADATA.toml +1 -1
  334. package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/_cache.pyi +9 -10
  335. package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/_datastore_query.pyi +1 -2
  336. package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/_eventloop.pyi +11 -10
  337. package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/blobstore.pyi +6 -6
  338. package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/context.pyi +21 -21
  339. package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/exceptions.pyi +2 -2
  340. package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/global_cache.pyi +13 -14
  341. package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/key.pyi +2 -3
  342. package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/metadata.pyi +1 -2
  343. package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/polymodel.pyi +2 -2
  344. package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/query.pyi +26 -27
  345. package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/stats.pyi +37 -37
  346. package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/tasklets.pyi +7 -7
  347. package/dist/typeshed-fallback/stubs/google-cloud-ndb/google/cloud/ndb/utils.pyi +4 -4
  348. package/dist/typeshed-fallback/stubs/greenlet/METADATA.toml +1 -1
  349. package/dist/typeshed-fallback/stubs/gunicorn/gunicorn/arbiter.pyi +2 -2
  350. package/dist/typeshed-fallback/stubs/gunicorn/gunicorn/sock.pyi +2 -0
  351. package/dist/typeshed-fallback/stubs/html5lib/METADATA.toml +1 -0
  352. package/dist/typeshed-fallback/stubs/html5lib/html5lib/_ihatexml.pyi +21 -23
  353. package/dist/typeshed-fallback/stubs/html5lib/html5lib/_inputstream.pyi +79 -71
  354. package/dist/typeshed-fallback/stubs/html5lib/html5lib/_tokenizer.pyi +87 -51
  355. package/dist/typeshed-fallback/stubs/html5lib/html5lib/_utils.pyi +18 -11
  356. package/dist/typeshed-fallback/stubs/html5lib/html5lib/constants.pyi +1 -3
  357. package/dist/typeshed-fallback/stubs/html5lib/html5lib/filters/alphabeticalattributes.pyi +3 -2
  358. package/dist/typeshed-fallback/stubs/html5lib/html5lib/filters/base.pyi +9 -6
  359. package/dist/typeshed-fallback/stubs/html5lib/html5lib/filters/inject_meta_charset.pyi +5 -3
  360. package/dist/typeshed-fallback/stubs/html5lib/html5lib/filters/lint.pyi +5 -3
  361. package/dist/typeshed-fallback/stubs/html5lib/html5lib/filters/optionaltags.pyi +1 -2
  362. package/dist/typeshed-fallback/stubs/html5lib/html5lib/filters/sanitizer.pyi +6 -6
  363. package/dist/typeshed-fallback/stubs/html5lib/html5lib/filters/whitespace.pyi +2 -2
  364. package/dist/typeshed-fallback/stubs/html5lib/html5lib/html5parser.pyi +2 -2
  365. package/dist/typeshed-fallback/stubs/html5lib/html5lib/serializer.pyi +75 -19
  366. package/dist/typeshed-fallback/stubs/html5lib/html5lib/treeadapters/sax.pyi +0 -3
  367. package/dist/typeshed-fallback/stubs/hvac/METADATA.toml +1 -1
  368. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/__init__.pyi +3 -4
  369. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/aws.pyi +2 -2
  370. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/azure.pyi +3 -2
  371. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/gcp.pyi +3 -2
  372. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/kubernetes.pyi +1 -0
  373. package/dist/typeshed-fallback/stubs/hvac/hvac/api/auth_methods/legacy_mfa.pyi +2 -4
  374. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/__init__.pyi +3 -4
  375. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/identity.pyi +2 -2
  376. package/dist/typeshed-fallback/stubs/hvac/hvac/api/secrets_engines/kv.pyi +3 -3
  377. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/__init__.pyi +3 -4
  378. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/system_backend_mixin.pyi +2 -2
  379. package/dist/typeshed-fallback/stubs/hvac/hvac/api/system_backend/wrapping.pyi +2 -3
  380. package/dist/typeshed-fallback/stubs/hvac/hvac/api/vault_api_category.pyi +2 -3
  381. package/dist/typeshed-fallback/stubs/icalendar/METADATA.toml +1 -1
  382. package/dist/typeshed-fallback/stubs/icalendar/icalendar/__init__.pyi +0 -1
  383. package/dist/typeshed-fallback/stubs/icalendar/icalendar/alarms.pyi +2 -2
  384. package/dist/typeshed-fallback/stubs/icalendar/icalendar/cal.pyi +16 -9
  385. package/dist/typeshed-fallback/stubs/icalendar/icalendar/parser.pyi +2 -1
  386. package/dist/typeshed-fallback/stubs/icalendar/icalendar/prop.pyi +3 -3
  387. package/dist/typeshed-fallback/stubs/icalendar/icalendar/timezone/zoneinfo.pyi +1 -5
  388. package/dist/typeshed-fallback/stubs/ldap3/ldap3/__init__.pyi +5 -5
  389. package/dist/typeshed-fallback/stubs/ldap3/ldap3/abstract/__init__.pyi +3 -3
  390. package/dist/typeshed-fallback/stubs/ldap3/ldap3/abstract/attrDef.pyi +13 -13
  391. package/dist/typeshed-fallback/stubs/ldap3/ldap3/abstract/attribute.pyi +9 -9
  392. package/dist/typeshed-fallback/stubs/ldap3/ldap3/abstract/cursor.pyi +28 -27
  393. package/dist/typeshed-fallback/stubs/ldap3/ldap3/abstract/entry.pyi +11 -11
  394. package/dist/typeshed-fallback/stubs/ldap3/ldap3/core/exceptions.pyi +8 -8
  395. package/dist/typeshed-fallback/stubs/ldap3/ldap3/core/pooling.pyi +15 -15
  396. package/dist/typeshed-fallback/stubs/ldap3/ldap3/core/rdns.pyi +7 -7
  397. package/dist/typeshed-fallback/stubs/ldap3/ldap3/core/results.pyi +3 -3
  398. package/dist/typeshed-fallback/stubs/ldap3/ldap3/core/server.pyi +15 -14
  399. package/dist/typeshed-fallback/stubs/ldap3/ldap3/core/timezone.pyi +3 -3
  400. package/dist/typeshed-fallback/stubs/ldap3/ldap3/core/tls.pyi +13 -13
  401. package/dist/typeshed-fallback/stubs/ldap3/ldap3/core/usage.pyi +6 -6
  402. package/dist/typeshed-fallback/stubs/ldap3/ldap3/extend/__init__.pyi +4 -4
  403. package/dist/typeshed-fallback/stubs/ldap3/ldap3/extend/microsoft/dirSync.pyi +12 -12
  404. package/dist/typeshed-fallback/stubs/ldap3/ldap3/extend/microsoft/persistentSearch.pyi +7 -7
  405. package/dist/typeshed-fallback/stubs/ldap3/ldap3/extend/standard/PersistentSearch.pyi +13 -13
  406. package/dist/typeshed-fallback/stubs/ldap3/ldap3/operation/modify.pyi +2 -2
  407. package/dist/typeshed-fallback/stubs/ldap3/ldap3/operation/search.pyi +5 -5
  408. package/dist/typeshed-fallback/stubs/ldap3/ldap3/protocol/formatters/formatters.pyi +2 -2
  409. package/dist/typeshed-fallback/stubs/ldap3/ldap3/protocol/formatters/standard.pyi +2 -2
  410. package/dist/typeshed-fallback/stubs/ldap3/ldap3/protocol/oid.pyi +2 -2
  411. package/dist/typeshed-fallback/stubs/ldap3/ldap3/protocol/rfc2849.pyi +2 -2
  412. package/dist/typeshed-fallback/stubs/ldap3/ldap3/protocol/rfc4512.pyi +59 -59
  413. package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/asyncStream.pyi +7 -7
  414. package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/asynchronous.pyi +6 -6
  415. package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/base.pyi +7 -7
  416. package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/ldifProducer.pyi +4 -4
  417. package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/mockAsync.pyi +2 -2
  418. package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/mockBase.pyi +9 -9
  419. package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/mockSync.pyi +2 -2
  420. package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/restartable.pyi +4 -4
  421. package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/reusable.pyi +20 -20
  422. package/dist/typeshed-fallback/stubs/ldap3/ldap3/strategy/sync.pyi +3 -3
  423. package/dist/typeshed-fallback/stubs/ldap3/ldap3/utils/config.pyi +2 -2
  424. package/dist/typeshed-fallback/stubs/ldap3/ldap3/utils/hashed.pyi +3 -3
  425. package/dist/typeshed-fallback/stubs/ldap3/ldap3/utils/log.pyi +3 -3
  426. package/dist/typeshed-fallback/stubs/ldap3/ldap3/utils/ntlm.pyi +41 -41
  427. package/dist/typeshed-fallback/stubs/ldap3/ldap3/utils/repr.pyi +2 -2
  428. package/dist/typeshed-fallback/stubs/lupa/METADATA.toml +1 -1
  429. package/dist/typeshed-fallback/stubs/netaddr/netaddr/ip/__init__.pyi +4 -1
  430. package/dist/typeshed-fallback/stubs/netaddr/netaddr/ip/iana.pyi +8 -8
  431. package/dist/typeshed-fallback/stubs/networkx/METADATA.toml +1 -1
  432. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/__init__.pyi +1 -0
  433. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/steinertree.pyi +4 -0
  434. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/approximation/treewidth.pyi +11 -7
  435. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/assortativity/mixing.pyi +4 -4
  436. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/matching.pyi +3 -3
  437. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/bipartite/matrix.pyi +8 -1
  438. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/closeness.pyi +2 -2
  439. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/current_flow_betweenness.pyi +2 -0
  440. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/eigenvector.pyi +3 -2
  441. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/katz.pyi +5 -4
  442. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/percolation.pyi +3 -2
  443. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/reaching.pyi +3 -2
  444. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/centrality/subgraph_alg.pyi +2 -2
  445. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/cluster.pyi +13 -3
  446. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/__init__.pyi +1 -1
  447. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/bipartitions.pyi +22 -0
  448. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/core.pyi +6 -5
  449. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/dag.pyi +0 -3
  450. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/distance_regular.pyi +2 -2
  451. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/isomorphism/ismags.pyi +17 -4
  452. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/non_randomness.pyi +1 -1
  453. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/perfect_graph.pyi +7 -0
  454. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/planarity.pyi +13 -4
  455. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/similarity.pyi +19 -3
  456. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/threshold.pyi +0 -1
  457. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/__init__.pyi +1 -0
  458. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/tree/distance_measures.pyi +10 -0
  459. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/wiener.pyi +3 -1
  460. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/digraph.pyi +13 -7
  461. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/function.pyi +3 -1
  462. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/graph.pyi +12 -6
  463. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multidigraph.pyi +10 -9
  464. package/dist/typeshed-fallback/stubs/networkx/networkx/classes/multigraph.pyi +23 -13
  465. package/dist/typeshed-fallback/stubs/networkx/networkx/drawing/layout.pyi +0 -1
  466. package/dist/typeshed-fallback/stubs/networkx/networkx/drawing/nx_pylab.pyi +20 -0
  467. package/dist/typeshed-fallback/stubs/networkx/networkx/generators/expanders.pyi +9 -1
  468. package/dist/typeshed-fallback/stubs/networkx/networkx/generators/random_graphs.pyi +21 -16
  469. package/dist/typeshed-fallback/stubs/networkx/networkx/generators/small.pyi +3 -0
  470. package/dist/typeshed-fallback/stubs/networkx/networkx/readwrite/json_graph/node_link.pyi +2 -24
  471. package/dist/typeshed-fallback/stubs/networkx/networkx/utils/misc.pyi +1 -1
  472. package/dist/typeshed-fallback/stubs/networkx/networkx/utils/random_sequence.pyi +5 -0
  473. package/dist/typeshed-fallback/stubs/networkx/networkx/utils/union_find.pyi +12 -10
  474. package/dist/typeshed-fallback/stubs/parsimonious/METADATA.toml +1 -1
  475. package/dist/typeshed-fallback/stubs/parsimonious/parsimonious/exceptions.pyi +5 -3
  476. package/dist/typeshed-fallback/stubs/peewee/METADATA.toml +1 -1
  477. package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/internal/containers.pyi +8 -3
  478. package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/internal/well_known_types.pyi +2 -2
  479. package/dist/typeshed-fallback/stubs/protobuf/google/protobuf/message.pyi +1 -1
  480. package/dist/typeshed-fallback/stubs/psutil/METADATA.toml +1 -1
  481. package/dist/typeshed-fallback/stubs/psutil/psutil/__init__.pyi +57 -77
  482. package/dist/typeshed-fallback/stubs/psutil/psutil/_common.pyi +135 -262
  483. package/dist/typeshed-fallback/stubs/psutil/psutil/_ntuples.pyi +384 -0
  484. package/dist/typeshed-fallback/stubs/psutil/psutil/_psaix.pyi +100 -86
  485. package/dist/typeshed-fallback/stubs/psutil/psutil/_psbsd.pyi +213 -168
  486. package/dist/typeshed-fallback/stubs/psutil/psutil/_pslinux.pyi +181 -237
  487. package/dist/typeshed-fallback/stubs/psutil/psutil/_psosx.pyi +81 -100
  488. package/dist/typeshed-fallback/stubs/psutil/psutil/_psposix.pyi +78 -4
  489. package/dist/typeshed-fallback/stubs/psutil/psutil/_pssunos.pyi +141 -119
  490. package/dist/typeshed-fallback/stubs/psutil/psutil/_psutil_aix.pyi +58 -0
  491. package/dist/typeshed-fallback/stubs/psutil/psutil/_psutil_bsd.pyi +141 -0
  492. package/dist/typeshed-fallback/stubs/psutil/psutil/_psutil_linux.pyi +47 -15
  493. package/dist/typeshed-fallback/stubs/psutil/psutil/_psutil_osx.pyi +77 -49
  494. package/dist/typeshed-fallback/stubs/psutil/psutil/_psutil_sunos.pyi +63 -0
  495. package/dist/typeshed-fallback/stubs/psutil/psutil/_psutil_windows.pyi +102 -91
  496. package/dist/typeshed-fallback/stubs/psutil/psutil/_pswindows.pyi +175 -200
  497. package/dist/typeshed-fallback/stubs/pycurl/pycurl.pyi +5 -3
  498. package/dist/typeshed-fallback/stubs/pyinstaller/METADATA.toml +1 -1
  499. package/dist/typeshed-fallback/stubs/python-crontab/crontab.pyi +4 -4
  500. package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/parser/_parser.pyi +6 -7
  501. package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/rrule.pyi +28 -25
  502. package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/tz/_common.pyi +8 -3
  503. package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/tz/tz.pyi +21 -19
  504. package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/tz/win.pyi +5 -4
  505. package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/zoneinfo/__init__.pyi +2 -1
  506. package/dist/typeshed-fallback/stubs/python-dateutil/dateutil/zoneinfo/rebuild.pyi +5 -1
  507. package/dist/typeshed-fallback/stubs/python-jenkins/jenkins/__init__.pyi +13 -6
  508. package/dist/typeshed-fallback/stubs/pytz/pytz/lazy.pyi +2 -2
  509. package/dist/typeshed-fallback/stubs/pyxdg/xdg/RecentFiles.pyi +5 -7
  510. package/dist/typeshed-fallback/stubs/qrbill/METADATA.toml +1 -1
  511. package/dist/typeshed-fallback/stubs/qrbill/qrbill/bill.pyi +10 -0
  512. package/dist/typeshed-fallback/stubs/regex/METADATA.toml +1 -1
  513. package/dist/typeshed-fallback/stubs/regex/regex/__init__.pyi +64 -1
  514. package/dist/typeshed-fallback/stubs/regex/regex/{regex.pyi → _main.pyi} +66 -0
  515. package/dist/typeshed-fallback/stubs/regex/regex/_regex.pyi +1 -1
  516. package/dist/typeshed-fallback/stubs/regex/regex/_regex_core.pyi +59 -19
  517. package/dist/typeshed-fallback/stubs/reportlab/METADATA.toml +1 -1
  518. package/dist/typeshed-fallback/stubs/reportlab/reportlab/lib/testutils.pyi +27 -25
  519. package/dist/typeshed-fallback/stubs/reportlab/reportlab/platypus/flowables.pyi +1 -1
  520. package/dist/typeshed-fallback/stubs/requests/requests/exceptions.pyi +2 -1
  521. package/dist/typeshed-fallback/stubs/seaborn/seaborn/_core/data.pyi +2 -3
  522. package/dist/typeshed-fallback/stubs/seaborn/seaborn/_core/typing.pyi +0 -2
  523. package/dist/typeshed-fallback/stubs/seaborn/seaborn/categorical.pyi +1 -1
  524. package/dist/typeshed-fallback/stubs/setuptools/setuptools/__init__.pyi +102 -45
  525. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/cmd.pyi +6 -3
  526. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compilers/C/base.pyi +8 -2
  527. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/compilers/C/msvc.pyi +3 -0
  528. package/dist/typeshed-fallback/stubs/setuptools/setuptools/_distutils/spawn.pyi +14 -4
  529. package/dist/typeshed-fallback/stubs/simple-websocket/METADATA.toml +3 -0
  530. package/dist/typeshed-fallback/stubs/simple-websocket/simple_websocket/__init__.pyi +3 -0
  531. package/dist/typeshed-fallback/stubs/simple-websocket/simple_websocket/aiows.pyi +130 -0
  532. package/dist/typeshed-fallback/stubs/simple-websocket/simple_websocket/asgi.pyi +44 -0
  533. package/dist/typeshed-fallback/stubs/simple-websocket/simple_websocket/errors.pyi +12 -0
  534. package/dist/typeshed-fallback/stubs/simple-websocket/simple_websocket/ws.pyi +136 -0
  535. package/dist/typeshed-fallback/stubs/tensorflow/METADATA.toml +16 -0
  536. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/__init__.pyi +437 -0
  537. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/_aliases.pyi +70 -0
  538. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/audio.pyi +7 -0
  539. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/autodiff.pyi +63 -0
  540. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/autograph/__init__.pyi +17 -0
  541. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/autograph/experimental.pyi +30 -0
  542. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/bitwise.pyi +37 -0
  543. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/compiler/xla/service/hlo_pb2.pyi +2113 -0
  544. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/compiler/xla/service/hlo_profile_printer_data_pb2.pyi +187 -0
  545. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/compiler/xla/service/metrics_pb2.pyi +283 -0
  546. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/compiler/xla/service/test_compilation_environment_pb2.pyi +59 -0
  547. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/compiler/xla/service/xla_compile_result_pb2.pyi +167 -0
  548. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/compiler/xla/tsl/protobuf/bfc_memory_map_pb2.pyi +218 -0
  549. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/compiler/xla/tsl/protobuf/test_log_pb2.pyi +707 -0
  550. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/compiler/xla/xla_data_pb2.pyi +2681 -0
  551. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/compiler/xla/xla_pb2.pyi +2558 -0
  552. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/config/__init__.pyi +12 -0
  553. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/config/experimental.pyi +16 -0
  554. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/example/example_parser_configuration_pb2.pyi +153 -0
  555. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/example/example_pb2.pyi +330 -0
  556. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/example/feature_pb2.pyi +222 -0
  557. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/allocation_description_pb2.pyi +64 -0
  558. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/api_def_pb2.pyi +312 -0
  559. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/attr_value_pb2.pyi +274 -0
  560. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/cost_graph_pb2.pyi +229 -0
  561. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/cpp_shape_inference_pb2.pyi +110 -0
  562. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/dataset_metadata_pb2.pyi +25 -0
  563. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/dataset_options_pb2.pyi +720 -0
  564. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/dataset_pb2.pyi +116 -0
  565. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/device_attributes_pb2.pyi +140 -0
  566. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/full_type_pb2.pyi +617 -0
  567. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/function_pb2.pyi +309 -0
  568. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/graph_debug_info_pb2.pyi +210 -0
  569. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/graph_pb2.pyi +100 -0
  570. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/graph_transfer_info_pb2.pyi +290 -0
  571. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/kernel_def_pb2.pyi +116 -0
  572. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/log_memory_pb2.pyi +218 -0
  573. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/model_pb2.pyi +368 -0
  574. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/node_def_pb2.pyi +192 -0
  575. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/op_def_pb2.pyi +391 -0
  576. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/optimized_function_graph_pb2.pyi +166 -0
  577. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/reader_base_pb2.pyi +52 -0
  578. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/resource_handle_pb2.pyi +104 -0
  579. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/step_stats_pb2.pyi +332 -0
  580. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/summary_pb2.pyi +368 -0
  581. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/tensor_description_pb2.pyi +49 -0
  582. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/tensor_pb2.pyi +235 -0
  583. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/tensor_shape_pb2.pyi +74 -0
  584. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/tensor_slice_pb2.pyi +56 -0
  585. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/types_pb2.pyi +220 -0
  586. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/variable_pb2.pyi +229 -0
  587. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/framework/versions_pb2.pyi +57 -0
  588. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/__init__.pyi +0 -0
  589. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/bfc_memory_map_pb2.pyi +15 -0
  590. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/cluster_pb2.pyi +126 -0
  591. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/composite_tensor_variant_pb2.pyi +33 -0
  592. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/config_pb2.pyi +1867 -0
  593. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/control_flow_pb2.pyi +243 -0
  594. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/core_platform_payloads_pb2.pyi +66 -0
  595. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/data_service_pb2.pyi +243 -0
  596. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/debug_event_pb2.pyi +746 -0
  597. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/debug_pb2.pyi +199 -0
  598. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/device_filters_pb2.pyi +124 -0
  599. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/device_properties_pb2.pyi +154 -0
  600. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/error_codes_pb2.pyi +33 -0
  601. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/fingerprint_pb2.pyi +76 -0
  602. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/meta_graph_pb2.pyi +735 -0
  603. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/named_tensor_pb2.pyi +41 -0
  604. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/queue_runner_pb2.pyi +73 -0
  605. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/remote_tensor_handle_pb2.pyi +96 -0
  606. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/rewriter_config_pb2.pyi +588 -0
  607. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/rpc_options_pb2.pyi +9 -0
  608. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/saved_model_pb2.pyi +51 -0
  609. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/saved_object_graph_pb2.pyi +715 -0
  610. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/saver_pb2.pyi +113 -0
  611. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/service_config_pb2.pyi +275 -0
  612. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/snapshot_pb2.pyi +164 -0
  613. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/status_pb2.pyi +13 -0
  614. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/struct_pb2.pyi +536 -0
  615. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/tensor_bundle_pb2.pyi +160 -0
  616. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/tensorflow_server_pb2.pyi +125 -0
  617. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/tpu/compilation_result_pb2.pyi +85 -0
  618. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/tpu/dynamic_padding_pb2.pyi +47 -0
  619. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/tpu/optimization_parameters_pb2.pyi +1326 -0
  620. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/tpu/topology_pb2.pyi +149 -0
  621. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/tpu/tpu_embedding_configuration_pb2.pyi +326 -0
  622. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/trackable_object_graph_pb2.pyi +213 -0
  623. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/transport_options_pb2.pyi +28 -0
  624. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/protobuf/verifier_config_pb2.pyi +65 -0
  625. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/util/event_pb2.pyi +419 -0
  626. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/util/memmapped_file_system_pb2.pyi +65 -0
  627. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/util/saved_tensor_slice_pb2.pyi +171 -0
  628. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/core/util/test_log_pb2.pyi +24 -0
  629. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/data/__init__.pyi +272 -0
  630. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/data/experimental.pyi +32 -0
  631. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/distribute/__init__.pyi +3 -0
  632. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/distribute/coordinator.pyi +3 -0
  633. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/distribute/experimental/coordinator.pyi +11 -0
  634. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/dtypes.pyi +57 -0
  635. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/experimental/__init__.pyi +10 -0
  636. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/experimental/dtensor.pyi +19 -0
  637. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/feature_column/__init__.pyi +95 -0
  638. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/initializers.pyi +1 -0
  639. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/io/__init__.pyi +104 -0
  640. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/io/gfile.pyi +11 -0
  641. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/__init__.pyi +15 -0
  642. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/activations.pyi +35 -0
  643. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/callbacks.pyi +170 -0
  644. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/constraints.pyi +16 -0
  645. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/initializers.pyi +50 -0
  646. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/layers/__init__.pyi +446 -0
  647. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/losses.pyi +177 -0
  648. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/metrics.pyi +117 -0
  649. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/models.pyi +167 -0
  650. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/optimizers/__init__.pyi +7 -0
  651. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/optimizers/legacy/__init__.pyi +61 -0
  652. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/optimizers/schedules.pyi +103 -0
  653. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/keras/regularizers.pyi +21 -0
  654. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/linalg.pyi +55 -0
  655. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/math.pyi +298 -0
  656. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/nn.pyi +194 -0
  657. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/__init__.pyi +1 -0
  658. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/distribute/distribute_lib.pyi +5 -0
  659. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/feature_column/__init__.pyi +0 -0
  660. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/feature_column/feature_column_v2.pyi +273 -0
  661. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/feature_column/sequence_feature_column.pyi +30 -0
  662. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/framework/dtypes.pyi +7 -0
  663. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/keras/__init__.pyi +1 -0
  664. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/keras/protobuf/projector_config_pb2.pyi +129 -0
  665. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/keras/protobuf/saved_metadata_pb2.pyi +89 -0
  666. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/keras/protobuf/versions_pb2.pyi +63 -0
  667. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/trackable/__init__.pyi +0 -0
  668. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/trackable/autotrackable.pyi +3 -0
  669. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/trackable/base.pyi +5 -0
  670. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/trackable/resource.pyi +9 -0
  671. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/trackable/ressource.pyi +7 -0
  672. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/python/training/tracking/autotrackable.pyi +3 -0
  673. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/random.pyi +231 -0
  674. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/raw_ops.pyi +44 -0
  675. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/saved_model/__init__.pyi +125 -0
  676. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/saved_model/experimental.pyi +39 -0
  677. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/signal.pyi +6 -0
  678. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/sparse.pyi +31 -0
  679. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/strings.pyi +241 -0
  680. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/summary.pyi +58 -0
  681. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/train/__init__.pyi +74 -0
  682. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/train/experimental.pyi +12 -0
  683. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_config_pb2.pyi +156 -0
  684. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/tsl/protobuf/coordination_service_pb2.pyi +666 -0
  685. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/tsl/protobuf/distributed_runtime_payloads_pb2.pyi +69 -0
  686. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/tsl/protobuf/dnn_pb2.pyi +619 -0
  687. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/tsl/protobuf/error_codes_pb2.pyi +291 -0
  688. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/tsl/protobuf/histogram_pb2.pyi +78 -0
  689. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/tsl/protobuf/rpc_options_pb2.pyi +85 -0
  690. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/tsl/protobuf/status_pb2.pyi +34 -0
  691. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/types/__init__.pyi +1 -0
  692. package/dist/typeshed-fallback/stubs/tensorflow/tensorflow/types/experimental.pyi +30 -0
  693. package/dist/typeshed-fallback/stubs/ttkthemes/METADATA.toml +1 -1
  694. package/dist/typeshed-fallback/stubs/ttkthemes/ttkthemes/themed_style.pyi +1 -1
  695. package/dist/typeshed-fallback/stubs/ttkthemes/ttkthemes/themed_tk.pyi +11 -12
  696. package/dist/typeshed-fallback/stubs/tzdata/METADATA.toml +2 -0
  697. package/dist/typeshed-fallback/stubs/tzdata/tzdata/__init__.pyi +4 -0
  698. package/dist/typeshed-fallback/stubs/webencodings/METADATA.toml +2 -0
  699. package/dist/typeshed-fallback/stubs/webencodings/webencodings/__init__.pyi +33 -0
  700. package/dist/typeshed-fallback/stubs/webencodings/webencodings/labels.pyi +3 -0
  701. package/dist/typeshed-fallback/stubs/webencodings/webencodings/mklabels.pyi +5 -0
  702. package/dist/typeshed-fallback/stubs/webencodings/webencodings/x_user_defined.pyi +21 -0
  703. package/dist/typeshed-fallback/stubs/yt-dlp/METADATA.toml +1 -1
  704. package/dist/typeshed-fallback/stubs/yt-dlp/yt_dlp/__init__.pyi +2 -0
  705. package/dist/typeshed-fallback/stubs/yt-dlp/yt_dlp/extractor/common.pyi +1 -0
  706. package/dist/typeshed-fallback/stubs/yt-dlp/yt_dlp/globals.pyi +12 -1
  707. package/dist/typeshed-fallback/stubs/yt-dlp/yt_dlp/utils/_jsruntime.pyi +38 -0
  708. package/dist/typeshed-fallback/stubs/yt-dlp/yt_dlp/utils/_legacy.pyi +2 -68
  709. package/dist/typeshed-fallback/stubs/yt-dlp/yt_dlp/utils/_utils.pyi +1 -1
  710. package/package.json +7 -7
  711. package/dist/typeshed-fallback/stdlib/_typeshed/README.md +0 -34
  712. package/dist/typeshed-fallback/stubs/ExifRead/METADATA.toml +0 -3
  713. package/dist/typeshed-fallback/stubs/ExifRead/exifread/__init__.pyi +0 -17
  714. package/dist/typeshed-fallback/stubs/ExifRead/exifread/_types.pyi +0 -15
  715. package/dist/typeshed-fallback/stubs/ExifRead/exifread/classes.pyi +0 -47
  716. package/dist/typeshed-fallback/stubs/ExifRead/exifread/exceptions.pyi +0 -2
  717. package/dist/typeshed-fallback/stubs/ExifRead/exifread/exif_log.pyi +0 -24
  718. package/dist/typeshed-fallback/stubs/ExifRead/exifread/heic.pyi +0 -56
  719. package/dist/typeshed-fallback/stubs/ExifRead/exifread/jpeg.pyi +0 -7
  720. package/dist/typeshed-fallback/stubs/ExifRead/exifread/tags/__init__.pyi +0 -15
  721. package/dist/typeshed-fallback/stubs/ExifRead/exifread/tags/exif.pyi +0 -7
  722. package/dist/typeshed-fallback/stubs/ExifRead/exifread/tags/makernote/apple.pyi +0 -3
  723. package/dist/typeshed-fallback/stubs/ExifRead/exifread/tags/makernote/canon.pyi +0 -26
  724. package/dist/typeshed-fallback/stubs/ExifRead/exifread/tags/makernote/casio.pyi +0 -3
  725. package/dist/typeshed-fallback/stubs/ExifRead/exifread/tags/makernote/fujifilm.pyi +0 -3
  726. package/dist/typeshed-fallback/stubs/ExifRead/exifread/tags/makernote/nikon.pyi +0 -6
  727. package/dist/typeshed-fallback/stubs/ExifRead/exifread/tags/makernote/olympus.pyi +0 -6
  728. package/dist/typeshed-fallback/stubs/ExifRead/exifread/utils.pyi +0 -22
  729. package/dist/typeshed-fallback/stubs/networkx/networkx/algorithms/community/kernighan_lin.pyi +0 -16
  730. package/dist/typeshed-fallback/stubs/psutil/psutil/_psutil_posix.pyi +0 -34
  731. package/dist/typeshed-fallback/stubs/vobject/@tests/stubtest_allowlist.txt +0 -22
  732. /package/dist/typeshed-fallback/stubs/{ExifRead/exifread/tags/makernote → colorful/colorful}/__init__.pyi +0 -0
@@ -0,0 +1,1326 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import builtins
7
+ import sys
8
+ import typing
9
+
10
+ import google.protobuf.descriptor
11
+ import google.protobuf.internal.enum_type_wrapper
12
+ import google.protobuf.message
13
+ import google.protobuf.wrappers_pb2
14
+ import tensorflow.compiler.xla.service.hlo_pb2
15
+
16
+ if sys.version_info >= (3, 10):
17
+ import typing as typing_extensions
18
+ else:
19
+ import typing_extensions
20
+
21
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
22
+
23
+ @typing.final
24
+ class ClippingLimits(google.protobuf.message.Message):
25
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
26
+
27
+ LOWER_FIELD_NUMBER: builtins.int
28
+ UPPER_FIELD_NUMBER: builtins.int
29
+ @property
30
+ def lower(self) -> google.protobuf.wrappers_pb2.FloatValue:
31
+ """-inf if not set"""
32
+
33
+ @property
34
+ def upper(self) -> google.protobuf.wrappers_pb2.FloatValue:
35
+ """+inf if not set"""
36
+
37
+ def __init__(
38
+ self,
39
+ *,
40
+ lower: google.protobuf.wrappers_pb2.FloatValue | None = ...,
41
+ upper: google.protobuf.wrappers_pb2.FloatValue | None = ...,
42
+ ) -> None: ...
43
+ def HasField(self, field_name: typing.Literal["lower", b"lower", "upper", b"upper"]) -> builtins.bool: ...
44
+ def ClearField(self, field_name: typing.Literal["lower", b"lower", "upper", b"upper"]) -> None: ...
45
+
46
+ global___ClippingLimits = ClippingLimits
47
+
48
+ @typing.final
49
+ class SimulatedQuantization(google.protobuf.message.Message):
50
+ """Configuration for simulated quantization; simulated quantization is used to
51
+ reduce training/serving skew when the serving variables are quantized. The
52
+ same quantization operations are executed during training to minimize
53
+ differences with serving.
54
+
55
+ Simulated quantization inserts the following operations on the forward pass
56
+ after gathering the embedding vector from HBM. The backward pass operations
57
+ are unchanged.
58
+
59
+ clipped_val = clip(input, clipping_limits)
60
+ quantum = clipping_limits.range() / (num_buckets - 1)
61
+ quantized_val = floor((clipped_val - clipping_limits.lower()) / quantum + .5)
62
+ return quantized_val * quantum + clipping_limits.lower().
63
+ """
64
+
65
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
66
+
67
+ ENABLED_FIELD_NUMBER: builtins.int
68
+ CLIPPING_LIMITS_FIELD_NUMBER: builtins.int
69
+ NUM_BUCKETS_FIELD_NUMBER: builtins.int
70
+ enabled: builtins.bool
71
+ """Whether simulated quantization is enabled."""
72
+ num_buckets: builtins.int
73
+ """Number of possible quantized values."""
74
+ @property
75
+ def clipping_limits(self) -> global___ClippingLimits:
76
+ """Minimum and maximum values of the range used for quantization."""
77
+
78
+ def __init__(
79
+ self,
80
+ *,
81
+ enabled: builtins.bool | None = ...,
82
+ clipping_limits: global___ClippingLimits | None = ...,
83
+ num_buckets: builtins.int | None = ...,
84
+ ) -> None: ...
85
+ def HasField(self, field_name: typing.Literal["clipping_limits", b"clipping_limits"]) -> builtins.bool: ...
86
+ def ClearField(
87
+ self,
88
+ field_name: typing.Literal["clipping_limits", b"clipping_limits", "enabled", b"enabled", "num_buckets", b"num_buckets"],
89
+ ) -> None: ...
90
+
91
+ global___SimulatedQuantization = SimulatedQuantization
92
+
93
+ @typing.final
94
+ class DynamicLearningRate(google.protobuf.message.Message):
95
+ """Dynamic learning rate specification in the TPUEmbeddingConfiguration. The
96
+ actual learning rates are provided as a scalar input list to the
97
+ SendTPUEmbeddingGradients Op indexed by their tag specified through the
98
+ following proto.
99
+ """
100
+
101
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
102
+
103
+ TAG_FIELD_NUMBER: builtins.int
104
+ tag: builtins.int
105
+ """For tables where learning rates are dynamically computed and communicated
106
+ to the TPU embedding program, a tag must be specified for the learning
107
+ rate.
108
+
109
+ The tag must be a non-negative integer. The total number of unique tags
110
+ must be less than or equal to the number of tables in the TPU embedding
111
+ configuration (a table does not specify any tag if it uses a constant
112
+ learning rate, and specifies exactly one tag if it uses dynamic learning
113
+ rates).
114
+
115
+ All tags in the range [0, number_of_unique_tags) must be present in the TPU
116
+ embedding configuration, i.e. a tag cannot be skipped if a different tag
117
+ numerically greater than it is used in the configuration.
118
+
119
+ If multiple tables specify the same tag, they *MUST* have
120
+ the same dynamic learning rate, for example, their dynamic learning rate
121
+ could be computed by the same TensorFlow sub-graph. The partitioning of the
122
+ embedding layer would be more optimal if the number_of_unique_tags is as
123
+ *LOW* as possible, i.e., if many tables share the same tag.
124
+
125
+ The learning_rate input of the SendTPUEmbeddingGradients op is used to
126
+ communicate dynamic learning rates to the TPU embedding program.
127
+ The learning_rate input is a list of scalars where the size of the list is
128
+ equal to the number of unique tags. The learning rate associated with a
129
+ particular tag is specified by populating its corresponding index in the
130
+ list of learning_rate scalars.
131
+ """
132
+ def __init__(self, *, tag: builtins.int | None = ...) -> None: ...
133
+ def ClearField(self, field_name: typing.Literal["tag", b"tag"]) -> None: ...
134
+
135
+ global___DynamicLearningRate = DynamicLearningRate
136
+
137
+ @typing.final
138
+ class LearningRate(google.protobuf.message.Message):
139
+ """Source of learning rate to use."""
140
+
141
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
142
+
143
+ CONSTANT_FIELD_NUMBER: builtins.int
144
+ DYNAMIC_FIELD_NUMBER: builtins.int
145
+ constant: builtins.float
146
+ @property
147
+ def dynamic(self) -> global___DynamicLearningRate: ...
148
+ def __init__(self, *, constant: builtins.float | None = ..., dynamic: global___DynamicLearningRate | None = ...) -> None: ...
149
+ def HasField(
150
+ self, field_name: typing.Literal["constant", b"constant", "dynamic", b"dynamic", "learning_rate", b"learning_rate"]
151
+ ) -> builtins.bool: ...
152
+ def ClearField(
153
+ self, field_name: typing.Literal["constant", b"constant", "dynamic", b"dynamic", "learning_rate", b"learning_rate"]
154
+ ) -> None: ...
155
+ def WhichOneof(
156
+ self, oneof_group: typing.Literal["learning_rate", b"learning_rate"]
157
+ ) -> typing.Literal["constant", "dynamic"] | None: ...
158
+
159
+ global___LearningRate = LearningRate
160
+
161
+ @typing.final
162
+ class AdagradParameters(google.protobuf.message.Message):
163
+ """Each optimizer's parameter proto has a link to its documentation and CPU
164
+ implementation (if available) for user reference.
165
+
166
+ https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/Adagrad
167
+ https://github.com/tensorflow/tensorflow/blob/6b6471f3ffb7f1fefe42d814aa5fb9ab7a535b58/tensorflow/core/kernels/training_ops.cc#L1634
168
+ """
169
+
170
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
171
+
172
+ def __init__(self) -> None: ...
173
+
174
+ global___AdagradParameters = AdagradParameters
175
+
176
+ @typing.final
177
+ class AdagradMomentumParameters(google.protobuf.message.Message):
178
+ """This optimizer combines the Adagrad and Momentum update rules.
179
+ accum(new) = beta2 == 1.0 ?
180
+ accum(old) + grad^2 :
181
+ beta2 * accum(old) + (1 - beta2) * grad^2
182
+ accum_with_exponent = (accum(new) + epsilon)^(-1.0 / exponent)
183
+ mom_accum(new) = momentum * mom_accum(old) + accum_with_exponent
184
+ update = use_nesterov ?
185
+ momentum * mom_accum(new) + accum_with_exponent :
186
+ mom_accum(new)
187
+ var(new) = var(old) - lr * grad * update
188
+ Algorithm described in https://arxiv.org/abs/2002.11803.
189
+ """
190
+
191
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
192
+
193
+ MOMENTUM_FIELD_NUMBER: builtins.int
194
+ USE_NESTEROV_FIELD_NUMBER: builtins.int
195
+ EXPONENT_FIELD_NUMBER: builtins.int
196
+ BETA2_FIELD_NUMBER: builtins.int
197
+ EPSILON_FIELD_NUMBER: builtins.int
198
+ momentum: builtins.float
199
+ """Moving average parameter for the momentum accumulator."""
200
+ use_nesterov: builtins.bool
201
+ """Whether to use the Nesterov variant of momentum."""
202
+ exponent: builtins.float
203
+ """Exponent for the gradient^2 accumulator."""
204
+ beta2: builtins.float
205
+ """Moving average parameter for the gradient^2 accumulator."""
206
+ epsilon: builtins.float
207
+ """Offset added to the Adagrad accumulator."""
208
+ def __init__(
209
+ self,
210
+ *,
211
+ momentum: builtins.float | None = ...,
212
+ use_nesterov: builtins.bool | None = ...,
213
+ exponent: builtins.float | None = ...,
214
+ beta2: builtins.float | None = ...,
215
+ epsilon: builtins.float | None = ...,
216
+ ) -> None: ...
217
+ def ClearField(
218
+ self,
219
+ field_name: typing.Literal[
220
+ "beta2",
221
+ b"beta2",
222
+ "epsilon",
223
+ b"epsilon",
224
+ "exponent",
225
+ b"exponent",
226
+ "momentum",
227
+ b"momentum",
228
+ "use_nesterov",
229
+ b"use_nesterov",
230
+ ],
231
+ ) -> None: ...
232
+
233
+ global___AdagradMomentumParameters = AdagradMomentumParameters
234
+
235
+ @typing.final
236
+ class BoundedAdagradParameters(google.protobuf.message.Message):
237
+ """Algorithm in http://www.jmlr.org/papers/volume12/duchi11a/duchi11a.pdf."""
238
+
239
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
240
+
241
+ UPDATE_ACCUMULATOR_FIRST_FIELD_NUMBER: builtins.int
242
+ MAX_VAR_UPDATE_FIELD_NUMBER: builtins.int
243
+ MAX_ACCUMULATOR_FIELD_NUMBER: builtins.int
244
+ update_accumulator_first: builtins.bool
245
+ """Whether to use the updated or the old value of the accumulator when
246
+ computing the effective learning rate. When update_accumulator_first is set
247
+ to True, the updated value of the accumulator is used.
248
+ """
249
+ max_var_update: builtins.float
250
+ """The max_var_update value to use. Set value to 0 (default) to disable using
251
+ max_var_update to clip the gradient.
252
+ """
253
+ max_accumulator: builtins.float
254
+ """The maximum value of the accumulator. Set max_accumulator to 0 (default)
255
+ to disable using max_accumulator to clip the accumulator.
256
+ """
257
+ def __init__(
258
+ self,
259
+ *,
260
+ update_accumulator_first: builtins.bool | None = ...,
261
+ max_var_update: builtins.float | None = ...,
262
+ max_accumulator: builtins.float | None = ...,
263
+ ) -> None: ...
264
+ def ClearField(
265
+ self,
266
+ field_name: typing.Literal[
267
+ "max_accumulator",
268
+ b"max_accumulator",
269
+ "max_var_update",
270
+ b"max_var_update",
271
+ "update_accumulator_first",
272
+ b"update_accumulator_first",
273
+ ],
274
+ ) -> None: ...
275
+
276
+ global___BoundedAdagradParameters = BoundedAdagradParameters
277
+
278
+ @typing.final
279
+ class StochasticGradientDescentParameters(google.protobuf.message.Message):
280
+ """https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/SGD
281
+ https://github.com/tensorflow/tensorflow/blob/6b6471f3ffb7f1fefe42d814aa5fb9ab7a535b58/tensorflow/core/kernels/training_ops.cc#L629
282
+ """
283
+
284
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
285
+
286
+ def __init__(self) -> None: ...
287
+
288
+ global___StochasticGradientDescentParameters = StochasticGradientDescentParameters
289
+
290
+ @typing.final
291
+ class FtrlParameters(google.protobuf.message.Message):
292
+ """https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/Ftrl
293
+ https://static.googleusercontent.com/media/research.google.com/en//pubs/archive/41159.pdf
294
+ https://github.com/tensorflow/tensorflow/blob/6b6471f3ffb7f1fefe42d814aa5fb9ab7a535b58/tensorflow/core/kernels/training_ops.cc#L2646
295
+
296
+ The hyperparameters for FTRL are the same as for the Keras implementation,
297
+ with some additions. The "beta" parameter matches the behavior described in
298
+ the second link above; "beta" / (2 * learning rate) should be added to "l2"
299
+ to get equivalent behavior in the other TensorFlow implementations of this
300
+ optimizer. When the multiply_linear_by_lr field is set to true, a modified
301
+ formula is used for FTRL that treats the "linear" accumulator as being
302
+ pre-multiplied by the learning rate (i.e., the accumulator named "linear"
303
+ actually stores "linear * learning_rate"). Other than checkpoint
304
+ compatibility, this is mathematically equivalent for a static learning rate;
305
+ for a dynamic learning rate, it is nearly the same as long as the learning
306
+ rate does not change quickly. The benefit of setting multiply_linear_by_lr to
307
+ true is that the modified formula handles zero and near-zero learning rates
308
+ without producing NaNs, improving flexibility for learning rate ramp-up.
309
+ """
310
+
311
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
312
+
313
+ L1_FIELD_NUMBER: builtins.int
314
+ L2_FIELD_NUMBER: builtins.int
315
+ LR_POWER_FIELD_NUMBER: builtins.int
316
+ BETA_FIELD_NUMBER: builtins.int
317
+ MULTIPLY_LINEAR_BY_LR_FIELD_NUMBER: builtins.int
318
+ ALLOW_ZERO_ACCUMULATOR_FIELD_NUMBER: builtins.int
319
+ l1: builtins.float
320
+ l2: builtins.float
321
+ lr_power: builtins.float
322
+ beta: builtins.float
323
+ multiply_linear_by_lr: builtins.bool
324
+ allow_zero_accumulator: builtins.bool
325
+ """Previously, allow_zero_accumulator parameter changed some internal formulas
326
+ to allow zero and near-zero accumulator values at the cost of some
327
+ performance. The current implementation ignores this parameter; zero or
328
+ near-zero accumulator values are now always supported.
329
+ """
330
+ def __init__(
331
+ self,
332
+ *,
333
+ l1: builtins.float | None = ...,
334
+ l2: builtins.float | None = ...,
335
+ lr_power: builtins.float | None = ...,
336
+ beta: builtins.float | None = ...,
337
+ multiply_linear_by_lr: builtins.bool | None = ...,
338
+ allow_zero_accumulator: builtins.bool | None = ...,
339
+ ) -> None: ...
340
+ def ClearField(
341
+ self,
342
+ field_name: typing.Literal[
343
+ "allow_zero_accumulator",
344
+ b"allow_zero_accumulator",
345
+ "beta",
346
+ b"beta",
347
+ "l1",
348
+ b"l1",
349
+ "l2",
350
+ b"l2",
351
+ "lr_power",
352
+ b"lr_power",
353
+ "multiply_linear_by_lr",
354
+ b"multiply_linear_by_lr",
355
+ ],
356
+ ) -> None: ...
357
+
358
+ global___FtrlParameters = FtrlParameters
359
+
360
+ @typing.final
361
+ class AdamParameters(google.protobuf.message.Message):
362
+ """The Adam optimizer does not implement hyper-parameter update due to hardware
363
+ limitations; use the dynamic learning rate feature instead, setting the
364
+ learning rate to: user learning_rate * sqrt(1 - beta2^t) / (1 - beta1^t)
365
+ Here, t is the current timestep.
366
+
367
+ https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/Adam
368
+ https://github.com/tensorflow/tensorflow/blob/ab51450c817674c8ff08a7ae4f8ac50cdc4bed8b/tensorflow/python/training/adam.py#L32
369
+
370
+ Note that the code by default implements the lazy version of Adam
371
+ (https://www.tensorflow.org/api_docs/python/tf/contrib/opt/LazyAdamOptimizer)
372
+ unless the use_non_lazy_adam parameter is set, in which case it implements
373
+ the normal version of Adam that updates all parameters in the embedding
374
+ table, even for entries that are not used in the current minibatch
375
+ (https://www.tensorflow.org/api_docs/python/tf/contrib/opt/AdamOptimizer). If
376
+ use_non_lazy_adam is enabled, gradient accumulation is also required to be
377
+ enabled in order to get correct results; a warning will be printed otherwise
378
+ (which may change to an error in the future). If use_sum_inside_sqrt is set,
379
+ the Adam variable update formula will be changed from m / (sqrt(v) + epsilon)
380
+ to m / sqrt(v + epsilon**2); this option improves the performance of TPU
381
+ training and is not expected to harm model quality.
382
+ """
383
+
384
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
385
+
386
+ BETA1_FIELD_NUMBER: builtins.int
387
+ BETA2_FIELD_NUMBER: builtins.int
388
+ EPSILON_FIELD_NUMBER: builtins.int
389
+ USE_NON_LAZY_ADAM_FIELD_NUMBER: builtins.int
390
+ USE_SUM_INSIDE_SQRT_FIELD_NUMBER: builtins.int
391
+ beta1: builtins.float
392
+ beta2: builtins.float
393
+ epsilon: builtins.float
394
+ use_non_lazy_adam: builtins.bool
395
+ use_sum_inside_sqrt: builtins.bool
396
+ def __init__(
397
+ self,
398
+ *,
399
+ beta1: builtins.float | None = ...,
400
+ beta2: builtins.float | None = ...,
401
+ epsilon: builtins.float | None = ...,
402
+ use_non_lazy_adam: builtins.bool | None = ...,
403
+ use_sum_inside_sqrt: builtins.bool | None = ...,
404
+ ) -> None: ...
405
+ def ClearField(
406
+ self,
407
+ field_name: typing.Literal[
408
+ "beta1",
409
+ b"beta1",
410
+ "beta2",
411
+ b"beta2",
412
+ "epsilon",
413
+ b"epsilon",
414
+ "use_non_lazy_adam",
415
+ b"use_non_lazy_adam",
416
+ "use_sum_inside_sqrt",
417
+ b"use_sum_inside_sqrt",
418
+ ],
419
+ ) -> None: ...
420
+
421
+ global___AdamParameters = AdamParameters
422
+
423
+ @typing.final
424
+ class MomentumParameters(google.protobuf.message.Message):
425
+ """https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/SGD
426
+ https://github.com/tensorflow/tensorflow/blob/6b6471f3ffb7f1fefe42d814aa5fb9ab7a535b58/tensorflow/core/kernels/training_ops.cc#L3068
427
+ """
428
+
429
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
430
+
431
+ MOMENTUM_FIELD_NUMBER: builtins.int
432
+ USE_NESTEROV_FIELD_NUMBER: builtins.int
433
+ momentum: builtins.float
434
+ use_nesterov: builtins.bool
435
+ def __init__(self, *, momentum: builtins.float | None = ..., use_nesterov: builtins.bool | None = ...) -> None: ...
436
+ def ClearField(self, field_name: typing.Literal["momentum", b"momentum", "use_nesterov", b"use_nesterov"]) -> None: ...
437
+
438
+ global___MomentumParameters = MomentumParameters
439
+
440
+ @typing.final
441
+ class LionParameters(google.protobuf.message.Message):
442
+ """https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/Lion
443
+ momenta(new) = beta2 * momenta(old) + (1 - beta2) * grad
444
+ momenta_t = beta1 * momenta(old) + (1 - beta1) * grad
445
+ var(new) = var(old) - lr * sign(momenta_t)
446
+ Algorithm described in https://arxiv.org/abs/2302.06675.
447
+ """
448
+
449
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
450
+
451
+ BETA1_FIELD_NUMBER: builtins.int
452
+ BETA2_FIELD_NUMBER: builtins.int
453
+ USE_NON_LAZY_LION_FIELD_NUMBER: builtins.int
454
+ beta1: builtins.float
455
+ beta2: builtins.float
456
+ use_non_lazy_lion: builtins.bool
457
+ def __init__(
458
+ self,
459
+ *,
460
+ beta1: builtins.float | None = ...,
461
+ beta2: builtins.float | None = ...,
462
+ use_non_lazy_lion: builtins.bool | None = ...,
463
+ ) -> None: ...
464
+ def ClearField(
465
+ self, field_name: typing.Literal["beta1", b"beta1", "beta2", b"beta2", "use_non_lazy_lion", b"use_non_lazy_lion"]
466
+ ) -> None: ...
467
+
468
+ global___LionParameters = LionParameters
469
+
470
+ @typing.final
471
+ class RmsPropParameters(google.protobuf.message.Message):
472
+ """https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/RMSprop
473
+ https://github.com/tensorflow/tensorflow/blob/6b6471f3ffb7f1fefe42d814aa5fb9ab7a535b58/tensorflow/core/kernels/training_ops.cc#L4229
474
+ """
475
+
476
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
477
+
478
+ RHO_FIELD_NUMBER: builtins.int
479
+ MOMENTUM_FIELD_NUMBER: builtins.int
480
+ EPSILON_FIELD_NUMBER: builtins.int
481
+ rho: builtins.float
482
+ momentum: builtins.float
483
+ epsilon: builtins.float
484
+ def __init__(
485
+ self, *, rho: builtins.float | None = ..., momentum: builtins.float | None = ..., epsilon: builtins.float | None = ...
486
+ ) -> None: ...
487
+ def ClearField(self, field_name: typing.Literal["epsilon", b"epsilon", "momentum", b"momentum", "rho", b"rho"]) -> None: ...
488
+
489
+ global___RmsPropParameters = RmsPropParameters
490
+
491
+ @typing.final
492
+ class CenteredRmsPropParameters(google.protobuf.message.Message):
493
+ """https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/RMSprop
494
+ https://github.com/tensorflow/tensorflow/blob/6b6471f3ffb7f1fefe42d814aa5fb9ab7a535b58/tensorflow/core/kernels/training_ops.cc#L4358
495
+ """
496
+
497
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
498
+
499
+ RHO_FIELD_NUMBER: builtins.int
500
+ MOMENTUM_FIELD_NUMBER: builtins.int
501
+ EPSILON_FIELD_NUMBER: builtins.int
502
+ rho: builtins.float
503
+ momentum: builtins.float
504
+ epsilon: builtins.float
505
+ def __init__(
506
+ self, *, rho: builtins.float | None = ..., momentum: builtins.float | None = ..., epsilon: builtins.float | None = ...
507
+ ) -> None: ...
508
+ def ClearField(self, field_name: typing.Literal["epsilon", b"epsilon", "momentum", b"momentum", "rho", b"rho"]) -> None: ...
509
+
510
+ global___CenteredRmsPropParameters = CenteredRmsPropParameters
511
+
512
+ @typing.final
513
+ class MdlAdagradLightParameters(google.protobuf.message.Message):
514
+ """Variant of algorithm in http://proceedings.mlr.press/v44/shamir15.pdf"""
515
+
516
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
517
+
518
+ L2_FIELD_NUMBER: builtins.int
519
+ LR_POWER_FIELD_NUMBER: builtins.int
520
+ MIN_SERVABLE_MDL_BENEFIT_FIELD_NUMBER: builtins.int
521
+ MDL_MIX_IN_MARGIN_FIELD_NUMBER: builtins.int
522
+ MDL_BENEFIT_RAMPUP_COEFF_FIELD_NUMBER: builtins.int
523
+ MDL_MIN_WEIGHT_FIELD_NUMBER: builtins.int
524
+ BENEFIT_REVISIT_SCALE_FIELD_NUMBER: builtins.int
525
+ MAX_EVENT_BENEFIT_FIELD_NUMBER: builtins.int
526
+ MAX_TOTAL_BENEFIT_FIELD_NUMBER: builtins.int
527
+ MDL_HARD_LIMIT_FIELD_NUMBER: builtins.int
528
+ HARD_LIMIT_MIN_BENEFIT_FIELD_NUMBER: builtins.int
529
+ MDL_REGULARIZE_FIELD_NUMBER: builtins.int
530
+ l2: builtins.float
531
+ lr_power: builtins.float
532
+ min_servable_mdl_benefit: builtins.float
533
+ mdl_mix_in_margin: builtins.float
534
+ mdl_benefit_rampup_coeff: builtins.float
535
+ mdl_min_weight: builtins.float
536
+ benefit_revisit_scale: builtins.float
537
+ max_event_benefit: builtins.float
538
+ max_total_benefit: builtins.float
539
+ mdl_hard_limit: builtins.float
540
+ hard_limit_min_benefit: builtins.bool
541
+ mdl_regularize: builtins.bool
542
+ def __init__(
543
+ self,
544
+ *,
545
+ l2: builtins.float | None = ...,
546
+ lr_power: builtins.float | None = ...,
547
+ min_servable_mdl_benefit: builtins.float | None = ...,
548
+ mdl_mix_in_margin: builtins.float | None = ...,
549
+ mdl_benefit_rampup_coeff: builtins.float | None = ...,
550
+ mdl_min_weight: builtins.float | None = ...,
551
+ benefit_revisit_scale: builtins.float | None = ...,
552
+ max_event_benefit: builtins.float | None = ...,
553
+ max_total_benefit: builtins.float | None = ...,
554
+ mdl_hard_limit: builtins.float | None = ...,
555
+ hard_limit_min_benefit: builtins.bool | None = ...,
556
+ mdl_regularize: builtins.bool | None = ...,
557
+ ) -> None: ...
558
+ def ClearField(
559
+ self,
560
+ field_name: typing.Literal[
561
+ "benefit_revisit_scale",
562
+ b"benefit_revisit_scale",
563
+ "hard_limit_min_benefit",
564
+ b"hard_limit_min_benefit",
565
+ "l2",
566
+ b"l2",
567
+ "lr_power",
568
+ b"lr_power",
569
+ "max_event_benefit",
570
+ b"max_event_benefit",
571
+ "max_total_benefit",
572
+ b"max_total_benefit",
573
+ "mdl_benefit_rampup_coeff",
574
+ b"mdl_benefit_rampup_coeff",
575
+ "mdl_hard_limit",
576
+ b"mdl_hard_limit",
577
+ "mdl_min_weight",
578
+ b"mdl_min_weight",
579
+ "mdl_mix_in_margin",
580
+ b"mdl_mix_in_margin",
581
+ "mdl_regularize",
582
+ b"mdl_regularize",
583
+ "min_servable_mdl_benefit",
584
+ b"min_servable_mdl_benefit",
585
+ ],
586
+ ) -> None: ...
587
+
588
+ global___MdlAdagradLightParameters = MdlAdagradLightParameters
589
+
590
+ @typing.final
591
+ class AdadeltaParameters(google.protobuf.message.Message):
592
+ """https://www.tensorflow.org/api_docs/python/tf/keras/optimizers/Adadelta
593
+ https://github.com/tensorflow/tensorflow/blob/6b6471f3ffb7f1fefe42d814aa5fb9ab7a535b58/tensorflow/core/kernels/training_ops.cc#L933
594
+ """
595
+
596
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
597
+
598
+ RHO_FIELD_NUMBER: builtins.int
599
+ EPSILON_FIELD_NUMBER: builtins.int
600
+ rho: builtins.float
601
+ epsilon: builtins.float
602
+ def __init__(self, *, rho: builtins.float | None = ..., epsilon: builtins.float | None = ...) -> None: ...
603
+ def ClearField(self, field_name: typing.Literal["epsilon", b"epsilon", "rho", b"rho"]) -> None: ...
604
+
605
+ global___AdadeltaParameters = AdadeltaParameters
606
+
607
+ @typing.final
608
+ class ProximalAdagradParameters(google.protobuf.message.Message):
609
+ """https://www.tensorflow.org/api_docs/python/tf/compat/v1/train/ProximalAdagradOptimizer
610
+ https://github.com/tensorflow/tensorflow/blob/6b6471f3ffb7f1fefe42d814aa5fb9ab7a535b58/tensorflow/core/kernels/training_ops.cc#L1961
611
+ """
612
+
613
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
614
+
615
+ L1_FIELD_NUMBER: builtins.int
616
+ L2_FIELD_NUMBER: builtins.int
617
+ l1: builtins.float
618
+ l2: builtins.float
619
+ def __init__(self, *, l1: builtins.float | None = ..., l2: builtins.float | None = ...) -> None: ...
620
+ def ClearField(self, field_name: typing.Literal["l1", b"l1", "l2", b"l2"]) -> None: ...
621
+
622
+ global___ProximalAdagradParameters = ProximalAdagradParameters
623
+
624
+ @typing.final
625
+ class OnlineYogiParameters(google.protobuf.message.Message):
626
+ """The online Yogi optimizer does not implement hyper-parameter update; use the
627
+ dynamic learning rate feature instead, setting the learning rate to:
628
+ user learning_rate * sqrt(1 - beta2^t) / (1 - beta1^t)
629
+ Here, t is the current timestep.
630
+
631
+ https://papers.nips.cc/paper/8186-adaptive-methods-for-nonconvex-optimization.pdf
632
+ plus some extensions based on FTRL.
633
+
634
+ Note that the code by default implements the lazy version of online Yogi.
635
+ """
636
+
637
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
638
+
639
+ L1_FIELD_NUMBER: builtins.int
640
+ L2_FIELD_NUMBER: builtins.int
641
+ BETA2_FIELD_NUMBER: builtins.int
642
+ l1: builtins.float
643
+ """The L1 regularization parameter (used analogously to the one in FTRL)."""
644
+ l2: builtins.float
645
+ """The L2 regularization parameter (used analogously to the one in FTRL)."""
646
+ beta2: builtins.float
647
+ """\\beta_2 from Algorithm 2 in the paper."""
648
+ def __init__(
649
+ self, *, l1: builtins.float | None = ..., l2: builtins.float | None = ..., beta2: builtins.float | None = ...
650
+ ) -> None: ...
651
+ def ClearField(self, field_name: typing.Literal["beta2", b"beta2", "l1", b"l1", "l2", b"l2"]) -> None: ...
652
+
653
+ global___OnlineYogiParameters = OnlineYogiParameters
654
+
655
+ @typing.final
656
+ class ProximalYogiParameters(google.protobuf.message.Message):
657
+ """The online Yogi optimizer does not implement hyper-parameter update; use the
658
+ dynamic learning rate feature instead, setting the learning rate to:
659
+ user learning_rate * sqrt(1 - beta2^t) / (1 - beta1^t)
660
+ Here, t is the current timestep.
661
+
662
+ https://papers.nips.cc/paper/8186-adaptive-methods-for-nonconvex-optimization.pdf
663
+ plus some extensions based on FTRL.
664
+
665
+ Note that the code by default implements the lazy version of proximal Yogi.
666
+ """
667
+
668
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
669
+
670
+ L1_FIELD_NUMBER: builtins.int
671
+ L2_FIELD_NUMBER: builtins.int
672
+ BETA1_FIELD_NUMBER: builtins.int
673
+ BETA2_FIELD_NUMBER: builtins.int
674
+ EPSILON_FIELD_NUMBER: builtins.int
675
+ l1: builtins.float
676
+ """The L1 regularization parameter."""
677
+ l2: builtins.float
678
+ """The L2 regularization parameter."""
679
+ beta1: builtins.float
680
+ """The exponential decay rate for the 1st moment estimates."""
681
+ beta2: builtins.float
682
+ """The exponential decay rate for the 2nd moment estimates."""
683
+ epsilon: builtins.float
684
+ """A constant trading off adaptivity and noise."""
685
+ def __init__(
686
+ self,
687
+ *,
688
+ l1: builtins.float | None = ...,
689
+ l2: builtins.float | None = ...,
690
+ beta1: builtins.float | None = ...,
691
+ beta2: builtins.float | None = ...,
692
+ epsilon: builtins.float | None = ...,
693
+ ) -> None: ...
694
+ def ClearField(
695
+ self, field_name: typing.Literal["beta1", b"beta1", "beta2", b"beta2", "epsilon", b"epsilon", "l1", b"l1", "l2", b"l2"]
696
+ ) -> None: ...
697
+
698
+ global___ProximalYogiParameters = ProximalYogiParameters
699
+
700
+ @typing.final
701
+ class FrequencyEstimatorParameters(google.protobuf.message.Message):
702
+ """Estimator for the frequency of updates to a lookup table. It maintains an
703
+ array (tf.Variable) D, where each element records the average number of
704
+ global steps between two consecutive batches that hit the corresponding
705
+ bucket. Once an item with bucket id i is sampled, D[i] is updated by:
706
+ D[i] <- D[i] * (1 - tau) + delta[i] * tau,
707
+
708
+ where tau is a learning rate between 0 and 1 (exclusive), and
709
+ delta[i] = current global step - last step i is sampled.
710
+
711
+ The estimated frequency (sampling rate in a batch) is thus 1 / D[i].
712
+
713
+ Elements in D are initialized with a large value max_delta. delta[i] will
714
+ also be capped by this value.
715
+
716
+ The exact sequence of operations used in the optimizer is shown below.
717
+ last_hit_step[i] is a tf.Variable that holds the last global step at which i
718
+ was sampled.
719
+
720
+ delta = global_step - last_hit_step[i]
721
+ clipped_delta = min(delta, params.max_delta)
722
+ is_outlier = (delta >= params.outlier_threshold * D[i])
723
+ D[i] <- is_outlier ? clipped_delta
724
+ : D[i] * (1 - params.tau) + clipped_delta * params.tau
725
+ last_hit_step[i] <- global_step
726
+ """
727
+
728
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
729
+
730
+ TAU_FIELD_NUMBER: builtins.int
731
+ MAX_DELTA_FIELD_NUMBER: builtins.int
732
+ OUTLIER_THRESHOLD_FIELD_NUMBER: builtins.int
733
+ WEIGHT_EXPONENT_FIELD_NUMBER: builtins.int
734
+ tau: builtins.float
735
+ """Learning rate between (0, 1) that is used to update the array D."""
736
+ max_delta: builtins.float
737
+ """Maximum value of delta: difference between the current global step and the
738
+ last global step at which the row was sampled.
739
+ """
740
+ outlier_threshold: builtins.float
741
+ """Threshold used to determine whether the current update is an outlier."""
742
+ weight_exponent: builtins.float
743
+ """The weight exponent used to transform the estimated delta into weights.
744
+ The transformation function is: (delta / max_delta) ^ (weight_exponent)
745
+ """
746
+ def __init__(
747
+ self,
748
+ *,
749
+ tau: builtins.float | None = ...,
750
+ max_delta: builtins.float | None = ...,
751
+ outlier_threshold: builtins.float | None = ...,
752
+ weight_exponent: builtins.float | None = ...,
753
+ ) -> None: ...
754
+ def ClearField(
755
+ self,
756
+ field_name: typing.Literal[
757
+ "max_delta",
758
+ b"max_delta",
759
+ "outlier_threshold",
760
+ b"outlier_threshold",
761
+ "tau",
762
+ b"tau",
763
+ "weight_exponent",
764
+ b"weight_exponent",
765
+ ],
766
+ ) -> None: ...
767
+
768
+ global___FrequencyEstimatorParameters = FrequencyEstimatorParameters
769
+
770
+ @typing.final
771
+ class UserDefinedProgramParameters(google.protobuf.message.Message):
772
+ """A user-defined optimizer.
773
+ The contained HLO program must take the following arguments in the following
774
+ order:
775
+ 1. gradients
776
+ 2. table weights
777
+ 3. slot variables
778
+ 4. an optional scalar input that is passed in via the dynamic learning
779
+ rate mechanism.
780
+
781
+ It must return/end in a tuple op that contains the following values in the
782
+ following order:
783
+ 1. new table values
784
+ 2. new slot variable value
785
+
786
+ The program must have shape (1,1) with dtype float32 throughout and only use
787
+ HLO that operate elementwise (e.g., no reduce, no variables, no control flow
788
+ and no broadcasting outside of the single scalar input).
789
+ The HLO program should be written as if it were a dense update. It will be
790
+ called on each row that needs an update and will applied elementwise.
791
+ """
792
+
793
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
794
+
795
+ PROGRAM_FIELD_NUMBER: builtins.int
796
+ @property
797
+ def program(self) -> tensorflow.compiler.xla.service.hlo_pb2.HloModuleProto: ...
798
+ def __init__(self, *, program: tensorflow.compiler.xla.service.hlo_pb2.HloModuleProto | None = ...) -> None: ...
799
+ def HasField(self, field_name: typing.Literal["program", b"program"]) -> builtins.bool: ...
800
+ def ClearField(self, field_name: typing.Literal["program", b"program"]) -> None: ...
801
+
802
+ global___UserDefinedProgramParameters = UserDefinedProgramParameters
803
+
804
+ @typing.final
805
+ class AssignParameters(google.protobuf.message.Message):
806
+ """Optimizer that just sets the variable to the value of the gradient. To be
807
+ correct, this requires either gradient accumulation (to sum the values of a
808
+ computed expression across the samples) or to deduplicate IDs within a single
809
+ host (to assign the value from an arbitrary sample).
810
+ """
811
+
812
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
813
+
814
+ def __init__(self) -> None: ...
815
+
816
+ global___AssignParameters = AssignParameters
817
+
818
+ @typing.final
819
+ class GradientAccumulationStatus(google.protobuf.message.Message):
820
+ """Status of using gradient accumulation (doing two passes over the input
821
+ gradients: one to accumulate them into a temporary array and another to apply
822
+ them using the actual optimization algorithm). The extra message is to wrap
823
+ the enum for scoping.
824
+ """
825
+
826
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
827
+
828
+ class _Status:
829
+ ValueType = typing.NewType("ValueType", builtins.int)
830
+ V: typing_extensions.TypeAlias = ValueType
831
+
832
+ class _StatusEnumTypeWrapper(
833
+ google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[GradientAccumulationStatus._Status.ValueType], builtins.type
834
+ ):
835
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
836
+ UNSPECIFIED: GradientAccumulationStatus._Status.ValueType # 0
837
+ ENABLED: GradientAccumulationStatus._Status.ValueType # 1
838
+ DISABLED: GradientAccumulationStatus._Status.ValueType # 2
839
+
840
+ class Status(_Status, metaclass=_StatusEnumTypeWrapper):
841
+ """if UNSPECIFIED (default), gradient accumulation is ENABLED."""
842
+
843
+ UNSPECIFIED: GradientAccumulationStatus.Status.ValueType # 0
844
+ ENABLED: GradientAccumulationStatus.Status.ValueType # 1
845
+ DISABLED: GradientAccumulationStatus.Status.ValueType # 2
846
+
847
+ def __init__(self) -> None: ...
848
+
849
+ global___GradientAccumulationStatus = GradientAccumulationStatus
850
+
851
+ @typing.final
852
+ class LowDimensionalPackingStatus(google.protobuf.message.Message):
853
+ """Whether to optimize the packing of low-dimensional embedding tables in HBM
854
+ (high bandwidth memory). TPUs access HBM at 32-byte (8-float) granularity.
855
+ For functional correctness, the TPU software internally pads the embedding
856
+ dimension to a multiple of 8. This can sometimes lead to significant memory
857
+ wastage due to padding. For 1-dimensional, 2-dimensional, and 4-dimensional,
858
+ the TPU software can remove this padding by packing multiple rows into the
859
+ same 8-float HBM chunk. For example, 8 rows could be packed into the same
860
+ 8-float chunk for a 1-dimensional embedding table.
861
+
862
+ There is one important limitation for this HBM packing though. When only a
863
+ subset of rows in an 8-float chunk are accessed on a particular step, the
864
+ adjoining rows in the same chunk are updated with zero gradients on the
865
+ backward pass even if they are not touched. This is an artifact of the
866
+ packing implementation. This operation is NOT functionally correct for
867
+ optimizers where zero gradients change the embeddings/slot-variable values,
868
+ e.g., momentum-based optimizers. Hence, this HBM packing cannot be enabled
869
+ for embedding tables with such optimizers. The TPU software automatically
870
+ recognizes that a zero gradient can modify state and turns off the low
871
+ dimensional embedding packing in that scenario.
872
+
873
+ However, for optimizers where a zero gradient is a NoOp, such as SGD,
874
+ Adagrad, and FTRL, this packing optimization can be used. However, there are
875
+ some important considerations:
876
+ * Clipping limits: The initial values for such embeddings should fall within
877
+ the clipping limits specified in the optimization parameters. Otherwise, a
878
+ zero gradient will cause the embeddings to be clipped. This changes state
879
+ and hence, is not a NoOp.
880
+ * FTRL: The embedding vector is computed directly from the values of the
881
+ accumulator and linear slot variables. Hence, the initial embedding values
882
+ should match that computed from the initial values of the accumulator and
883
+ linear slot variables. Note that in nearly all cases, the linear value is
884
+ initialized to zero; this corresponds to an embedding value of zero.
885
+
886
+ Performance: The TPU has to perform additional work when low dimensional
887
+ packing is enabled. In certain situations when the vocabulary size is small,
888
+ it may not make sense to turn on this packing since the total memory usage
889
+ due to padding is extremely low. Hence, the TPU software automatically turns
890
+ off the packing optimization in such scenarios.
891
+ """
892
+
893
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
894
+
895
+ class _Status:
896
+ ValueType = typing.NewType("ValueType", builtins.int)
897
+ V: typing_extensions.TypeAlias = ValueType
898
+
899
+ class _StatusEnumTypeWrapper(
900
+ google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[LowDimensionalPackingStatus._Status.ValueType], builtins.type
901
+ ):
902
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
903
+ UNSPECIFIED: LowDimensionalPackingStatus._Status.ValueType # 0
904
+ ENABLED: LowDimensionalPackingStatus._Status.ValueType # 1
905
+ DISABLED: LowDimensionalPackingStatus._Status.ValueType # 2
906
+
907
+ class Status(_Status, metaclass=_StatusEnumTypeWrapper):
908
+ """if UNSPECIFIED (default), the low dimension packing status is DISABLED.
909
+ This can change in future.
910
+
911
+ if ENABLED, the low dimension packing is enabled only if the following
912
+ three additional conditions are true:
913
+ * The optimizer treats the zero gradient as a NoOp.
914
+ * The embedding dimension is 1, 2, or 4.
915
+ * The vocabulary size is large enough to avoid performance issues.
916
+
917
+ if DISABLED, the low dimension packing is always disabled.
918
+ """
919
+
920
+ UNSPECIFIED: LowDimensionalPackingStatus.Status.ValueType # 0
921
+ ENABLED: LowDimensionalPackingStatus.Status.ValueType # 1
922
+ DISABLED: LowDimensionalPackingStatus.Status.ValueType # 2
923
+
924
+ def __init__(self) -> None: ...
925
+
926
+ global___LowDimensionalPackingStatus = LowDimensionalPackingStatus
927
+
928
+ @typing.final
929
+ class HotIdReplicationConfiguration(google.protobuf.message.Message):
930
+ """Configuration proto for hot ID optimization. This is an experimental feature
931
+ that is currently disabled (by default).
932
+ """
933
+
934
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
935
+
936
+ class _Status:
937
+ ValueType = typing.NewType("ValueType", builtins.int)
938
+ V: typing_extensions.TypeAlias = ValueType
939
+
940
+ class _StatusEnumTypeWrapper(
941
+ google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[HotIdReplicationConfiguration._Status.ValueType],
942
+ builtins.type,
943
+ ):
944
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
945
+ UNSPECIFIED: HotIdReplicationConfiguration._Status.ValueType # 0
946
+ ENABLED: HotIdReplicationConfiguration._Status.ValueType # 1
947
+ DISABLED: HotIdReplicationConfiguration._Status.ValueType # 2
948
+ MIGRATION_ONLY: HotIdReplicationConfiguration._Status.ValueType # 3
949
+
950
+ class Status(_Status, metaclass=_StatusEnumTypeWrapper):
951
+ """Whether to enable or disable hot ID optimization.
952
+ If set to UNSPECIFIED (default), hot ID optimization is DISABLED.
953
+ If set to ENABLED, hot ID replication is turned ON.
954
+ If set to MIGRATION_ONLY, hot ID migration is turned ON.
955
+ """
956
+
957
+ UNSPECIFIED: HotIdReplicationConfiguration.Status.ValueType # 0
958
+ ENABLED: HotIdReplicationConfiguration.Status.ValueType # 1
959
+ DISABLED: HotIdReplicationConfiguration.Status.ValueType # 2
960
+ MIGRATION_ONLY: HotIdReplicationConfiguration.Status.ValueType # 3
961
+
962
+ STATUS_FIELD_NUMBER: builtins.int
963
+ status: global___HotIdReplicationConfiguration.Status.ValueType
964
+ def __init__(self, *, status: global___HotIdReplicationConfiguration.Status.ValueType | None = ...) -> None: ...
965
+ def ClearField(self, field_name: typing.Literal["status", b"status"]) -> None: ...
966
+
967
+ global___HotIdReplicationConfiguration = HotIdReplicationConfiguration
968
+
969
+ @typing.final
970
+ class OptimizationParameters(google.protobuf.message.Message):
971
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
972
+
973
+ LEARNING_RATE_FIELD_NUMBER: builtins.int
974
+ CLIPPING_LIMITS_FIELD_NUMBER: builtins.int
975
+ GRADIENT_CLIPPING_LIMITS_FIELD_NUMBER: builtins.int
976
+ WEIGHT_DECAY_FACTOR_FIELD_NUMBER: builtins.int
977
+ MULTIPLY_WEIGHT_DECAY_FACTOR_BY_LEARNING_RATE_FIELD_NUMBER: builtins.int
978
+ SIMULATED_QUANTIZATION_FIELD_NUMBER: builtins.int
979
+ GRADIENT_ACCUMULATION_STATUS_FIELD_NUMBER: builtins.int
980
+ LOW_DIMENSIONAL_PACKING_STATUS_FIELD_NUMBER: builtins.int
981
+ HOT_ID_REPLICATION_CONFIGURATION_FIELD_NUMBER: builtins.int
982
+ ADAGRAD_FIELD_NUMBER: builtins.int
983
+ ADAGRAD_MOMENTUM_FIELD_NUMBER: builtins.int
984
+ BOUNDED_ADAGRAD_FIELD_NUMBER: builtins.int
985
+ STOCHASTIC_GRADIENT_DESCENT_FIELD_NUMBER: builtins.int
986
+ FTRL_FIELD_NUMBER: builtins.int
987
+ ADAM_FIELD_NUMBER: builtins.int
988
+ MOMENTUM_FIELD_NUMBER: builtins.int
989
+ LION_FIELD_NUMBER: builtins.int
990
+ RMS_PROP_FIELD_NUMBER: builtins.int
991
+ CENTERED_RMS_PROP_FIELD_NUMBER: builtins.int
992
+ MDL_ADAGRAD_LIGHT_FIELD_NUMBER: builtins.int
993
+ ADADELTA_FIELD_NUMBER: builtins.int
994
+ PROXIMAL_ADAGRAD_FIELD_NUMBER: builtins.int
995
+ ONLINE_YOGI_FIELD_NUMBER: builtins.int
996
+ PROXIMAL_YOGI_FIELD_NUMBER: builtins.int
997
+ FREQUENCY_ESTIMATOR_FIELD_NUMBER: builtins.int
998
+ USER_DEFINED_PROGRAM_FIELD_NUMBER: builtins.int
999
+ ASSIGN_FIELD_NUMBER: builtins.int
1000
+ weight_decay_factor: builtins.float
1001
+ """Amount of weight decay to apply; see weight_decay_optimizers.py for
1002
+ details. All optimizers except MDL Adagrad Light are supported with this
1003
+ option. Although there is no check, users who want weight decay will also
1004
+ want to ensure that gradient accumulation is enabled so that the decay will
1005
+ happen once per global batch.
1006
+ """
1007
+ multiply_weight_decay_factor_by_learning_rate: builtins.bool
1008
+ """If true, the weight decay factor is multiplied by the current learning rate
1009
+ before use; this is to match the note in DecoupledWeightDecayExtension in
1010
+ weight_decay_optimizers.py.
1011
+ """
1012
+ gradient_accumulation_status: global___GradientAccumulationStatus.Status.ValueType
1013
+ """Status of using gradient accumulation (doing two passes over the input
1014
+ gradients: one to accumulate them into a temporary array and another to
1015
+ apply them using the actual optimization algorithm).
1016
+ """
1017
+ low_dimensional_packing_status: global___LowDimensionalPackingStatus.Status.ValueType
1018
+ """Status of the low-dimensional embedding packing optimization. This controls
1019
+ whether to optimize the packing of 1-dimensional, 2-dimensional, and
1020
+ 4-dimensional embedding tables in memory.
1021
+ """
1022
+ @property
1023
+ def learning_rate(self) -> global___LearningRate:
1024
+ """Learning rate used for updating the embedding layer parameters."""
1025
+
1026
+ @property
1027
+ def clipping_limits(self) -> global___ClippingLimits:
1028
+ """Limits to which to clip the weight values after the backward pass; not
1029
+ present means no limits are applied.
1030
+ """
1031
+
1032
+ @property
1033
+ def gradient_clipping_limits(self) -> global___ClippingLimits:
1034
+ """Limits to which to clip the backward pass gradient before using it for
1035
+ updates; not present means no limits are applied.
1036
+ """
1037
+
1038
+ @property
1039
+ def simulated_quantization(self) -> global___SimulatedQuantization:
1040
+ """Configuration for simulated quantization which is used to reduce
1041
+ training/serving skew when the serving variables are quantized. The same
1042
+ quantization operations are executed during training to minimize
1043
+ differences with serving.
1044
+ """
1045
+
1046
+ @property
1047
+ def hot_id_replication_configuration(self) -> global___HotIdReplicationConfiguration:
1048
+ """Configuration proto for hot ID replication. This is an experimental
1049
+ feature that is currently disabled (by default).
1050
+ """
1051
+
1052
+ @property
1053
+ def adagrad(self) -> global___AdagradParameters: ...
1054
+ @property
1055
+ def adagrad_momentum(self) -> global___AdagradMomentumParameters: ...
1056
+ @property
1057
+ def bounded_adagrad(self) -> global___BoundedAdagradParameters: ...
1058
+ @property
1059
+ def stochastic_gradient_descent(self) -> global___StochasticGradientDescentParameters: ...
1060
+ @property
1061
+ def ftrl(self) -> global___FtrlParameters: ...
1062
+ @property
1063
+ def adam(self) -> global___AdamParameters: ...
1064
+ @property
1065
+ def momentum(self) -> global___MomentumParameters: ...
1066
+ @property
1067
+ def lion(self) -> global___LionParameters: ...
1068
+ @property
1069
+ def rms_prop(self) -> global___RmsPropParameters: ...
1070
+ @property
1071
+ def centered_rms_prop(self) -> global___CenteredRmsPropParameters: ...
1072
+ @property
1073
+ def mdl_adagrad_light(self) -> global___MdlAdagradLightParameters: ...
1074
+ @property
1075
+ def adadelta(self) -> global___AdadeltaParameters: ...
1076
+ @property
1077
+ def proximal_adagrad(self) -> global___ProximalAdagradParameters: ...
1078
+ @property
1079
+ def online_yogi(self) -> global___OnlineYogiParameters: ...
1080
+ @property
1081
+ def proximal_yogi(self) -> global___ProximalYogiParameters: ...
1082
+ @property
1083
+ def frequency_estimator(self) -> global___FrequencyEstimatorParameters: ...
1084
+ @property
1085
+ def user_defined_program(self) -> global___UserDefinedProgramParameters: ...
1086
+ @property
1087
+ def assign(self) -> global___AssignParameters: ...
1088
+ def __init__(
1089
+ self,
1090
+ *,
1091
+ learning_rate: global___LearningRate | None = ...,
1092
+ clipping_limits: global___ClippingLimits | None = ...,
1093
+ gradient_clipping_limits: global___ClippingLimits | None = ...,
1094
+ weight_decay_factor: builtins.float | None = ...,
1095
+ multiply_weight_decay_factor_by_learning_rate: builtins.bool | None = ...,
1096
+ simulated_quantization: global___SimulatedQuantization | None = ...,
1097
+ gradient_accumulation_status: global___GradientAccumulationStatus.Status.ValueType | None = ...,
1098
+ low_dimensional_packing_status: global___LowDimensionalPackingStatus.Status.ValueType | None = ...,
1099
+ hot_id_replication_configuration: global___HotIdReplicationConfiguration | None = ...,
1100
+ adagrad: global___AdagradParameters | None = ...,
1101
+ adagrad_momentum: global___AdagradMomentumParameters | None = ...,
1102
+ bounded_adagrad: global___BoundedAdagradParameters | None = ...,
1103
+ stochastic_gradient_descent: global___StochasticGradientDescentParameters | None = ...,
1104
+ ftrl: global___FtrlParameters | None = ...,
1105
+ adam: global___AdamParameters | None = ...,
1106
+ momentum: global___MomentumParameters | None = ...,
1107
+ lion: global___LionParameters | None = ...,
1108
+ rms_prop: global___RmsPropParameters | None = ...,
1109
+ centered_rms_prop: global___CenteredRmsPropParameters | None = ...,
1110
+ mdl_adagrad_light: global___MdlAdagradLightParameters | None = ...,
1111
+ adadelta: global___AdadeltaParameters | None = ...,
1112
+ proximal_adagrad: global___ProximalAdagradParameters | None = ...,
1113
+ online_yogi: global___OnlineYogiParameters | None = ...,
1114
+ proximal_yogi: global___ProximalYogiParameters | None = ...,
1115
+ frequency_estimator: global___FrequencyEstimatorParameters | None = ...,
1116
+ user_defined_program: global___UserDefinedProgramParameters | None = ...,
1117
+ assign: global___AssignParameters | None = ...,
1118
+ ) -> None: ...
1119
+ def HasField(
1120
+ self,
1121
+ field_name: typing.Literal[
1122
+ "adadelta",
1123
+ b"adadelta",
1124
+ "adagrad",
1125
+ b"adagrad",
1126
+ "adagrad_momentum",
1127
+ b"adagrad_momentum",
1128
+ "adam",
1129
+ b"adam",
1130
+ "assign",
1131
+ b"assign",
1132
+ "bounded_adagrad",
1133
+ b"bounded_adagrad",
1134
+ "centered_rms_prop",
1135
+ b"centered_rms_prop",
1136
+ "clipping_limits",
1137
+ b"clipping_limits",
1138
+ "frequency_estimator",
1139
+ b"frequency_estimator",
1140
+ "ftrl",
1141
+ b"ftrl",
1142
+ "gradient_clipping_limits",
1143
+ b"gradient_clipping_limits",
1144
+ "hot_id_replication_configuration",
1145
+ b"hot_id_replication_configuration",
1146
+ "learning_rate",
1147
+ b"learning_rate",
1148
+ "lion",
1149
+ b"lion",
1150
+ "mdl_adagrad_light",
1151
+ b"mdl_adagrad_light",
1152
+ "momentum",
1153
+ b"momentum",
1154
+ "online_yogi",
1155
+ b"online_yogi",
1156
+ "parameters",
1157
+ b"parameters",
1158
+ "proximal_adagrad",
1159
+ b"proximal_adagrad",
1160
+ "proximal_yogi",
1161
+ b"proximal_yogi",
1162
+ "rms_prop",
1163
+ b"rms_prop",
1164
+ "simulated_quantization",
1165
+ b"simulated_quantization",
1166
+ "stochastic_gradient_descent",
1167
+ b"stochastic_gradient_descent",
1168
+ "user_defined_program",
1169
+ b"user_defined_program",
1170
+ ],
1171
+ ) -> builtins.bool: ...
1172
+ def ClearField(
1173
+ self,
1174
+ field_name: typing.Literal[
1175
+ "adadelta",
1176
+ b"adadelta",
1177
+ "adagrad",
1178
+ b"adagrad",
1179
+ "adagrad_momentum",
1180
+ b"adagrad_momentum",
1181
+ "adam",
1182
+ b"adam",
1183
+ "assign",
1184
+ b"assign",
1185
+ "bounded_adagrad",
1186
+ b"bounded_adagrad",
1187
+ "centered_rms_prop",
1188
+ b"centered_rms_prop",
1189
+ "clipping_limits",
1190
+ b"clipping_limits",
1191
+ "frequency_estimator",
1192
+ b"frequency_estimator",
1193
+ "ftrl",
1194
+ b"ftrl",
1195
+ "gradient_accumulation_status",
1196
+ b"gradient_accumulation_status",
1197
+ "gradient_clipping_limits",
1198
+ b"gradient_clipping_limits",
1199
+ "hot_id_replication_configuration",
1200
+ b"hot_id_replication_configuration",
1201
+ "learning_rate",
1202
+ b"learning_rate",
1203
+ "lion",
1204
+ b"lion",
1205
+ "low_dimensional_packing_status",
1206
+ b"low_dimensional_packing_status",
1207
+ "mdl_adagrad_light",
1208
+ b"mdl_adagrad_light",
1209
+ "momentum",
1210
+ b"momentum",
1211
+ "multiply_weight_decay_factor_by_learning_rate",
1212
+ b"multiply_weight_decay_factor_by_learning_rate",
1213
+ "online_yogi",
1214
+ b"online_yogi",
1215
+ "parameters",
1216
+ b"parameters",
1217
+ "proximal_adagrad",
1218
+ b"proximal_adagrad",
1219
+ "proximal_yogi",
1220
+ b"proximal_yogi",
1221
+ "rms_prop",
1222
+ b"rms_prop",
1223
+ "simulated_quantization",
1224
+ b"simulated_quantization",
1225
+ "stochastic_gradient_descent",
1226
+ b"stochastic_gradient_descent",
1227
+ "user_defined_program",
1228
+ b"user_defined_program",
1229
+ "weight_decay_factor",
1230
+ b"weight_decay_factor",
1231
+ ],
1232
+ ) -> None: ...
1233
+ def WhichOneof(
1234
+ self, oneof_group: typing.Literal["parameters", b"parameters"]
1235
+ ) -> (
1236
+ typing.Literal[
1237
+ "adagrad",
1238
+ "adagrad_momentum",
1239
+ "bounded_adagrad",
1240
+ "stochastic_gradient_descent",
1241
+ "ftrl",
1242
+ "adam",
1243
+ "momentum",
1244
+ "lion",
1245
+ "rms_prop",
1246
+ "centered_rms_prop",
1247
+ "mdl_adagrad_light",
1248
+ "adadelta",
1249
+ "proximal_adagrad",
1250
+ "online_yogi",
1251
+ "proximal_yogi",
1252
+ "frequency_estimator",
1253
+ "user_defined_program",
1254
+ "assign",
1255
+ ]
1256
+ | None
1257
+ ): ...
1258
+
1259
+ global___OptimizationParameters = OptimizationParameters
1260
+
1261
+ @typing.final
1262
+ class StateVariableSpecification(google.protobuf.message.Message):
1263
+ """Specification of an optimization algorithm's state variables (both the main
1264
+ value vector and any extra accumulators, etc.). This proto is only used
1265
+ internally by the TPU software and is not exposed directly to the TF model.
1266
+ """
1267
+
1268
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1269
+
1270
+ @typing.final
1271
+ class UserDefined(google.protobuf.message.Message):
1272
+ """A normal state variable that should be saved and restored in checkpoints
1273
+ and used as an input or output to non-debug TensorFlow ops.
1274
+ """
1275
+
1276
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1277
+
1278
+ def __init__(self) -> None: ...
1279
+
1280
+ @typing.final
1281
+ class FillWithConstant(google.protobuf.message.Message):
1282
+ """A state variable that should be filled with a constant and normally hidden
1283
+ from users (used for intermediate gradients being accumulated, for
1284
+ example).
1285
+ """
1286
+
1287
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1288
+
1289
+ INITIAL_VALUE_FIELD_NUMBER: builtins.int
1290
+ initial_value: builtins.float
1291
+ def __init__(self, *, initial_value: builtins.float | None = ...) -> None: ...
1292
+ def ClearField(self, field_name: typing.Literal["initial_value", b"initial_value"]) -> None: ...
1293
+
1294
+ NAME_FIELD_NUMBER: builtins.int
1295
+ USER_DEFINED_FIELD_NUMBER: builtins.int
1296
+ FILL_WITH_CONSTANT_FIELD_NUMBER: builtins.int
1297
+ name: builtins.str
1298
+ """Parameter name for the state variable."""
1299
+ @property
1300
+ def user_defined(self) -> global___StateVariableSpecification.UserDefined: ...
1301
+ @property
1302
+ def fill_with_constant(self) -> global___StateVariableSpecification.FillWithConstant: ...
1303
+ def __init__(
1304
+ self,
1305
+ *,
1306
+ name: builtins.str | None = ...,
1307
+ user_defined: global___StateVariableSpecification.UserDefined | None = ...,
1308
+ fill_with_constant: global___StateVariableSpecification.FillWithConstant | None = ...,
1309
+ ) -> None: ...
1310
+ def HasField(
1311
+ self,
1312
+ field_name: typing.Literal[
1313
+ "fill_with_constant", b"fill_with_constant", "usage", b"usage", "user_defined", b"user_defined"
1314
+ ],
1315
+ ) -> builtins.bool: ...
1316
+ def ClearField(
1317
+ self,
1318
+ field_name: typing.Literal[
1319
+ "fill_with_constant", b"fill_with_constant", "name", b"name", "usage", b"usage", "user_defined", b"user_defined"
1320
+ ],
1321
+ ) -> None: ...
1322
+ def WhichOneof(
1323
+ self, oneof_group: typing.Literal["usage", b"usage"]
1324
+ ) -> typing.Literal["user_defined", "fill_with_constant"] | None: ...
1325
+
1326
+ global___StateVariableSpecification = StateVariableSpecification