streamlit-nightly 1.52.3.dev20260111__py3-none-any.whl → 1.52.3.dev20260113__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 (213) hide show
  1. streamlit/__init__.py +1 -1
  2. streamlit/auth_util.py +25 -2
  3. streamlit/cli_util.py +1 -1
  4. streamlit/components/v2/bidi_component/main.py +2 -2
  5. streamlit/connections/snowflake_connection.py +1 -1
  6. streamlit/dataframe_util.py +1 -3
  7. streamlit/elements/arrow.py +5 -1
  8. streamlit/elements/lib/color_util.py +1 -1
  9. streamlit/elements/lib/image_utils.py +1 -1
  10. streamlit/elements/vega_charts.py +4 -1
  11. streamlit/elements/widgets/multiselect.py +1 -1
  12. streamlit/elements/widgets/time_widgets.py +1 -1
  13. streamlit/elements/write.py +1 -2
  14. streamlit/errors.py +2 -0
  15. streamlit/external/langchain/streamlit_callback_handler.py +1 -1
  16. streamlit/proto/Alert_pb2.pyi +31 -31
  17. streamlit/proto/AppPage_pb2.pyi +30 -30
  18. streamlit/proto/ArrowData_pb2.pyi +15 -15
  19. streamlit/proto/ArrowNamedDataSet_pb2.pyi +25 -25
  20. streamlit/proto/ArrowVegaLiteChart_pb2.pyi +45 -45
  21. streamlit/proto/Arrow_pb2.pyi +126 -97
  22. streamlit/proto/AudioInput_pb2.pyi +39 -39
  23. streamlit/proto/Audio_pb2.pyi +39 -39
  24. streamlit/proto/AuthRedirect_pb2.pyi +15 -15
  25. streamlit/proto/AutoRerun_pb2.pyi +18 -18
  26. streamlit/proto/BackMsg_pb2.pyi +64 -64
  27. streamlit/proto/Balloons_pb2.pyi +15 -15
  28. streamlit/proto/BidiComponent_pb2.pyi +100 -100
  29. streamlit/proto/Block_pb2.pyi +295 -264
  30. streamlit/proto/BokehChart_pb2.pyi +21 -21
  31. streamlit/proto/ButtonGroup_pb2.pyi +96 -96
  32. streamlit/proto/ButtonLikeIconPosition_pb2.pyi +12 -12
  33. streamlit/proto/Button_pb2.pyi +63 -50
  34. streamlit/proto/CameraInput_pb2.pyi +34 -34
  35. streamlit/proto/ChatInput_pb2.pyi +63 -63
  36. streamlit/proto/Checkbox_pb2.pyi +49 -49
  37. streamlit/proto/ClientState_pb2.pyi +85 -85
  38. streamlit/proto/Code_pb2.pyi +41 -28
  39. streamlit/proto/ColorPicker_pb2.pyi +43 -43
  40. streamlit/proto/Common_pb2.pyi +175 -175
  41. streamlit/proto/Components_pb2.pyi +110 -110
  42. streamlit/proto/DataFrame_pb2.pyi +209 -209
  43. streamlit/proto/DateInput_pb2.pyi +59 -59
  44. streamlit/proto/DateTimeInput_pb2.pyi +62 -62
  45. streamlit/proto/DeckGlJsonChart_pb2.pyi +91 -56
  46. streamlit/proto/Delta_pb2.pyi +44 -44
  47. streamlit/proto/DocString_pb2.pyi +51 -51
  48. streamlit/proto/DownloadButton_pb2.pyi +59 -59
  49. streamlit/proto/Element_pb2.pyi +319 -319
  50. streamlit/proto/Empty_pb2.pyi +10 -10
  51. streamlit/proto/Exception_pb2.pyi +37 -37
  52. streamlit/proto/Favicon_pb2.pyi +15 -15
  53. streamlit/proto/FileUploader_pb2.pyi +49 -49
  54. streamlit/proto/ForwardMsg_pb2.pyi +176 -170
  55. streamlit/proto/GapSize_pb2.pyi +23 -23
  56. streamlit/proto/GitInfo_pb2.pyi +37 -37
  57. streamlit/proto/GraphVizChart_pb2.pyi +38 -25
  58. streamlit/proto/Heading_pb2.pyi +30 -30
  59. streamlit/proto/HeightConfig_pb2.pyi +31 -31
  60. streamlit/proto/Html_pb2.pyi +18 -18
  61. streamlit/proto/IFrame_pb2.pyi +76 -47
  62. streamlit/proto/Image_pb2.pyi +49 -36
  63. streamlit/proto/Json_pb2.pyi +25 -25
  64. streamlit/proto/LabelVisibilityMessage_pb2.pyi +18 -18
  65. streamlit/proto/LinkButton_pb2.pyi +43 -43
  66. streamlit/proto/Logo_pb2.pyi +24 -24
  67. streamlit/proto/Markdown_pb2.pyi +30 -30
  68. streamlit/proto/Metric_pb2.pyi +59 -59
  69. streamlit/proto/MetricsEvent_pb2.pyi +171 -171
  70. streamlit/proto/MultiSelect_pb2.pyi +72 -66
  71. streamlit/proto/NamedDataSet_pb2.pyi +25 -25
  72. streamlit/proto/Navigation_pb2.pyi +35 -35
  73. streamlit/proto/NewSession_pb2.pyi +511 -498
  74. streamlit/proto/NumberInput_pb2.pyi +79 -79
  75. streamlit/proto/PageConfig_pb2.pyi +71 -71
  76. streamlit/proto/PageInfo_pb2.pyi +15 -15
  77. streamlit/proto/PageLink_pb2.pyi +47 -47
  78. streamlit/proto/PageNotFound_pb2.pyi +15 -15
  79. streamlit/proto/PageProfile_pb2.pyi +85 -85
  80. streamlit/proto/PagesChanged_pb2.pyi +19 -19
  81. streamlit/proto/ParentMessage_pb2.pyi +15 -15
  82. streamlit/proto/PlotlyChart_pb2.pyi +79 -64
  83. streamlit/proto/Progress_pb2.pyi +18 -18
  84. streamlit/proto/Radio_pb2.pyi +62 -62
  85. streamlit/proto/RootContainer_pb2.pyi +12 -12
  86. streamlit/proto/Selectbox_pb2.pyi +80 -70
  87. streamlit/proto/SessionEvent_pb2.pyi +27 -27
  88. streamlit/proto/SessionStatus_pb2.pyi +18 -18
  89. streamlit/proto/Skeleton_pb2.pyi +25 -25
  90. streamlit/proto/Slider_pb2.pyi +74 -74
  91. streamlit/proto/Snow_pb2.pyi +15 -15
  92. streamlit/proto/Space_pb2.pyi +10 -10
  93. streamlit/proto/Spinner_pb2.pyi +21 -21
  94. streamlit/proto/TextAlignmentConfig_pb2.pyi +18 -18
  95. streamlit/proto/TextArea_pb2.pyi +72 -59
  96. streamlit/proto/TextInput_pb2.pyi +67 -67
  97. streamlit/proto/Text_pb2.pyi +18 -18
  98. streamlit/proto/TimeInput_pb2.pyi +52 -52
  99. streamlit/proto/Toast_pb2.pyi +25 -25
  100. streamlit/proto/Transient_pb2.pyi +19 -19
  101. streamlit/proto/VegaLiteChart_pb2.pyi +32 -32
  102. streamlit/proto/Video_pb2.pyi +65 -65
  103. streamlit/proto/WidgetStates_pb2.pyi +91 -85
  104. streamlit/proto/WidthConfig_pb2.pyi +31 -31
  105. streamlit/proto/openmetrics_data_model_pb2.pyi +269 -269
  106. streamlit/runtime/app_session.py +1 -1
  107. streamlit/runtime/credentials.py +2 -2
  108. streamlit/runtime/metrics_util.py +3 -3
  109. streamlit/runtime/secrets.py +1 -1
  110. streamlit/runtime/stats.py +1 -3
  111. streamlit/static/index.html +1 -1
  112. streamlit/static/manifest.json +296 -296
  113. streamlit/static/static/js/{ErrorOutline.esm.D0HiUB0L.js → ErrorOutline.esm.BjVqd_6R.js} +1 -1
  114. streamlit/static/static/js/{FileDownload.esm.BuUS-pfi.js → FileDownload.esm.DJCSsghl.js} +1 -1
  115. streamlit/static/static/js/{FileHelper.Pf8URFng.js → FileHelper.C---TH7o.js} +1 -1
  116. streamlit/static/static/js/{FormClearHelper.By4vKj6A.js → FormClearHelper.C-6BC487.js} +1 -1
  117. streamlit/static/static/js/{InputInstructions.BiaGyIXk.js → InputInstructions.sxc3InCI.js} +1 -1
  118. streamlit/static/static/js/{Particles.2-EdjYhR.js → Particles.S8yD7iW-.js} +1 -1
  119. streamlit/static/static/js/{ProgressBar.Dgbh0B0d.js → ProgressBar.BiYsyZCC.js} +1 -1
  120. streamlit/static/static/js/{StreamlitSyntaxHighlighter.DSl8Wr3R.js → StreamlitSyntaxHighlighter.9jZF8jX1.js} +1 -1
  121. streamlit/static/static/js/{TableChart.esm.MOwyTUPh.js → TableChart.esm.BdA4Q1rZ.js} +1 -1
  122. streamlit/static/static/js/{Toolbar.CowuXIFr.js → Toolbar.B9DaaDfN.js} +1 -1
  123. streamlit/static/static/js/{WidgetLabelHelpIconInline.BdGIJQe4.js → WidgetLabelHelpIconInline.DxODTLS2.js} +1 -1
  124. streamlit/static/static/js/{base-input.CHPo5oJ1.js → base-input.Gf1cKuQR.js} +1 -1
  125. streamlit/static/static/js/{checkbox.Dkt2TQVS.js → checkbox.CnoNruf3.js} +1 -1
  126. streamlit/static/static/js/{createDownloadLinkElement.BaE-_v8I.js → createDownloadLinkElement.B48AepiL.js} +1 -1
  127. streamlit/static/static/js/{data-grid-overlay-editor.C1ncL-Nr.js → data-grid-overlay-editor.Cmdq9aqU.js} +1 -1
  128. streamlit/static/static/js/{downloader.yaq2AzD9.js → downloader.CQLoQdMX.js} +1 -1
  129. streamlit/static/static/js/{embed.DJJvCVz2.js → embed.oKwocwU8.js} +1 -1
  130. streamlit/static/static/js/{es6.D2jK98VU.js → es6.BRxlY_y5.js} +2 -2
  131. streamlit/static/static/js/{formatNumber.Cxr2q_Sk.js → formatNumber.DaagZyZe.js} +1 -1
  132. streamlit/static/static/js/{iconPosition.5dHEZYw2.js → iconPosition.Q3hNvmK4.js} +1 -1
  133. streamlit/static/static/js/{iframeResizer.contentWindow.Cedt4qbc.js → iframeResizer.contentWindow.B6EBvI9L.js} +1 -1
  134. streamlit/static/static/js/{index.DaITTdfQ.js → index.19_qtO6t.js} +1 -1
  135. streamlit/static/static/js/{index._nL4Yjdr.js → index.43b777iP.js} +1 -1
  136. streamlit/static/static/js/{index.P-CMMGUY.js → index.B03eQZoH.js} +1 -1
  137. streamlit/static/static/js/{index.D2EVLt1U.js → index.B9kZB0o1.js} +1 -1
  138. streamlit/static/static/js/{index.BkDplL5I.js → index.BAI9aHCq.js} +1 -1
  139. streamlit/static/static/js/{index.CT9jvPcD.js → index.BF23fbfs.js} +1 -1
  140. streamlit/static/static/js/{index.TO9vodwr.js → index.BGBTkulf.js} +1 -1
  141. streamlit/static/static/js/{index.01VsD2h1.js → index.BRfGUOQ-.js} +5 -5
  142. streamlit/static/static/js/{index.D6ea3OJl.js → index.BVT89mQw.js} +1 -1
  143. streamlit/static/static/js/{index.BHMoYAbd.js → index.BXEC4cf3.js} +1 -1
  144. streamlit/static/static/js/{index.B6EliwN_.js → index.BbSFVZ3p.js} +1 -1
  145. streamlit/static/static/js/{index.B7EzT2pL.js → index.BkSwGJoh.js} +1 -1
  146. streamlit/static/static/js/{index.B6Uhb_NP.js → index.BnfTPrHb.js} +1 -1
  147. streamlit/static/static/js/{index.qzz9PjCO.js → index.BoX8d5rK.js} +1 -1
  148. streamlit/static/static/js/{index.Bb9kjc_v.js → index.Boa0Egng.js} +1 -1
  149. streamlit/static/static/js/{index.CjQo7CUO.js → index.BzwlrgZO.js} +1 -1
  150. streamlit/static/static/js/{index.Ba6hzYdl.js → index.C0fSEz-3.js} +1 -1
  151. streamlit/static/static/js/{index.B2TDaHdI.js → index.CCFwVy90.js} +1 -1
  152. streamlit/static/static/js/{index.Dt0Psatx.js → index.CCQ5p_WC.js} +1 -1
  153. streamlit/static/static/js/{index.DeGjj5Xy.js → index.CFCBhOfx.js} +1 -1
  154. streamlit/static/static/js/{index.DredtYc0.js → index.CIbgt5wY.js} +1 -1
  155. streamlit/static/static/js/{index.CD8IIWcc.js → index.CJ4oJe0V.js} +1 -1
  156. streamlit/static/static/js/{index.6_D2Y2jA.js → index.CP-hoxJM.js} +1 -1
  157. streamlit/static/static/js/{index.BXCQzqUL.js → index.CSfsEKCF.js} +1 -1
  158. streamlit/static/static/js/{index.C8PH2B2k.js → index.CVlg41MB.js} +1 -1
  159. streamlit/static/static/js/{index.BVit6ClT.js → index.CYE7b5Du.js} +1 -1
  160. streamlit/static/static/js/{index.DKUtJ1wC.js → index.Ca7MUNWJ.js} +1 -1
  161. streamlit/static/static/js/index.CrPjcPY1.js +1 -0
  162. streamlit/static/static/js/{index.BMPclSge.js → index.CvB9JBqS.js} +5 -5
  163. streamlit/static/static/js/{index.BCCeRfnu.js → index.CvIqsWy1.js} +1 -1
  164. streamlit/static/static/js/{index.wLJVkoPD.js → index.D1pK_Vw2.js} +1 -1
  165. streamlit/static/static/js/{index.B0GsKOuI.js → index.D6X2coHR.js} +1 -1
  166. streamlit/static/static/js/{index.B4x2O71H.js → index.DGYHxruh.js} +1 -1
  167. streamlit/static/static/js/{index.DcKOiCiE.js → index.DJ7P09eb.js} +1 -1
  168. streamlit/static/static/js/{index.CcHnYd9w.js → index.Dh5SAThV.js} +1 -1
  169. streamlit/static/static/js/{index.BFopzcDu.js → index.Fu73QtkD.js} +1 -1
  170. streamlit/static/static/js/{index.CIlqaESj.js → index.KN1VmyYN.js} +1 -1
  171. streamlit/static/static/js/{index.B9DrCSR6.js → index.KtjGDGY5.js} +1 -1
  172. streamlit/static/static/js/{index.DLB_Wwth.js → index.OpATzEaW.js} +1 -1
  173. streamlit/static/static/js/{index.CcJEaOpw.js → index.QHnxuesF.js} +1 -1
  174. streamlit/static/static/js/{index.1djeb6e0.js → index.QTaWooav.js} +1 -1
  175. streamlit/static/static/js/{index.BgVtKHgk.js → index.WXybx2Xq.js} +1 -1
  176. streamlit/static/static/js/{index.DtGneC7j.js → index.Xg-Qttib.js} +1 -1
  177. streamlit/static/static/js/{index.Dewn3Ni9.js → index.j4fnjyHo.js} +1 -1
  178. streamlit/static/static/js/{index.CAobVzMK.js → index.na9UBuse.js} +1 -1
  179. streamlit/static/static/js/{index.D2v1x0i_.js → index.pU9mQeVC.js} +1 -1
  180. streamlit/static/static/js/{index.DbTMA1_Q.js → index.slgxPafU.js} +1 -1
  181. streamlit/static/static/js/{index.DozBVd6-.js → index.whRT3Vm3.js} +1 -1
  182. streamlit/static/static/js/{input.27t-DftI.js → input.CPzINTl-.js} +1 -1
  183. streamlit/static/static/js/{main.BEfv2Y8-.js → main.DSPn8dUe.js} +1 -1
  184. streamlit/static/static/js/{memory.CaZBVQ_1.js → memory.CfD8IGoU.js} +1 -1
  185. streamlit/static/static/js/{number-overlay-editor.CAIp-3oo.js → number-overlay-editor.4Ae0qegV.js} +1 -1
  186. streamlit/static/static/js/{pandasStylerUtils.BY9qaz81.js → pandasStylerUtils.D2EjZ7k6.js} +1 -1
  187. streamlit/static/static/js/{sandbox.BJUaaWFJ.js → sandbox.C6vcPIm0.js} +1 -1
  188. streamlit/static/static/js/{styled-components.DQsMkvXn.js → styled-components.BBmp8buj.js} +1 -1
  189. streamlit/static/static/js/{throttle.DSR3q89S.js → throttle.BPcPpy-S.js} +1 -1
  190. streamlit/static/static/js/{timepicker.gie5YwtP.js → timepicker.ryzkTs2C.js} +1 -1
  191. streamlit/static/static/js/{toConsumableArray.C9lVwnAo.js → toConsumableArray.Dg1nDaB_.js} +1 -1
  192. streamlit/static/static/js/uniqueId.BFHzT5KQ.js +1 -0
  193. streamlit/static/static/js/{useBasicWidgetState.DrTKs46R.js → useBasicWidgetState.A4U5lzAm.js} +1 -1
  194. streamlit/static/static/js/{useIntlLocale.CmSionuT.js → useIntlLocale.DWJgLlNz.js} +1 -1
  195. streamlit/static/static/js/{useTextInputAutoExpand.D7lViJSu.js → useTextInputAutoExpand.BrBonw8t.js} +1 -1
  196. streamlit/static/static/js/{useUpdateUiValue.Ct3CJQBQ.js → useUpdateUiValue.BkOWyNVX.js} +1 -1
  197. streamlit/static/static/js/{useWaveformController.D-KQLpLI.js → useWaveformController.CBlvXlgZ.js} +1 -1
  198. streamlit/static/static/js/{withCalculatedWidth.CD0pPoZr.js → withCalculatedWidth.D4cpOyNe.js} +1 -1
  199. streamlit/static/static/js/{withFullScreenWrapper.Ch22PgdD.js → withFullScreenWrapper.BMim3w94.js} +1 -1
  200. streamlit/testing/v1/app_test.py +1 -1
  201. streamlit/user_info.py +6 -4
  202. streamlit/web/server/browser_websocket_handler.py +2 -2
  203. streamlit/web/server/oauth_authlib_routes.py +97 -20
  204. streamlit/web/server/starlette/starlette_routes.py +1 -3
  205. streamlit/web/server/stats_request_handler.py +1 -3
  206. {streamlit_nightly-1.52.3.dev20260111.dist-info → streamlit_nightly-1.52.3.dev20260113.dist-info}/METADATA +1 -1
  207. {streamlit_nightly-1.52.3.dev20260111.dist-info → streamlit_nightly-1.52.3.dev20260113.dist-info}/RECORD +211 -211
  208. streamlit/static/static/js/index.i_eQw7NS.js +0 -1
  209. streamlit/static/static/js/uniqueId.BdEQNrWF.js +0 -1
  210. {streamlit_nightly-1.52.3.dev20260111.data → streamlit_nightly-1.52.3.dev20260113.data}/scripts/streamlit.cmd +0 -0
  211. {streamlit_nightly-1.52.3.dev20260111.dist-info → streamlit_nightly-1.52.3.dev20260113.dist-info}/WHEEL +0 -0
  212. {streamlit_nightly-1.52.3.dev20260111.dist-info → streamlit_nightly-1.52.3.dev20260113.dist-info}/entry_points.txt +0 -0
  213. {streamlit_nightly-1.52.3.dev20260111.dist-info → streamlit_nightly-1.52.3.dev20260113.dist-info}/top_level.txt +0 -0
@@ -17,80 +17,80 @@ See the License for the specific language governing permissions and
17
17
  limitations under the License.
18
18
  """
19
19
 
20
- import builtins
21
- import collections.abc
22
- import google.protobuf.descriptor
23
- import google.protobuf.internal.containers
24
- import google.protobuf.message
25
- import streamlit.proto.LabelVisibilityMessage_pb2
20
+ from collections import abc as _abc
21
+ from google.protobuf import descriptor as _descriptor
22
+ from google.protobuf import message as _message
23
+ from google.protobuf.internal import containers as _containers
24
+ from streamlit.proto import LabelVisibilityMessage_pb2 as _LabelVisibilityMessage_pb2
25
+ import builtins as _builtins
26
26
  import sys
27
- import typing
27
+ import typing as _typing
28
28
 
29
29
  if sys.version_info >= (3, 10):
30
- import typing as typing_extensions
30
+ from typing import TypeAlias as _TypeAlias
31
31
  else:
32
- import typing_extensions
32
+ from typing_extensions import TypeAlias as _TypeAlias
33
33
 
34
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
34
+ DESCRIPTOR: _descriptor.FileDescriptor
35
35
 
36
- @typing.final
37
- class Radio(google.protobuf.message.Message):
38
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
36
+ @_typing.final
37
+ class Radio(_message.Message):
38
+ DESCRIPTOR: _descriptor.Descriptor
39
39
 
40
- ID_FIELD_NUMBER: builtins.int
41
- LABEL_FIELD_NUMBER: builtins.int
42
- DEFAULT_FIELD_NUMBER: builtins.int
43
- OPTIONS_FIELD_NUMBER: builtins.int
44
- HELP_FIELD_NUMBER: builtins.int
45
- FORM_ID_FIELD_NUMBER: builtins.int
46
- VALUE_FIELD_NUMBER: builtins.int
47
- SET_VALUE_FIELD_NUMBER: builtins.int
48
- DISABLED_FIELD_NUMBER: builtins.int
49
- HORIZONTAL_FIELD_NUMBER: builtins.int
50
- LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
51
- CAPTIONS_FIELD_NUMBER: builtins.int
52
- id: builtins.str
53
- label: builtins.str
54
- default: builtins.int
55
- help: builtins.str
56
- form_id: builtins.str
57
- value: builtins.int
58
- set_value: builtins.bool
59
- disabled: builtins.bool
60
- horizontal: builtins.bool
61
- @property
62
- def options(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
63
- @property
64
- def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
65
- @property
66
- def captions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
40
+ ID_FIELD_NUMBER: _builtins.int
41
+ LABEL_FIELD_NUMBER: _builtins.int
42
+ DEFAULT_FIELD_NUMBER: _builtins.int
43
+ OPTIONS_FIELD_NUMBER: _builtins.int
44
+ HELP_FIELD_NUMBER: _builtins.int
45
+ FORM_ID_FIELD_NUMBER: _builtins.int
46
+ VALUE_FIELD_NUMBER: _builtins.int
47
+ SET_VALUE_FIELD_NUMBER: _builtins.int
48
+ DISABLED_FIELD_NUMBER: _builtins.int
49
+ HORIZONTAL_FIELD_NUMBER: _builtins.int
50
+ LABEL_VISIBILITY_FIELD_NUMBER: _builtins.int
51
+ CAPTIONS_FIELD_NUMBER: _builtins.int
52
+ id: _builtins.str
53
+ label: _builtins.str
54
+ default: _builtins.int
55
+ help: _builtins.str
56
+ form_id: _builtins.str
57
+ value: _builtins.int
58
+ set_value: _builtins.bool
59
+ disabled: _builtins.bool
60
+ horizontal: _builtins.bool
61
+ @_builtins.property
62
+ def options(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
63
+ @_builtins.property
64
+ def label_visibility(self) -> _LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
65
+ @_builtins.property
66
+ def captions(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
67
67
  def __init__(
68
68
  self,
69
69
  *,
70
- id: builtins.str = ...,
71
- label: builtins.str = ...,
72
- default: builtins.int | None = ...,
73
- options: collections.abc.Iterable[builtins.str] | None = ...,
74
- help: builtins.str = ...,
75
- form_id: builtins.str = ...,
76
- value: builtins.int | None = ...,
77
- set_value: builtins.bool = ...,
78
- disabled: builtins.bool = ...,
79
- horizontal: builtins.bool = ...,
80
- label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
81
- captions: collections.abc.Iterable[builtins.str] | None = ...,
70
+ id: _builtins.str = ...,
71
+ label: _builtins.str = ...,
72
+ default: _builtins.int | None = ...,
73
+ options: _abc.Iterable[_builtins.str] | None = ...,
74
+ help: _builtins.str = ...,
75
+ form_id: _builtins.str = ...,
76
+ value: _builtins.int | None = ...,
77
+ set_value: _builtins.bool = ...,
78
+ disabled: _builtins.bool = ...,
79
+ horizontal: _builtins.bool = ...,
80
+ label_visibility: _LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
81
+ captions: _abc.Iterable[_builtins.str] | None = ...,
82
82
  ) -> None: ...
83
- _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_default", b"_default", "_value", b"_value", "default", b"default", "label_visibility", b"label_visibility", "value", b"value"]
84
- def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ...
85
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_default", b"_default", "_value", b"_value", "captions", b"captions", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "help", b"help", "horizontal", b"horizontal", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "options", b"options", "set_value", b"set_value", "value", b"value"]
83
+ _HasFieldArgType: _TypeAlias = _typing.Literal["_default", b"_default", "_value", b"_value", "default", b"default", "label_visibility", b"label_visibility", "value", b"value"] # noqa: Y015
84
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
85
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["_default", b"_default", "_value", b"_value", "captions", b"captions", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "help", b"help", "horizontal", b"horizontal", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "options", b"options", "set_value", b"set_value", "value", b"value"] # noqa: Y015
86
86
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
87
- _WhichOneofReturnType__default: typing_extensions.TypeAlias = typing.Literal["default"]
88
- _WhichOneofArgType__default: typing_extensions.TypeAlias = typing.Literal["_default", b"_default"]
89
- _WhichOneofReturnType__value: typing_extensions.TypeAlias = typing.Literal["value"]
90
- _WhichOneofArgType__value: typing_extensions.TypeAlias = typing.Literal["_value", b"_value"]
91
- @typing.overload
87
+ _WhichOneofReturnType__default: _TypeAlias = _typing.Literal["default"] # noqa: Y015
88
+ _WhichOneofArgType__default: _TypeAlias = _typing.Literal["_default", b"_default"] # noqa: Y015
89
+ _WhichOneofReturnType__value: _TypeAlias = _typing.Literal["value"] # noqa: Y015
90
+ _WhichOneofArgType__value: _TypeAlias = _typing.Literal["_value", b"_value"] # noqa: Y015
91
+ @_typing.overload
92
92
  def WhichOneof(self, oneof_group: _WhichOneofArgType__default) -> _WhichOneofReturnType__default | None: ...
93
- @typing.overload
93
+ @_typing.overload
94
94
  def WhichOneof(self, oneof_group: _WhichOneofArgType__value) -> _WhichOneofReturnType__value | None: ...
95
95
 
96
- Global___Radio: typing_extensions.TypeAlias = Radio
96
+ Global___Radio: _TypeAlias = Radio # noqa: Y015
@@ -17,25 +17,25 @@ See the License for the specific language governing permissions and
17
17
  limitations under the License.
18
18
  """
19
19
 
20
- import builtins
21
- import google.protobuf.descriptor
22
- import google.protobuf.internal.enum_type_wrapper
20
+ from google.protobuf import descriptor as _descriptor
21
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
22
+ import builtins as _builtins
23
23
  import sys
24
- import typing
24
+ import typing as _typing
25
25
 
26
26
  if sys.version_info >= (3, 10):
27
- import typing as typing_extensions
27
+ from typing import TypeAlias as _TypeAlias
28
28
  else:
29
- import typing_extensions
29
+ from typing_extensions import TypeAlias as _TypeAlias
30
30
 
31
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
31
+ DESCRIPTOR: _descriptor.FileDescriptor
32
32
 
33
33
  class _RootContainer:
34
- ValueType = typing.NewType("ValueType", builtins.int)
35
- V: typing_extensions.TypeAlias = ValueType
34
+ ValueType = _typing.NewType("ValueType", _builtins.int)
35
+ V: _TypeAlias = ValueType # noqa: Y015
36
36
 
37
- class _RootContainerEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_RootContainer.ValueType], builtins.type):
38
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
37
+ class _RootContainerEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_RootContainer.ValueType], _builtins.type):
38
+ DESCRIPTOR: _descriptor.EnumDescriptor
39
39
  MAIN: _RootContainer.ValueType # 0
40
40
  SIDEBAR: _RootContainer.ValueType # 1
41
41
  EVENT: _RootContainer.ValueType # 2
@@ -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: typing_extensions.TypeAlias = RootContainer
56
+ Global___RootContainer: _TypeAlias = RootContainer # noqa: Y015
@@ -17,93 +17,103 @@ See the License for the specific language governing permissions and
17
17
  limitations under the License.
18
18
  """
19
19
 
20
- import builtins
21
- import collections.abc
22
- import google.protobuf.descriptor
23
- import google.protobuf.internal.containers
24
- import google.protobuf.message
25
- import streamlit.proto.LabelVisibilityMessage_pb2
20
+ from collections import abc as _abc
21
+ from google.protobuf import descriptor as _descriptor
22
+ from google.protobuf import message as _message
23
+ from google.protobuf.internal import containers as _containers
24
+ from streamlit.proto import LabelVisibilityMessage_pb2 as _LabelVisibilityMessage_pb2
25
+ import builtins as _builtins
26
26
  import sys
27
- import typing
27
+ import typing as _typing
28
28
 
29
29
  if sys.version_info >= (3, 10):
30
- import typing as typing_extensions
30
+ from typing import TypeAlias as _TypeAlias
31
31
  else:
32
- import typing_extensions
32
+ from typing_extensions import TypeAlias as _TypeAlias
33
33
 
34
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
34
+ if sys.version_info >= (3, 13):
35
+ from warnings import deprecated as _deprecated
36
+ else:
37
+ from typing_extensions import deprecated as _deprecated
38
+
39
+ DESCRIPTOR: _descriptor.FileDescriptor
35
40
 
36
- @typing.final
37
- class Selectbox(google.protobuf.message.Message):
38
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
41
+ @_typing.final
42
+ class Selectbox(_message.Message):
43
+ DESCRIPTOR: _descriptor.Descriptor
39
44
 
40
- ID_FIELD_NUMBER: builtins.int
41
- LABEL_FIELD_NUMBER: builtins.int
42
- DEFAULT_FIELD_NUMBER: builtins.int
43
- OPTIONS_FIELD_NUMBER: builtins.int
44
- HELP_FIELD_NUMBER: builtins.int
45
- FORM_ID_FIELD_NUMBER: builtins.int
46
- VALUE_FIELD_NUMBER: builtins.int
47
- RAW_VALUE_FIELD_NUMBER: builtins.int
48
- SET_VALUE_FIELD_NUMBER: builtins.int
49
- DISABLED_FIELD_NUMBER: builtins.int
50
- LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
51
- PLACEHOLDER_FIELD_NUMBER: builtins.int
52
- ACCEPT_NEW_OPTIONS_FIELD_NUMBER: builtins.int
53
- id: builtins.str
54
- label: builtins.str
55
- default: builtins.int
56
- help: builtins.str
57
- form_id: builtins.str
58
- value: builtins.int
59
- raw_value: builtins.str
45
+ ID_FIELD_NUMBER: _builtins.int
46
+ LABEL_FIELD_NUMBER: _builtins.int
47
+ DEFAULT_FIELD_NUMBER: _builtins.int
48
+ OPTIONS_FIELD_NUMBER: _builtins.int
49
+ HELP_FIELD_NUMBER: _builtins.int
50
+ FORM_ID_FIELD_NUMBER: _builtins.int
51
+ VALUE_FIELD_NUMBER: _builtins.int
52
+ RAW_VALUE_FIELD_NUMBER: _builtins.int
53
+ SET_VALUE_FIELD_NUMBER: _builtins.int
54
+ DISABLED_FIELD_NUMBER: _builtins.int
55
+ LABEL_VISIBILITY_FIELD_NUMBER: _builtins.int
56
+ PLACEHOLDER_FIELD_NUMBER: _builtins.int
57
+ ACCEPT_NEW_OPTIONS_FIELD_NUMBER: _builtins.int
58
+ id: _builtins.str
59
+ label: _builtins.str
60
+ default: _builtins.int
61
+ help: _builtins.str
62
+ form_id: _builtins.str
63
+ @_builtins.property
64
+ @_deprecated("""This field has been marked as deprecated using proto field options.""")
65
+ def value(self) -> _builtins.int: ...
66
+ @value.setter
67
+ @_deprecated("""This field has been marked as deprecated using proto field options.""")
68
+ def value(self, value: _builtins.int) -> None: ...
69
+ raw_value: _builtins.str
60
70
  """after we introduced accept_new_options, we send the option as a string
61
71
  instead of an index to keep it simple.
62
72
  """
63
- set_value: builtins.bool
64
- disabled: builtins.bool
65
- placeholder: builtins.str
66
- accept_new_options: builtins.bool
67
- @property
68
- def options(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
69
- @property
70
- def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
73
+ set_value: _builtins.bool
74
+ disabled: _builtins.bool
75
+ placeholder: _builtins.str
76
+ accept_new_options: _builtins.bool
77
+ @_builtins.property
78
+ def options(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
79
+ @_builtins.property
80
+ def label_visibility(self) -> _LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
71
81
  def __init__(
72
82
  self,
73
83
  *,
74
- id: builtins.str = ...,
75
- label: builtins.str = ...,
76
- default: builtins.int | None = ...,
77
- options: collections.abc.Iterable[builtins.str] | None = ...,
78
- help: builtins.str = ...,
79
- form_id: builtins.str = ...,
80
- value: builtins.int | None = ...,
81
- raw_value: builtins.str | None = ...,
82
- set_value: builtins.bool = ...,
83
- disabled: builtins.bool = ...,
84
- label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
85
- placeholder: builtins.str = ...,
86
- accept_new_options: builtins.bool | None = ...,
84
+ id: _builtins.str = ...,
85
+ label: _builtins.str = ...,
86
+ default: _builtins.int | None = ...,
87
+ options: _abc.Iterable[_builtins.str] | None = ...,
88
+ help: _builtins.str = ...,
89
+ form_id: _builtins.str = ...,
90
+ value: _builtins.int | None = ...,
91
+ raw_value: _builtins.str | None = ...,
92
+ set_value: _builtins.bool = ...,
93
+ disabled: _builtins.bool = ...,
94
+ label_visibility: _LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
95
+ placeholder: _builtins.str = ...,
96
+ accept_new_options: _builtins.bool | None = ...,
87
97
  ) -> None: ...
88
- _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_accept_new_options", b"_accept_new_options", "_default", b"_default", "_raw_value", b"_raw_value", "_value", b"_value", "accept_new_options", b"accept_new_options", "default", b"default", "label_visibility", b"label_visibility", "raw_value", b"raw_value", "value", b"value"]
89
- def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ...
90
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_accept_new_options", b"_accept_new_options", "_default", b"_default", "_raw_value", b"_raw_value", "_value", b"_value", "accept_new_options", b"accept_new_options", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "options", b"options", "placeholder", b"placeholder", "raw_value", b"raw_value", "set_value", b"set_value", "value", b"value"]
98
+ _HasFieldArgType: _TypeAlias = _typing.Literal["_accept_new_options", b"_accept_new_options", "_default", b"_default", "_raw_value", b"_raw_value", "_value", b"_value", "accept_new_options", b"accept_new_options", "default", b"default", "label_visibility", b"label_visibility", "raw_value", b"raw_value", "value", b"value"] # noqa: Y015
99
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
100
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["_accept_new_options", b"_accept_new_options", "_default", b"_default", "_raw_value", b"_raw_value", "_value", b"_value", "accept_new_options", b"accept_new_options", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "options", b"options", "placeholder", b"placeholder", "raw_value", b"raw_value", "set_value", b"set_value", "value", b"value"] # noqa: Y015
91
101
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
92
- _WhichOneofReturnType__accept_new_options: typing_extensions.TypeAlias = typing.Literal["accept_new_options"]
93
- _WhichOneofArgType__accept_new_options: typing_extensions.TypeAlias = typing.Literal["_accept_new_options", b"_accept_new_options"]
94
- _WhichOneofReturnType__default: typing_extensions.TypeAlias = typing.Literal["default"]
95
- _WhichOneofArgType__default: typing_extensions.TypeAlias = typing.Literal["_default", b"_default"]
96
- _WhichOneofReturnType__raw_value: typing_extensions.TypeAlias = typing.Literal["raw_value"]
97
- _WhichOneofArgType__raw_value: typing_extensions.TypeAlias = typing.Literal["_raw_value", b"_raw_value"]
98
- _WhichOneofReturnType__value: typing_extensions.TypeAlias = typing.Literal["value"]
99
- _WhichOneofArgType__value: typing_extensions.TypeAlias = typing.Literal["_value", b"_value"]
100
- @typing.overload
102
+ _WhichOneofReturnType__accept_new_options: _TypeAlias = _typing.Literal["accept_new_options"] # noqa: Y015
103
+ _WhichOneofArgType__accept_new_options: _TypeAlias = _typing.Literal["_accept_new_options", b"_accept_new_options"] # noqa: Y015
104
+ _WhichOneofReturnType__default: _TypeAlias = _typing.Literal["default"] # noqa: Y015
105
+ _WhichOneofArgType__default: _TypeAlias = _typing.Literal["_default", b"_default"] # noqa: Y015
106
+ _WhichOneofReturnType__raw_value: _TypeAlias = _typing.Literal["raw_value"] # noqa: Y015
107
+ _WhichOneofArgType__raw_value: _TypeAlias = _typing.Literal["_raw_value", b"_raw_value"] # noqa: Y015
108
+ _WhichOneofReturnType__value: _TypeAlias = _typing.Literal["value"] # noqa: Y015
109
+ _WhichOneofArgType__value: _TypeAlias = _typing.Literal["_value", b"_value"] # noqa: Y015
110
+ @_typing.overload
101
111
  def WhichOneof(self, oneof_group: _WhichOneofArgType__accept_new_options) -> _WhichOneofReturnType__accept_new_options | None: ...
102
- @typing.overload
112
+ @_typing.overload
103
113
  def WhichOneof(self, oneof_group: _WhichOneofArgType__default) -> _WhichOneofReturnType__default | None: ...
104
- @typing.overload
114
+ @_typing.overload
105
115
  def WhichOneof(self, oneof_group: _WhichOneofArgType__raw_value) -> _WhichOneofReturnType__raw_value | None: ...
106
- @typing.overload
116
+ @_typing.overload
107
117
  def WhichOneof(self, oneof_group: _WhichOneofArgType__value) -> _WhichOneofReturnType__value | None: ...
108
118
 
109
- Global___Selectbox: typing_extensions.TypeAlias = Selectbox
119
+ Global___Selectbox: _TypeAlias = Selectbox # noqa: Y015
@@ -17,39 +17,39 @@ See the License for the specific language governing permissions and
17
17
  limitations under the License.
18
18
  """
19
19
 
20
- import builtins
21
- import google.protobuf.descriptor
22
- import google.protobuf.message
23
- import streamlit.proto.Exception_pb2
20
+ from google.protobuf import descriptor as _descriptor
21
+ from google.protobuf import message as _message
22
+ from streamlit.proto import Exception_pb2 as _Exception_pb2
23
+ import builtins as _builtins
24
24
  import sys
25
- import typing
25
+ import typing as _typing
26
26
 
27
27
  if sys.version_info >= (3, 10):
28
- import typing as typing_extensions
28
+ from typing import TypeAlias as _TypeAlias
29
29
  else:
30
- import typing_extensions
30
+ from typing_extensions import TypeAlias as _TypeAlias
31
31
 
32
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
32
+ DESCRIPTOR: _descriptor.FileDescriptor
33
33
 
34
- @typing.final
35
- class SessionEvent(google.protobuf.message.Message):
34
+ @_typing.final
35
+ class SessionEvent(_message.Message):
36
36
  """A transient event sent to all browsers connected to an associated app."""
37
37
 
38
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
38
+ DESCRIPTOR: _descriptor.Descriptor
39
39
 
40
- SCRIPT_CHANGED_ON_DISK_FIELD_NUMBER: builtins.int
41
- SCRIPT_WAS_MANUALLY_STOPPED_FIELD_NUMBER: builtins.int
42
- SCRIPT_COMPILATION_EXCEPTION_FIELD_NUMBER: builtins.int
43
- script_changed_on_disk: builtins.bool
40
+ SCRIPT_CHANGED_ON_DISK_FIELD_NUMBER: _builtins.int
41
+ SCRIPT_WAS_MANUALLY_STOPPED_FIELD_NUMBER: _builtins.int
42
+ SCRIPT_COMPILATION_EXCEPTION_FIELD_NUMBER: _builtins.int
43
+ script_changed_on_disk: _builtins.bool
44
44
  """The app's script changed on disk, but is *not* being re-run
45
45
  automatically. The browser should prompt the user to re-run.
46
46
  """
47
- script_was_manually_stopped: builtins.bool
47
+ script_was_manually_stopped: _builtins.bool
48
48
  """The app's script was running, but it was manually stopped before
49
49
  completion.
50
50
  """
51
- @property
52
- def script_compilation_exception(self) -> streamlit.proto.Exception_pb2.Exception:
51
+ @_builtins.property
52
+ def script_compilation_exception(self) -> _Exception_pb2.Exception:
53
53
  """Script compilation failed with an exception.
54
54
  We can't start running the script.
55
55
  """
@@ -57,16 +57,16 @@ class SessionEvent(google.protobuf.message.Message):
57
57
  def __init__(
58
58
  self,
59
59
  *,
60
- script_changed_on_disk: builtins.bool = ...,
61
- script_was_manually_stopped: builtins.bool = ...,
62
- script_compilation_exception: streamlit.proto.Exception_pb2.Exception | None = ...,
60
+ script_changed_on_disk: _builtins.bool = ...,
61
+ script_was_manually_stopped: _builtins.bool = ...,
62
+ script_compilation_exception: _Exception_pb2.Exception | None = ...,
63
63
  ) -> None: ...
64
- _HasFieldArgType: typing_extensions.TypeAlias = 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"]
65
- def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ...
66
- _ClearFieldArgType: typing_extensions.TypeAlias = 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"]
64
+ _HasFieldArgType: _TypeAlias = _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"] # noqa: Y015
65
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
66
+ _ClearFieldArgType: _TypeAlias = _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"] # noqa: Y015
67
67
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
68
- _WhichOneofReturnType_type: typing_extensions.TypeAlias = typing.Literal["script_changed_on_disk", "script_was_manually_stopped", "script_compilation_exception"]
69
- _WhichOneofArgType_type: typing_extensions.TypeAlias = typing.Literal["type", b"type"]
68
+ _WhichOneofReturnType_type: _TypeAlias = _typing.Literal["script_changed_on_disk", "script_was_manually_stopped", "script_compilation_exception"] # noqa: Y015
69
+ _WhichOneofArgType_type: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015
70
70
  def WhichOneof(self, oneof_group: _WhichOneofArgType_type) -> _WhichOneofReturnType_type | None: ...
71
71
 
72
- Global___SessionEvent: typing_extensions.TypeAlias = SessionEvent
72
+ Global___SessionEvent: _TypeAlias = SessionEvent # noqa: Y015
@@ -17,21 +17,21 @@ See the License for the specific language governing permissions and
17
17
  limitations under the License.
18
18
  """
19
19
 
20
- import builtins
21
- import google.protobuf.descriptor
22
- import google.protobuf.message
20
+ from google.protobuf import descriptor as _descriptor
21
+ from google.protobuf import message as _message
22
+ import builtins as _builtins
23
23
  import sys
24
- import typing
24
+ import typing as _typing
25
25
 
26
26
  if sys.version_info >= (3, 10):
27
- import typing as typing_extensions
27
+ from typing import TypeAlias as _TypeAlias
28
28
  else:
29
- import typing_extensions
29
+ from typing_extensions import TypeAlias as _TypeAlias
30
30
 
31
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
31
+ DESCRIPTOR: _descriptor.FileDescriptor
32
32
 
33
- @typing.final
34
- class SessionStatus(google.protobuf.message.Message):
33
+ @_typing.final
34
+ class SessionStatus(_message.Message):
35
35
  """Status for a session. Sent as part of the Initialize message, and also
36
36
  on AppSession status change events.
37
37
 
@@ -40,25 +40,25 @@ class SessionStatus(google.protobuf.message.Message):
40
40
  may require a good amount of effort so should be avoided if possible.
41
41
  """
42
42
 
43
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
43
+ DESCRIPTOR: _descriptor.Descriptor
44
44
 
45
- RUN_ON_SAVE_FIELD_NUMBER: builtins.int
46
- SCRIPT_IS_RUNNING_FIELD_NUMBER: builtins.int
47
- run_on_save: builtins.bool
45
+ RUN_ON_SAVE_FIELD_NUMBER: _builtins.int
46
+ SCRIPT_IS_RUNNING_FIELD_NUMBER: _builtins.int
47
+ run_on_save: _builtins.bool
48
48
  """If true, streamlit will re-run the script if it detects that the script
49
49
  has been changed. This value comes from the server.runOnSave config.
50
50
  The browser can change this option; it's sent here so that the browser
51
51
  shows the correct initial value in its Settings dialog.
52
52
  """
53
- script_is_running: builtins.bool
53
+ script_is_running: _builtins.bool
54
54
  """True if the script is being run by a client right now."""
55
55
  def __init__(
56
56
  self,
57
57
  *,
58
- run_on_save: builtins.bool = ...,
59
- script_is_running: builtins.bool = ...,
58
+ run_on_save: _builtins.bool = ...,
59
+ script_is_running: _builtins.bool = ...,
60
60
  ) -> None: ...
61
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["run_on_save", b"run_on_save", "script_is_running", b"script_is_running"]
61
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["run_on_save", b"run_on_save", "script_is_running", b"script_is_running"] # noqa: Y015
62
62
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
63
63
 
64
- Global___SessionStatus: typing_extensions.TypeAlias = SessionStatus
64
+ Global___SessionStatus: _TypeAlias = SessionStatus # noqa: Y015
@@ -17,32 +17,32 @@ See the License for the specific language governing permissions and
17
17
  limitations under the License.
18
18
  """
19
19
 
20
- import builtins
21
- import google.protobuf.descriptor
22
- import google.protobuf.internal.enum_type_wrapper
23
- import google.protobuf.message
20
+ from google.protobuf import descriptor as _descriptor
21
+ from google.protobuf import message as _message
22
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
23
+ import builtins as _builtins
24
24
  import sys
25
- import typing
25
+ import typing as _typing
26
26
 
27
27
  if sys.version_info >= (3, 10):
28
- import typing as typing_extensions
28
+ from typing import TypeAlias as _TypeAlias
29
29
  else:
30
- import typing_extensions
30
+ from typing_extensions import TypeAlias as _TypeAlias
31
31
 
32
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
32
+ DESCRIPTOR: _descriptor.FileDescriptor
33
33
 
34
- @typing.final
35
- class Skeleton(google.protobuf.message.Message):
34
+ @_typing.final
35
+ class Skeleton(_message.Message):
36
36
  """An empty-like element that displays an app skeleton."""
37
37
 
38
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
38
+ DESCRIPTOR: _descriptor.Descriptor
39
39
 
40
40
  class _SkeletonStyle:
41
- ValueType = typing.NewType("ValueType", builtins.int)
42
- V: typing_extensions.TypeAlias = ValueType
41
+ ValueType = _typing.NewType("ValueType", _builtins.int)
42
+ V: _TypeAlias = ValueType # noqa: Y015
43
43
 
44
- class _SkeletonStyleEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Skeleton._SkeletonStyle.ValueType], builtins.type):
45
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
44
+ class _SkeletonStyleEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[Skeleton._SkeletonStyle.ValueType], _builtins.type):
45
+ DESCRIPTOR: _descriptor.EnumDescriptor
46
46
  ELEMENT: Skeleton._SkeletonStyle.ValueType # 0
47
47
  APP: Skeleton._SkeletonStyle.ValueType # 1
48
48
  """internal-only, for now"""
@@ -52,24 +52,24 @@ class Skeleton(google.protobuf.message.Message):
52
52
  APP: Skeleton.SkeletonStyle.ValueType # 1
53
53
  """internal-only, for now"""
54
54
 
55
- STYLE_FIELD_NUMBER: builtins.int
56
- HEIGHT_FIELD_NUMBER: builtins.int
55
+ STYLE_FIELD_NUMBER: _builtins.int
56
+ HEIGHT_FIELD_NUMBER: _builtins.int
57
57
  style: Global___Skeleton.SkeletonStyle.ValueType
58
58
  """Skeleton visual style"""
59
- height: builtins.int
59
+ height: _builtins.int
60
60
  """Height in pixels"""
61
61
  def __init__(
62
62
  self,
63
63
  *,
64
64
  style: Global___Skeleton.SkeletonStyle.ValueType = ...,
65
- height: builtins.int | None = ...,
65
+ height: _builtins.int | None = ...,
66
66
  ) -> None: ...
67
- _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_height", b"_height", "height", b"height"]
68
- def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ...
69
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_height", b"_height", "height", b"height", "style", b"style"]
67
+ _HasFieldArgType: _TypeAlias = _typing.Literal["_height", b"_height", "height", b"height"] # noqa: Y015
68
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
69
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["_height", b"_height", "height", b"height", "style", b"style"] # noqa: Y015
70
70
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
71
- _WhichOneofReturnType__height: typing_extensions.TypeAlias = typing.Literal["height"]
72
- _WhichOneofArgType__height: typing_extensions.TypeAlias = typing.Literal["_height", b"_height"]
71
+ _WhichOneofReturnType__height: _TypeAlias = _typing.Literal["height"] # noqa: Y015
72
+ _WhichOneofArgType__height: _TypeAlias = _typing.Literal["_height", b"_height"] # noqa: Y015
73
73
  def WhichOneof(self, oneof_group: _WhichOneofArgType__height) -> _WhichOneofReturnType__height | None: ...
74
74
 
75
- Global___Skeleton: typing_extensions.TypeAlias = Skeleton
75
+ Global___Skeleton: _TypeAlias = Skeleton # noqa: Y015