streamlit 1.51.0__py3-none-any.whl → 1.52.1__py3-none-any.whl

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 (314) hide show
  1. streamlit/__init__.py +1 -0
  2. streamlit/commands/execution_control.py +89 -14
  3. streamlit/components/v1/component_arrow.py +7 -7
  4. streamlit/components/v2/__init__.py +59 -3
  5. streamlit/components/v2/bidi_component/main.py +161 -13
  6. streamlit/components/v2/bidi_component/serialization.py +13 -6
  7. streamlit/components/v2/component_manager.py +11 -3
  8. streamlit/components/v2/component_registry.py +18 -1
  9. streamlit/components/v2/types.py +2 -2
  10. streamlit/connections/snowflake_connection.py +1 -1
  11. streamlit/connections/snowpark_connection.py +1 -1
  12. streamlit/dataframe_util.py +18 -18
  13. streamlit/delta_generator.py +7 -0
  14. streamlit/delta_generator_singletons.py +8 -14
  15. streamlit/elements/alert.py +16 -0
  16. streamlit/elements/arrow.py +36 -6
  17. streamlit/elements/bokeh_chart.py +10 -78
  18. streamlit/elements/code.py +2 -2
  19. streamlit/elements/deck_gl_json_chart.py +1 -1
  20. streamlit/elements/exception.py +1 -1
  21. streamlit/elements/form.py +27 -0
  22. streamlit/elements/heading.py +60 -5
  23. streamlit/elements/html.py +13 -2
  24. streamlit/elements/image.py +1 -1
  25. streamlit/elements/layouts.py +28 -22
  26. streamlit/elements/lib/built_in_chart_utils.py +49 -16
  27. streamlit/elements/lib/color_util.py +1 -1
  28. streamlit/elements/lib/column_config_utils.py +6 -5
  29. streamlit/elements/lib/layout_utils.py +50 -0
  30. streamlit/elements/lib/pandas_styler_utils.py +17 -9
  31. streamlit/elements/lib/shortcut_utils.py +152 -0
  32. streamlit/elements/markdown.py +50 -3
  33. streamlit/elements/metric.py +31 -1
  34. streamlit/elements/plotly_chart.py +75 -6
  35. streamlit/elements/spinner.py +1 -1
  36. streamlit/elements/text.py +20 -3
  37. streamlit/elements/toast.py +2 -0
  38. streamlit/elements/vega_charts.py +17 -1
  39. streamlit/elements/widgets/audio_input.py +8 -7
  40. streamlit/elements/widgets/button.py +279 -40
  41. streamlit/elements/widgets/button_group.py +27 -2
  42. streamlit/elements/widgets/camera_input.py +1 -1
  43. streamlit/elements/widgets/chat.py +300 -42
  44. streamlit/elements/widgets/color_picker.py +7 -0
  45. streamlit/elements/widgets/data_editor.py +68 -28
  46. streamlit/elements/widgets/file_uploader.py +4 -1
  47. streamlit/elements/widgets/number_input.py +2 -0
  48. streamlit/elements/widgets/text_widgets.py +2 -0
  49. streamlit/elements/widgets/time_widgets.py +581 -9
  50. streamlit/errors.py +22 -0
  51. streamlit/git_util.py +1 -1
  52. streamlit/navigation/page.py +7 -0
  53. streamlit/net_util.py +2 -2
  54. streamlit/proto/Alert_pb2.pyi +3 -3
  55. streamlit/proto/AppPage_pb2.pyi +7 -1
  56. streamlit/proto/ArrowData_pb2.pyi +7 -1
  57. streamlit/proto/ArrowNamedDataSet_pb2.pyi +7 -1
  58. streamlit/proto/ArrowVegaLiteChart_pb2.pyi +7 -1
  59. streamlit/proto/Arrow_pb2.py +10 -10
  60. streamlit/proto/Arrow_pb2.pyi +19 -12
  61. streamlit/proto/AudioInput_pb2.pyi +7 -1
  62. streamlit/proto/Audio_pb2.pyi +7 -1
  63. streamlit/proto/AuthRedirect_pb2.pyi +7 -1
  64. streamlit/proto/AutoRerun_pb2.pyi +7 -1
  65. streamlit/proto/BackMsg_pb2.py +4 -2
  66. streamlit/proto/BackMsg_pb2.pyi +34 -4
  67. streamlit/proto/Balloons_pb2.pyi +7 -1
  68. streamlit/proto/BidiComponent_pb2.pyi +10 -4
  69. streamlit/proto/Block_pb2.pyi +35 -35
  70. streamlit/proto/BokehChart_pb2.pyi +7 -1
  71. streamlit/proto/ButtonGroup_pb2.pyi +9 -9
  72. streamlit/proto/Button_pb2.py +2 -2
  73. streamlit/proto/Button_pb2.pyi +11 -2
  74. streamlit/proto/CameraInput_pb2.pyi +7 -1
  75. streamlit/proto/ChatInput_pb2.py +6 -6
  76. streamlit/proto/ChatInput_pb2.pyi +18 -6
  77. streamlit/proto/Checkbox_pb2.pyi +3 -3
  78. streamlit/proto/ClientState_pb2.pyi +10 -4
  79. streamlit/proto/Code_pb2.pyi +7 -1
  80. streamlit/proto/ColorPicker_pb2.pyi +7 -1
  81. streamlit/proto/Common_pb2.py +3 -3
  82. streamlit/proto/Common_pb2.pyi +35 -23
  83. streamlit/proto/Components_pb2.pyi +19 -13
  84. streamlit/proto/DataFrame_pb2.pyi +55 -49
  85. streamlit/proto/DateInput_pb2.pyi +7 -1
  86. streamlit/proto/DateTimeInput_pb2.py +28 -0
  87. streamlit/proto/DateTimeInput_pb2.pyi +92 -0
  88. streamlit/proto/DeckGlJsonChart_pb2.pyi +3 -3
  89. streamlit/proto/Delta_pb2.pyi +7 -1
  90. streamlit/proto/DocString_pb2.pyi +10 -4
  91. streamlit/proto/DownloadButton_pb2.py +2 -2
  92. streamlit/proto/DownloadButton_pb2.pyi +16 -2
  93. streamlit/proto/Element_pb2.py +5 -3
  94. streamlit/proto/Element_pb2.pyi +23 -5
  95. streamlit/proto/Empty_pb2.pyi +7 -1
  96. streamlit/proto/Exception_pb2.pyi +7 -1
  97. streamlit/proto/Favicon_pb2.pyi +7 -1
  98. streamlit/proto/FileUploader_pb2.pyi +7 -1
  99. streamlit/proto/ForwardMsg_pb2.py +12 -10
  100. streamlit/proto/ForwardMsg_pb2.pyi +42 -15
  101. streamlit/proto/GapSize_pb2.pyi +4 -4
  102. streamlit/proto/GitInfo_pb2.pyi +3 -3
  103. streamlit/proto/GraphVizChart_pb2.pyi +7 -1
  104. streamlit/proto/Heading_pb2.pyi +7 -1
  105. streamlit/proto/HeightConfig_pb2.pyi +7 -1
  106. streamlit/proto/Html_pb2.py +2 -2
  107. streamlit/proto/Html_pb2.pyi +11 -2
  108. streamlit/proto/IFrame_pb2.pyi +7 -1
  109. streamlit/proto/Image_pb2.pyi +10 -4
  110. streamlit/proto/Json_pb2.pyi +7 -1
  111. streamlit/proto/LabelVisibilityMessage_pb2.pyi +3 -3
  112. streamlit/proto/LinkButton_pb2.py +2 -2
  113. streamlit/proto/LinkButton_pb2.pyi +15 -2
  114. streamlit/proto/Logo_pb2.pyi +7 -1
  115. streamlit/proto/Markdown_pb2.pyi +3 -3
  116. streamlit/proto/Metric_pb2.pyi +7 -7
  117. streamlit/proto/MetricsEvent_pb2.pyi +10 -4
  118. streamlit/proto/MultiSelect_pb2.pyi +7 -1
  119. streamlit/proto/NamedDataSet_pb2.pyi +7 -1
  120. streamlit/proto/Navigation_pb2.pyi +3 -3
  121. streamlit/proto/NewSession_pb2.pyi +40 -40
  122. streamlit/proto/NumberInput_pb2.pyi +3 -3
  123. streamlit/proto/PageConfig_pb2.pyi +7 -7
  124. streamlit/proto/PageInfo_pb2.pyi +7 -1
  125. streamlit/proto/PageLink_pb2.py +2 -2
  126. streamlit/proto/PageLink_pb2.pyi +11 -2
  127. streamlit/proto/PageNotFound_pb2.pyi +7 -1
  128. streamlit/proto/PageProfile_pb2.pyi +13 -7
  129. streamlit/proto/PagesChanged_pb2.pyi +7 -1
  130. streamlit/proto/ParentMessage_pb2.pyi +7 -1
  131. streamlit/proto/PlotlyChart_pb2.pyi +6 -6
  132. streamlit/proto/Progress_pb2.pyi +7 -1
  133. streamlit/proto/Radio_pb2.pyi +7 -1
  134. streamlit/proto/RootContainer_pb2.pyi +1 -1
  135. streamlit/proto/Selectbox_pb2.pyi +7 -1
  136. streamlit/proto/SessionEvent_pb2.pyi +7 -1
  137. streamlit/proto/SessionStatus_pb2.pyi +7 -1
  138. streamlit/proto/Skeleton_pb2.pyi +3 -3
  139. streamlit/proto/Slider_pb2.pyi +5 -5
  140. streamlit/proto/Snow_pb2.pyi +7 -1
  141. streamlit/proto/Space_pb2.pyi +7 -1
  142. streamlit/proto/Spinner_pb2.pyi +7 -1
  143. streamlit/proto/TextAlignmentConfig_pb2.py +29 -0
  144. streamlit/proto/TextAlignmentConfig_pb2.pyi +68 -0
  145. streamlit/proto/TextArea_pb2.pyi +7 -1
  146. streamlit/proto/TextInput_pb2.pyi +3 -3
  147. streamlit/proto/Text_pb2.pyi +7 -1
  148. streamlit/proto/TimeInput_pb2.pyi +7 -1
  149. streamlit/proto/Toast_pb2.pyi +7 -1
  150. streamlit/proto/VegaLiteChart_pb2.pyi +7 -1
  151. streamlit/proto/Video_pb2.pyi +6 -6
  152. streamlit/proto/WidgetStates_pb2.pyi +10 -4
  153. streamlit/proto/WidthConfig_pb2.pyi +7 -1
  154. streamlit/proto/openmetrics_data_model_pb2.pyi +52 -52
  155. streamlit/runtime/app_session.py +38 -1
  156. streamlit/runtime/caching/cache_data_api.py +1 -1
  157. streamlit/runtime/caching/cache_resource_api.py +2 -2
  158. streamlit/runtime/caching/cache_utils.py +1 -1
  159. streamlit/runtime/caching/hashing.py +1 -1
  160. streamlit/runtime/download_data_util.py +53 -0
  161. streamlit/runtime/forward_msg_queue.py +1 -0
  162. streamlit/runtime/media_file_manager.py +178 -2
  163. streamlit/runtime/metrics_util.py +87 -3
  164. streamlit/runtime/scriptrunner/script_runner.py +3 -1
  165. streamlit/runtime/state/query_params.py +80 -29
  166. streamlit/runtime/state/session_state.py +2 -2
  167. streamlit/static/index.html +1 -1
  168. streamlit/static/manifest.json +530 -229
  169. streamlit/static/static/js/{ErrorOutline.esm.YoJdlW1p.js → ErrorOutline.esm.sMJdFExW.js} +1 -1
  170. streamlit/static/static/js/{FileDownload.esm.Ddx8VEYy.js → FileDownload.esm.CV-WYqBn.js} +1 -1
  171. streamlit/static/static/js/{FileHelper.90EtOmj9.js → FileHelper.5nCh9KDY.js} +3 -3
  172. streamlit/static/static/js/{FormClearHelper.BB1Km6eP.js → FormClearHelper.-9RbsnV0.js} +1 -1
  173. streamlit/static/static/js/IFrameUtil.DefezniK.js +1 -0
  174. streamlit/static/static/js/InputInstructions.2R3tBtW9.js +1 -0
  175. streamlit/static/static/js/Particles.DDHoXFxh.js +1 -0
  176. streamlit/static/static/js/{ProgressBar.DLY8H6nE.js → ProgressBar.BxmfHxKu.js} +2 -2
  177. streamlit/static/static/js/StreamlitSyntaxHighlighter.BFWV0oqR.js +20 -0
  178. streamlit/static/static/js/{Toolbar.D8nHCkuz.js → Toolbar.DMgU0Vgw.js} +1 -1
  179. streamlit/static/static/js/_arrayIncludes.B19Iyn2B.js +1 -0
  180. streamlit/static/static/js/_baseIndexOf.BTknn6Gb.js +1 -0
  181. streamlit/static/static/js/{base-input.CJGiNqed.js → base-input.BXTqYbyG.js} +4 -4
  182. streamlit/static/static/js/{checkbox.Cpdd482O.js → checkbox.5xWaqPqm.js} +1 -1
  183. streamlit/static/static/js/{createSuper.CuQIogbW.js → createSuper.OIgV8wc-.js} +1 -1
  184. streamlit/static/static/js/data-grid-overlay-editor.B4RIu9cw.js +1 -0
  185. streamlit/static/static/js/{downloader.CN0K7xlu.js → downloader.DwCJck8O.js} +1 -1
  186. streamlit/static/static/js/embed.HKcgTiLB.js +195 -0
  187. streamlit/static/static/js/{es6.BJcsVXQ0.js → es6.4AP97RGk.js} +2 -2
  188. streamlit/static/static/js/{iframeResizer.contentWindow.XzUvQqcZ.js → iframeResizer.contentWindow.BZAsvL9q.js} +1 -1
  189. streamlit/static/static/js/index.-3selq_5.js +2 -0
  190. streamlit/static/static/js/index.1ylynMAS.js +7 -0
  191. streamlit/static/static/js/{index.CxIUUfab.js → index.6UunrySF.js} +53 -122
  192. streamlit/static/static/js/index.8HslT92O.js +14 -0
  193. streamlit/static/static/js/index.B0TPxAZ1.js +1 -0
  194. streamlit/static/static/js/index.B0yp3bM1.js +6 -0
  195. streamlit/static/static/js/index.BHWBaOWH.js +1 -0
  196. streamlit/static/static/js/index.BJas6XzW.js +1 -0
  197. streamlit/static/static/js/index.BKIlG7Ng.js +3 -0
  198. streamlit/static/static/js/index.BMU6zZRk.js +1 -0
  199. streamlit/static/static/js/index.BNMLO-0p.js +2 -0
  200. streamlit/static/static/js/index.BPmBNTel.js +1 -0
  201. streamlit/static/static/js/index.BVuohWM1.js +1 -0
  202. streamlit/static/static/js/index.B_AvdOKC.js +1 -0
  203. streamlit/static/static/js/index.BjQIH-3U.js +1 -0
  204. streamlit/static/static/js/index.BrqtKtSu.js +2 -0
  205. streamlit/static/static/js/index.Buc7XrOl.js +188 -0
  206. streamlit/static/static/js/index.CIC9pLsG.js +2 -0
  207. streamlit/static/static/js/index.CP2YZ73v.js +1 -0
  208. streamlit/static/static/js/index.CSbah0y4.js +27 -0
  209. streamlit/static/static/js/index.CbiYVMT1.js +1 -0
  210. streamlit/static/static/js/index.CbxllBj8.js +1 -0
  211. streamlit/static/static/js/index.Cd1D2eGF.js +263 -0
  212. streamlit/static/static/js/index.Ckcqwai8.js +2 -0
  213. streamlit/static/static/js/index.CqTPbV5Y.js +151 -0
  214. streamlit/static/static/js/index.CxXo5UKy.js +1 -0
  215. streamlit/static/static/js/index.CxbL5FgL.js +1 -0
  216. streamlit/static/static/js/index.D52dMvK5.js +1 -0
  217. streamlit/static/static/js/index.DBUdji-9.js +3 -0
  218. streamlit/static/static/js/index.DMU3coc2.js +1 -0
  219. streamlit/static/static/js/index.DN4sfQLP.js +1 -0
  220. streamlit/static/static/js/{index.DPUXkcQL.js → index.DRDE9rnx.js} +1 -1
  221. streamlit/static/static/js/{index.B_dWA3vd.js → index.DY9Ac89e.js} +2 -2
  222. streamlit/static/static/js/index.DYKCsDvl.js +1 -0
  223. streamlit/static/static/js/index.Da9gznCC.js +1 -0
  224. streamlit/static/static/js/index.DfIRibXG.js +1 -0
  225. streamlit/static/static/js/{index.D3GPA5k4.js → index.Dg5zbEp2.js} +9 -40
  226. streamlit/static/static/js/index.Di9I2cid.js +1 -0
  227. streamlit/static/static/js/index.DkpEv0uV.js +1 -0
  228. streamlit/static/static/js/index.DwJ9Vhsl.js +1 -0
  229. streamlit/static/static/js/index.L7erTnMm.js +1 -0
  230. streamlit/static/static/js/{index.DOFlg3dS.js → index.NaDyAN1s.js} +1 -1
  231. streamlit/static/static/js/index.RNTPpVde.js +1 -0
  232. streamlit/static/static/js/index.VFDFuf_7.js +1 -0
  233. streamlit/static/static/js/index.W-bl3NDo.js +1 -0
  234. streamlit/static/static/js/index.XYozEjwK.js +1 -0
  235. streamlit/static/static/js/index.oyLQ4pue.js +1 -0
  236. streamlit/static/static/js/index.q4fLUQtC.js +11 -0
  237. streamlit/static/static/js/index.q9puCQgK.js +2 -0
  238. streamlit/static/static/js/index.xZBTXGNC.js +1 -0
  239. streamlit/static/static/js/{input.D4MN_FzN.js → input.CcvrgErO.js} +2 -2
  240. streamlit/static/static/js/main.eVHOp4Th.js +13 -0
  241. streamlit/static/static/js/{memory.DrZjtdGT.js → memory.Ck_sLv5Y.js} +1 -1
  242. streamlit/static/static/js/moment.C3j7ZXd7.js +4 -0
  243. streamlit/static/static/js/number-overlay-editor.DgcLMWOy.js +9 -0
  244. streamlit/static/static/js/pandasStylerUtils.DqP0h70z.js +1 -0
  245. streamlit/static/static/js/{possibleConstructorReturn.exeeJQEP.js → possibleConstructorReturn.C_51n46K.js} +1 -1
  246. streamlit/static/static/js/{sandbox.ClO3IuUr.js → sandbox.Q-g3QIZJ.js} +1 -1
  247. streamlit/static/static/js/styled-components.e0V96rJw.js +1 -0
  248. streamlit/static/static/js/threshold.Q1mXg5rX.js +1 -0
  249. streamlit/static/static/js/throttle.D3b5WILl.js +1 -0
  250. streamlit/static/static/js/{timepicker.DAhu-vcF.js → timepicker.Bpn70xGc.js} +1 -1
  251. streamlit/static/static/js/timer.C2hYhUse.js +1 -0
  252. streamlit/static/static/js/{toConsumableArray.DNbljYEC.js → toConsumableArray.DIN_ys1J.js} +1 -1
  253. streamlit/static/static/js/uniqueId.B27POWT6.js +1 -0
  254. streamlit/static/static/js/urls.BwSlolu9.js +1 -0
  255. streamlit/static/static/js/{useBasicWidgetState.D6sOH6oI.js → useBasicWidgetState.DA3_qaXD.js} +1 -1
  256. streamlit/static/static/js/useIntlLocale.BSq6SANa.js +12 -0
  257. streamlit/static/static/js/{useTextInputAutoExpand.4u3_GcuN.js → useTextInputAutoExpand.ytEW5QmA.js} +1 -1
  258. streamlit/static/static/js/useUpdateUiValue.DOxWBNiI.js +1 -0
  259. streamlit/static/static/js/useWaveformController.BCmk6WLk.js +1 -0
  260. streamlit/static/static/js/value.B4vHRSi7.js +1 -0
  261. streamlit/static/static/js/withCalculatedWidth.ChdrMItN.js +1 -0
  262. streamlit/static/static/js/withFullScreenWrapper.7j_lzlaF.js +1 -0
  263. streamlit/string_util.py +8 -1
  264. streamlit/testing/v1/app_test.py +15 -0
  265. streamlit/testing/v1/element_tree.py +62 -0
  266. streamlit/web/bootstrap.py +24 -0
  267. streamlit/web/server/oauth_authlib_routes.py +5 -2
  268. streamlit/web/server/upload_file_request_handler.py +16 -0
  269. {streamlit-1.51.0.dist-info → streamlit-1.52.1.dist-info}/METADATA +9 -5
  270. {streamlit-1.51.0.dist-info → streamlit-1.52.1.dist-info}/RECORD +274 -239
  271. streamlit/static/static/js/InputInstructions.jhH15PqV.js +0 -1
  272. streamlit/static/static/js/Particles.DUsputn1.js +0 -1
  273. streamlit/static/static/js/data-grid-overlay-editor.2Ufgxc6y.js +0 -1
  274. streamlit/static/static/js/index.B1ZQh4P1.js +0 -1
  275. streamlit/static/static/js/index.BKstZk0M.js +0 -27
  276. streamlit/static/static/js/index.BMcFsUee.js +0 -1
  277. streamlit/static/static/js/index.BR-IdcTb.js +0 -2
  278. streamlit/static/static/js/index.BgnZEMVh.js +0 -1
  279. streamlit/static/static/js/index.BohqXifI.js +0 -1
  280. streamlit/static/static/js/index.Br5nxKNj.js +0 -2
  281. streamlit/static/static/js/index.BrIKVbNc.js +0 -3
  282. streamlit/static/static/js/index.BtWUPzle.js +0 -1
  283. streamlit/static/static/js/index.C0RLraek.js +0 -1
  284. streamlit/static/static/js/index.CAIjskgG.js +0 -1
  285. streamlit/static/static/js/index.CAj-7vWz.js +0 -949
  286. streamlit/static/static/js/index.CMtEit2O.js +0 -1
  287. streamlit/static/static/js/index.CkRlykEE.js +0 -12
  288. streamlit/static/static/js/index.CmN3FXfI.js +0 -1617
  289. streamlit/static/static/js/index.CwbFI1_-.js +0 -1
  290. streamlit/static/static/js/index.D2KPNy7e.js +0 -1
  291. streamlit/static/static/js/index.DGAh7DMq.js +0 -1
  292. streamlit/static/static/js/index.DKb_NvmG.js +0 -197
  293. streamlit/static/static/js/index.DMqgUYKq.js +0 -1
  294. streamlit/static/static/js/index.DX1xY89g.js +0 -1
  295. streamlit/static/static/js/index.DYATBCsq.js +0 -2
  296. streamlit/static/static/js/index.DaSmGJ76.js +0 -3
  297. streamlit/static/static/js/index.Dd7bMeLP.js +0 -1
  298. streamlit/static/static/js/index.DjmmgI5U.js +0 -1
  299. streamlit/static/static/js/index.Dq56CyM2.js +0 -1
  300. streamlit/static/static/js/index.DuiXaS5_.js +0 -7
  301. streamlit/static/static/js/index.DvFidMLe.js +0 -2
  302. streamlit/static/static/js/index.DwkhC5Pc.js +0 -1
  303. streamlit/static/static/js/index.Q-3sFn1v.js +0 -1
  304. streamlit/static/static/js/index.QJ5QO9sJ.js +0 -1
  305. streamlit/static/static/js/index.VwTaeety.js +0 -1
  306. streamlit/static/static/js/index.YOqQbeX8.js +0 -1
  307. streamlit/static/static/js/number-overlay-editor.DRwAw1In.js +0 -9
  308. streamlit/static/static/js/uniqueId.oG4Gvj1v.js +0 -1
  309. streamlit/static/static/js/useUpdateUiValue.F2R3eTeR.js +0 -1
  310. streamlit/static/static/js/withFullScreenWrapper.zothJIsI.js +0 -1
  311. {streamlit-1.51.0.data → streamlit-1.52.1.data}/scripts/streamlit.cmd +0 -0
  312. {streamlit-1.51.0.dist-info → streamlit-1.52.1.dist-info}/WHEEL +0 -0
  313. {streamlit-1.51.0.dist-info → streamlit-1.52.1.dist-info}/entry_points.txt +0 -0
  314. {streamlit-1.51.0.dist-info → streamlit-1.52.1.dist-info}/top_level.txt +0 -0
@@ -23,8 +23,14 @@ import google.protobuf.descriptor
23
23
  import google.protobuf.internal.containers
24
24
  import google.protobuf.message
25
25
  import streamlit.proto.LabelVisibilityMessage_pb2
26
+ import sys
26
27
  import typing
27
28
 
29
+ if sys.version_info >= (3, 10):
30
+ import typing as typing_extensions
31
+ else:
32
+ import typing_extensions
33
+
28
34
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
29
35
 
30
36
  @typing.final
@@ -81,4 +87,4 @@ class Radio(google.protobuf.message.Message):
81
87
  @typing.overload
82
88
  def WhichOneof(self, oneof_group: typing.Literal["_value", b"_value"]) -> typing.Literal["value"] | None: ...
83
89
 
84
- global___Radio = Radio
90
+ Global___Radio: typing_extensions.TypeAlias = Radio
@@ -53,4 +53,4 @@ MAIN: RootContainer.ValueType # 0
53
53
  SIDEBAR: RootContainer.ValueType # 1
54
54
  EVENT: RootContainer.ValueType # 2
55
55
  BOTTOM: RootContainer.ValueType # 3
56
- global___RootContainer = RootContainer
56
+ Global___RootContainer: typing_extensions.TypeAlias = RootContainer
@@ -23,8 +23,14 @@ import google.protobuf.descriptor
23
23
  import google.protobuf.internal.containers
24
24
  import google.protobuf.message
25
25
  import streamlit.proto.LabelVisibilityMessage_pb2
26
+ import sys
26
27
  import typing
27
28
 
29
+ if sys.version_info >= (3, 10):
30
+ import typing as typing_extensions
31
+ else:
32
+ import typing_extensions
33
+
28
34
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
29
35
 
30
36
  @typing.final
@@ -90,4 +96,4 @@ class Selectbox(google.protobuf.message.Message):
90
96
  @typing.overload
91
97
  def WhichOneof(self, oneof_group: typing.Literal["_value", b"_value"]) -> typing.Literal["value"] | None: ...
92
98
 
93
- global___Selectbox = Selectbox
99
+ Global___Selectbox: typing_extensions.TypeAlias = Selectbox
@@ -21,8 +21,14 @@ import builtins
21
21
  import google.protobuf.descriptor
22
22
  import google.protobuf.message
23
23
  import streamlit.proto.Exception_pb2
24
+ import sys
24
25
  import typing
25
26
 
27
+ if sys.version_info >= (3, 10):
28
+ import typing as typing_extensions
29
+ else:
30
+ import typing_extensions
31
+
26
32
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
27
33
 
28
34
  @typing.final
@@ -59,4 +65,4 @@ class SessionEvent(google.protobuf.message.Message):
59
65
  def ClearField(self, field_name: typing.Literal["script_changed_on_disk", b"script_changed_on_disk", "script_compilation_exception", b"script_compilation_exception", "script_was_manually_stopped", b"script_was_manually_stopped", "type", b"type"]) -> None: ...
60
66
  def WhichOneof(self, oneof_group: typing.Literal["type", b"type"]) -> typing.Literal["script_changed_on_disk", "script_was_manually_stopped", "script_compilation_exception"] | None: ...
61
67
 
62
- global___SessionEvent = SessionEvent
68
+ Global___SessionEvent: typing_extensions.TypeAlias = SessionEvent
@@ -20,8 +20,14 @@ limitations under the License.
20
20
  import builtins
21
21
  import google.protobuf.descriptor
22
22
  import google.protobuf.message
23
+ import sys
23
24
  import typing
24
25
 
26
+ if sys.version_info >= (3, 10):
27
+ import typing as typing_extensions
28
+ else:
29
+ import typing_extensions
30
+
25
31
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
26
32
 
27
33
  @typing.final
@@ -54,4 +60,4 @@ class SessionStatus(google.protobuf.message.Message):
54
60
  ) -> None: ...
55
61
  def ClearField(self, field_name: typing.Literal["run_on_save", b"run_on_save", "script_is_running", b"script_is_running"]) -> None: ...
56
62
 
57
- global___SessionStatus = SessionStatus
63
+ Global___SessionStatus: typing_extensions.TypeAlias = SessionStatus
@@ -54,18 +54,18 @@ class Skeleton(google.protobuf.message.Message):
54
54
 
55
55
  STYLE_FIELD_NUMBER: builtins.int
56
56
  HEIGHT_FIELD_NUMBER: builtins.int
57
- style: global___Skeleton.SkeletonStyle.ValueType
57
+ style: Global___Skeleton.SkeletonStyle.ValueType
58
58
  """Skeleton visual style"""
59
59
  height: builtins.int
60
60
  """Height in pixels"""
61
61
  def __init__(
62
62
  self,
63
63
  *,
64
- style: global___Skeleton.SkeletonStyle.ValueType = ...,
64
+ style: Global___Skeleton.SkeletonStyle.ValueType = ...,
65
65
  height: builtins.int | None = ...,
66
66
  ) -> None: ...
67
67
  def HasField(self, field_name: typing.Literal["_height", b"_height", "height", b"height"]) -> builtins.bool: ...
68
68
  def ClearField(self, field_name: typing.Literal["_height", b"_height", "height", b"height", "style", b"style"]) -> None: ...
69
69
  def WhichOneof(self, oneof_group: typing.Literal["_height", b"_height"]) -> typing.Literal["height"] | None: ...
70
70
 
71
- global___Skeleton = Skeleton
71
+ Global___Skeleton: typing_extensions.TypeAlias = Skeleton
@@ -100,14 +100,14 @@ class Slider(google.protobuf.message.Message):
100
100
  form_id: builtins.str
101
101
  label: builtins.str
102
102
  format: builtins.str
103
- data_type: global___Slider.DataType.ValueType
103
+ data_type: Global___Slider.DataType.ValueType
104
104
  min: builtins.float
105
105
  max: builtins.float
106
106
  step: builtins.float
107
107
  set_value: builtins.bool
108
108
  help: builtins.str
109
109
  disabled: builtins.bool
110
- type: global___Slider.Type.ValueType
110
+ type: Global___Slider.Type.ValueType
111
111
  @property
112
112
  def default(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ...
113
113
  @property
@@ -123,7 +123,7 @@ class Slider(google.protobuf.message.Message):
123
123
  form_id: builtins.str = ...,
124
124
  label: builtins.str = ...,
125
125
  format: builtins.str = ...,
126
- data_type: global___Slider.DataType.ValueType = ...,
126
+ data_type: Global___Slider.DataType.ValueType = ...,
127
127
  default: collections.abc.Iterable[builtins.float] | None = ...,
128
128
  min: builtins.float = ...,
129
129
  max: builtins.float = ...,
@@ -134,9 +134,9 @@ class Slider(google.protobuf.message.Message):
134
134
  help: builtins.str = ...,
135
135
  disabled: builtins.bool = ...,
136
136
  label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
137
- type: global___Slider.Type.ValueType = ...,
137
+ type: Global___Slider.Type.ValueType = ...,
138
138
  ) -> None: ...
139
139
  def HasField(self, field_name: typing.Literal["label_visibility", b"label_visibility"]) -> builtins.bool: ...
140
140
  def ClearField(self, field_name: typing.Literal["data_type", b"data_type", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "format", b"format", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "max", b"max", "min", b"min", "options", b"options", "set_value", b"set_value", "step", b"step", "type", b"type", "value", b"value"]) -> None: ...
141
141
 
142
- global___Slider = Slider
142
+ Global___Slider: typing_extensions.TypeAlias = Slider
@@ -20,8 +20,14 @@ limitations under the License.
20
20
  import builtins
21
21
  import google.protobuf.descriptor
22
22
  import google.protobuf.message
23
+ import sys
23
24
  import typing
24
25
 
26
+ if sys.version_info >= (3, 10):
27
+ import typing as typing_extensions
28
+ else:
29
+ import typing_extensions
30
+
25
31
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
26
32
 
27
33
  @typing.final
@@ -40,4 +46,4 @@ class Snow(google.protobuf.message.Message):
40
46
  ) -> None: ...
41
47
  def ClearField(self, field_name: typing.Literal["show", b"show"]) -> None: ...
42
48
 
43
- global___Snow = Snow
49
+ Global___Snow: typing_extensions.TypeAlias = Snow
@@ -19,8 +19,14 @@ limitations under the License.
19
19
 
20
20
  import google.protobuf.descriptor
21
21
  import google.protobuf.message
22
+ import sys
22
23
  import typing
23
24
 
25
+ if sys.version_info >= (3, 10):
26
+ import typing as typing_extensions
27
+ else:
28
+ import typing_extensions
29
+
24
30
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
25
31
 
26
32
  @typing.final
@@ -39,4 +45,4 @@ class Space(google.protobuf.message.Message):
39
45
  self,
40
46
  ) -> None: ...
41
47
 
42
- global___Space = Space
48
+ Global___Space: typing_extensions.TypeAlias = Space
@@ -20,8 +20,14 @@ limitations under the License.
20
20
  import builtins
21
21
  import google.protobuf.descriptor
22
22
  import google.protobuf.message
23
+ import sys
23
24
  import typing
24
25
 
26
+ if sys.version_info >= (3, 10):
27
+ import typing as typing_extensions
28
+ else:
29
+ import typing_extensions
30
+
25
31
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
26
32
 
27
33
  @typing.final
@@ -46,4 +52,4 @@ class Spinner(google.protobuf.message.Message):
46
52
  ) -> None: ...
47
53
  def ClearField(self, field_name: typing.Literal["cache", b"cache", "show_time", b"show_time", "text", b"text"]) -> None: ...
48
54
 
49
- global___Spinner = Spinner
55
+ Global___Spinner: typing_extensions.TypeAlias = Spinner
@@ -0,0 +1,29 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: streamlit/proto/TextAlignmentConfig.proto
4
+ # Protobuf Python Version: 5.26.1
5
+ """Generated protocol buffer code."""
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import descriptor_pool as _descriptor_pool
8
+ from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
10
+ # @@protoc_insertion_point(imports)
11
+
12
+ _sym_db = _symbol_database.Default()
13
+
14
+
15
+
16
+
17
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n)streamlit/proto/TextAlignmentConfig.proto\x12\tstreamlit\"\x9e\x01\n\x13TextAlignmentConfig\x12;\n\talignment\x18\x01 \x01(\x0e\x32(.streamlit.TextAlignmentConfig.Alignment\"J\n\tAlignment\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x08\n\x04LEFT\x10\x01\x12\n\n\x06\x43\x45NTER\x10\x02\x12\t\n\x05RIGHT\x10\x03\x12\x0b\n\x07JUSTIFY\x10\x04\x42\x38\n\x1c\x63om.snowflake.apps.streamlitB\x18TextAlignmentConfigProtob\x06proto3')
18
+
19
+ _globals = globals()
20
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.TextAlignmentConfig_pb2', _globals)
22
+ if not _descriptor._USE_C_DESCRIPTORS:
23
+ _globals['DESCRIPTOR']._loaded_options = None
24
+ _globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\030TextAlignmentConfigProto'
25
+ _globals['_TEXTALIGNMENTCONFIG']._serialized_start=57
26
+ _globals['_TEXTALIGNMENTCONFIG']._serialized_end=215
27
+ _globals['_TEXTALIGNMENTCONFIG_ALIGNMENT']._serialized_start=141
28
+ _globals['_TEXTALIGNMENTCONFIG_ALIGNMENT']._serialized_end=215
29
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,68 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ *!
5
+ Copyright (c) Streamlit Inc. (2018-2022) Snowflake Inc. (2022-2025)
6
+
7
+ Licensed under the Apache License, Version 2.0 (the "License");
8
+ you may not use this file except in compliance with the License.
9
+ You may obtain a copy of the License at
10
+
11
+ http://www.apache.org/licenses/LICENSE-2.0
12
+
13
+ Unless required by applicable law or agreed to in writing, software
14
+ distributed under the License is distributed on an "AS IS" BASIS,
15
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ See the License for the specific language governing permissions and
17
+ limitations under the License.
18
+ """
19
+
20
+ import builtins
21
+ import google.protobuf.descriptor
22
+ import google.protobuf.internal.enum_type_wrapper
23
+ import google.protobuf.message
24
+ import sys
25
+ import typing
26
+
27
+ if sys.version_info >= (3, 10):
28
+ import typing as typing_extensions
29
+ else:
30
+ import typing_extensions
31
+
32
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
33
+
34
+ @typing.final
35
+ class TextAlignmentConfig(google.protobuf.message.Message):
36
+ """Text alignment configuration for text elements"""
37
+
38
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
39
+
40
+ class _Alignment:
41
+ ValueType = typing.NewType("ValueType", builtins.int)
42
+ V: typing_extensions.TypeAlias = ValueType
43
+
44
+ class _AlignmentEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[TextAlignmentConfig._Alignment.ValueType], builtins.type):
45
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
46
+ UNSPECIFIED: TextAlignmentConfig._Alignment.ValueType # 0
47
+ LEFT: TextAlignmentConfig._Alignment.ValueType # 1
48
+ CENTER: TextAlignmentConfig._Alignment.ValueType # 2
49
+ RIGHT: TextAlignmentConfig._Alignment.ValueType # 3
50
+ JUSTIFY: TextAlignmentConfig._Alignment.ValueType # 4
51
+
52
+ class Alignment(_Alignment, metaclass=_AlignmentEnumTypeWrapper): ...
53
+ UNSPECIFIED: TextAlignmentConfig.Alignment.ValueType # 0
54
+ LEFT: TextAlignmentConfig.Alignment.ValueType # 1
55
+ CENTER: TextAlignmentConfig.Alignment.ValueType # 2
56
+ RIGHT: TextAlignmentConfig.Alignment.ValueType # 3
57
+ JUSTIFY: TextAlignmentConfig.Alignment.ValueType # 4
58
+
59
+ ALIGNMENT_FIELD_NUMBER: builtins.int
60
+ alignment: Global___TextAlignmentConfig.Alignment.ValueType
61
+ def __init__(
62
+ self,
63
+ *,
64
+ alignment: Global___TextAlignmentConfig.Alignment.ValueType = ...,
65
+ ) -> None: ...
66
+ def ClearField(self, field_name: typing.Literal["alignment", b"alignment"]) -> None: ...
67
+
68
+ Global___TextAlignmentConfig: typing_extensions.TypeAlias = TextAlignmentConfig
@@ -21,8 +21,14 @@ import builtins
21
21
  import google.protobuf.descriptor
22
22
  import google.protobuf.message
23
23
  import streamlit.proto.LabelVisibilityMessage_pb2
24
+ import sys
24
25
  import typing
25
26
 
27
+ if sys.version_info >= (3, 10):
28
+ import typing as typing_extensions
29
+ else:
30
+ import typing_extensions
31
+
26
32
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
27
33
 
28
34
  @typing.final
@@ -78,4 +84,4 @@ class TextArea(google.protobuf.message.Message):
78
84
  @typing.overload
79
85
  def WhichOneof(self, oneof_group: typing.Literal["_value", b"_value"]) -> typing.Literal["value"] | None: ...
80
86
 
81
- global___TextArea = TextArea
87
+ Global___TextArea: typing_extensions.TypeAlias = TextArea
@@ -70,7 +70,7 @@ class TextInput(google.protobuf.message.Message):
70
70
  id: builtins.str
71
71
  label: builtins.str
72
72
  default: builtins.str
73
- type: global___TextInput.Type.ValueType
73
+ type: Global___TextInput.Type.ValueType
74
74
  max_chars: builtins.int
75
75
  help: builtins.str
76
76
  form_id: builtins.str
@@ -88,7 +88,7 @@ class TextInput(google.protobuf.message.Message):
88
88
  id: builtins.str = ...,
89
89
  label: builtins.str = ...,
90
90
  default: builtins.str | None = ...,
91
- type: global___TextInput.Type.ValueType = ...,
91
+ type: Global___TextInput.Type.ValueType = ...,
92
92
  max_chars: builtins.int = ...,
93
93
  help: builtins.str = ...,
94
94
  form_id: builtins.str = ...,
@@ -107,4 +107,4 @@ class TextInput(google.protobuf.message.Message):
107
107
  @typing.overload
108
108
  def WhichOneof(self, oneof_group: typing.Literal["_value", b"_value"]) -> typing.Literal["value"] | None: ...
109
109
 
110
- global___TextInput = TextInput
110
+ Global___TextInput: typing_extensions.TypeAlias = TextInput
@@ -20,8 +20,14 @@ limitations under the License.
20
20
  import builtins
21
21
  import google.protobuf.descriptor
22
22
  import google.protobuf.message
23
+ import sys
23
24
  import typing
24
25
 
26
+ if sys.version_info >= (3, 10):
27
+ import typing as typing_extensions
28
+ else:
29
+ import typing_extensions
30
+
25
31
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
26
32
 
27
33
  @typing.final
@@ -43,4 +49,4 @@ class Text(google.protobuf.message.Message):
43
49
  ) -> None: ...
44
50
  def ClearField(self, field_name: typing.Literal["body", b"body", "help", b"help"]) -> None: ...
45
51
 
46
- global___Text = Text
52
+ Global___Text: typing_extensions.TypeAlias = Text
@@ -21,8 +21,14 @@ import builtins
21
21
  import google.protobuf.descriptor
22
22
  import google.protobuf.message
23
23
  import streamlit.proto.LabelVisibilityMessage_pb2
24
+ import sys
24
25
  import typing
25
26
 
27
+ if sys.version_info >= (3, 10):
28
+ import typing as typing_extensions
29
+ else:
30
+ import typing_extensions
31
+
26
32
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
27
33
 
28
34
  @typing.final
@@ -71,4 +77,4 @@ class TimeInput(google.protobuf.message.Message):
71
77
  @typing.overload
72
78
  def WhichOneof(self, oneof_group: typing.Literal["_value", b"_value"]) -> typing.Literal["value"] | None: ...
73
79
 
74
- global___TimeInput = TimeInput
80
+ Global___TimeInput: typing_extensions.TypeAlias = TimeInput
@@ -20,8 +20,14 @@ limitations under the License.
20
20
  import builtins
21
21
  import google.protobuf.descriptor
22
22
  import google.protobuf.message
23
+ import sys
23
24
  import typing
24
25
 
26
+ if sys.version_info >= (3, 10):
27
+ import typing as typing_extensions
28
+ else:
29
+ import typing_extensions
30
+
25
31
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
26
32
 
27
33
  @typing.final
@@ -51,4 +57,4 @@ class Toast(google.protobuf.message.Message):
51
57
  def ClearField(self, field_name: typing.Literal["_duration", b"_duration", "body", b"body", "duration", b"duration", "icon", b"icon"]) -> None: ...
52
58
  def WhichOneof(self, oneof_group: typing.Literal["_duration", b"_duration"]) -> typing.Literal["duration"] | None: ...
53
59
 
54
- global___Toast = Toast
60
+ Global___Toast: typing_extensions.TypeAlias = Toast
@@ -24,8 +24,14 @@ import google.protobuf.internal.containers
24
24
  import google.protobuf.message
25
25
  import streamlit.proto.DataFrame_pb2
26
26
  import streamlit.proto.NamedDataSet_pb2
27
+ import sys
27
28
  import typing
28
29
 
30
+ if sys.version_info >= (3, 10):
31
+ import typing as typing_extensions
32
+ else:
33
+ import typing_extensions
34
+
29
35
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
30
36
 
31
37
  @typing.final
@@ -68,4 +74,4 @@ class VegaLiteChart(google.protobuf.message.Message):
68
74
  def HasField(self, field_name: typing.Literal["data", b"data"]) -> builtins.bool: ...
69
75
  def ClearField(self, field_name: typing.Literal["data", b"data", "datasets", b"datasets", "spec", b"spec", "use_container_width", b"use_container_width"]) -> None: ...
70
76
 
71
- global___VegaLiteChart = VegaLiteChart
77
+ Global___VegaLiteChart: typing_extensions.TypeAlias = VegaLiteChart
@@ -51,7 +51,7 @@ class SubtitleTrack(google.protobuf.message.Message):
51
51
  ) -> None: ...
52
52
  def ClearField(self, field_name: typing.Literal["label", b"label", "url", b"url"]) -> None: ...
53
53
 
54
- global___SubtitleTrack = SubtitleTrack
54
+ Global___SubtitleTrack: typing_extensions.TypeAlias = SubtitleTrack
55
55
 
56
56
  @typing.final
57
57
  class Video(google.protobuf.message.Message):
@@ -88,7 +88,7 @@ class Video(google.protobuf.message.Message):
88
88
  """A url pointing to a video file"""
89
89
  start_time: builtins.int
90
90
  """The currentTime attribute of the HTML <video> tag's <source> subtag."""
91
- type: global___Video.Type.ValueType
91
+ type: Global___Video.Type.ValueType
92
92
  """Type affects how browser wraps the video in tags: plain HTML5, YouTube..."""
93
93
  end_time: builtins.int
94
94
  """The time at which the video should stop playing. If not specified, plays to the end."""
@@ -98,7 +98,7 @@ class Video(google.protobuf.message.Message):
98
98
  muted: builtins.bool
99
99
  id: builtins.str
100
100
  @property
101
- def subtitles(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SubtitleTrack]:
101
+ def subtitles(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___SubtitleTrack]:
102
102
  """Repeated field for subtitle tracks"""
103
103
 
104
104
  @property
@@ -108,8 +108,8 @@ class Video(google.protobuf.message.Message):
108
108
  *,
109
109
  url: builtins.str = ...,
110
110
  start_time: builtins.int = ...,
111
- type: global___Video.Type.ValueType = ...,
112
- subtitles: collections.abc.Iterable[global___SubtitleTrack] | None = ...,
111
+ type: Global___Video.Type.ValueType = ...,
112
+ subtitles: collections.abc.Iterable[Global___SubtitleTrack] | None = ...,
113
113
  end_time: builtins.int = ...,
114
114
  loop: builtins.bool = ...,
115
115
  autoplay: builtins.bool = ...,
@@ -121,4 +121,4 @@ class Video(google.protobuf.message.Message):
121
121
  def ClearField(self, field_name: typing.Literal["_width_config", b"_width_config", "autoplay", b"autoplay", "end_time", b"end_time", "id", b"id", "loop", b"loop", "muted", b"muted", "start_time", b"start_time", "subtitles", b"subtitles", "type", b"type", "url", b"url", "width_config", b"width_config"]) -> None: ...
122
122
  def WhichOneof(self, oneof_group: typing.Literal["_width_config", b"_width_config"]) -> typing.Literal["width_config"] | None: ...
123
123
 
124
- global___Video = Video
124
+ Global___Video: typing_extensions.TypeAlias = Video
@@ -24,8 +24,14 @@ import google.protobuf.internal.containers
24
24
  import google.protobuf.message
25
25
  import streamlit.proto.Common_pb2
26
26
  import streamlit.proto.Components_pb2
27
+ import sys
27
28
  import typing
28
29
 
30
+ if sys.version_info >= (3, 10):
31
+ import typing as typing_extensions
32
+ else:
33
+ import typing_extensions
34
+
29
35
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
30
36
 
31
37
  @typing.final
@@ -36,15 +42,15 @@ class WidgetStates(google.protobuf.message.Message):
36
42
 
37
43
  WIDGETS_FIELD_NUMBER: builtins.int
38
44
  @property
39
- def widgets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___WidgetState]: ...
45
+ def widgets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___WidgetState]: ...
40
46
  def __init__(
41
47
  self,
42
48
  *,
43
- widgets: collections.abc.Iterable[global___WidgetState] | None = ...,
49
+ widgets: collections.abc.Iterable[Global___WidgetState] | None = ...,
44
50
  ) -> None: ...
45
51
  def ClearField(self, field_name: typing.Literal["widgets", b"widgets"]) -> None: ...
46
52
 
47
- global___WidgetStates = WidgetStates
53
+ Global___WidgetStates: typing_extensions.TypeAlias = WidgetStates
48
54
 
49
55
  @typing.final
50
56
  class WidgetState(google.protobuf.message.Message):
@@ -137,4 +143,4 @@ class WidgetState(google.protobuf.message.Message):
137
143
  def ClearField(self, field_name: typing.Literal["arrow_value", b"arrow_value", "bool_value", b"bool_value", "bytes_value", b"bytes_value", "chat_input_value", b"chat_input_value", "double_array_value", b"double_array_value", "double_value", b"double_value", "file_uploader_state_value", b"file_uploader_state_value", "id", b"id", "int_array_value", b"int_array_value", "int_value", b"int_value", "json_trigger_value", b"json_trigger_value", "json_value", b"json_value", "string_array_value", b"string_array_value", "string_trigger_value", b"string_trigger_value", "string_value", b"string_value", "trigger_value", b"trigger_value", "value", b"value"]) -> None: ...
138
144
  def WhichOneof(self, oneof_group: typing.Literal["value", b"value"]) -> typing.Literal["trigger_value", "bool_value", "double_value", "int_value", "string_value", "double_array_value", "int_array_value", "string_array_value", "json_value", "arrow_value", "bytes_value", "file_uploader_state_value", "string_trigger_value", "chat_input_value", "json_trigger_value"] | None: ...
139
145
 
140
- global___WidgetState = WidgetState
146
+ Global___WidgetState: typing_extensions.TypeAlias = WidgetState
@@ -20,8 +20,14 @@ limitations under the License.
20
20
  import builtins
21
21
  import google.protobuf.descriptor
22
22
  import google.protobuf.message
23
+ import sys
23
24
  import typing
24
25
 
26
+ if sys.version_info >= (3, 10):
27
+ import typing as typing_extensions
28
+ else:
29
+ import typing_extensions
30
+
25
31
  DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
26
32
 
27
33
  @typing.final
@@ -48,4 +54,4 @@ class WidthConfig(google.protobuf.message.Message):
48
54
  def ClearField(self, field_name: typing.Literal["pixel_width", b"pixel_width", "rem_width", b"rem_width", "use_content", b"use_content", "use_stretch", b"use_stretch", "width_spec", b"width_spec"]) -> None: ...
49
55
  def WhichOneof(self, oneof_group: typing.Literal["width_spec", b"width_spec"]) -> typing.Literal["use_stretch", "use_content", "pixel_width", "rem_width"] | None: ...
50
56
 
51
- global___WidthConfig = WidthConfig
57
+ Global___WidthConfig: typing_extensions.TypeAlias = WidthConfig