streamlit-nightly 1.52.3.dev20260112__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 (119) hide show
  1. streamlit/__init__.py +1 -1
  2. streamlit/auth_util.py +1 -1
  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/testing/v1/app_test.py +1 -1
  112. streamlit/web/server/starlette/starlette_routes.py +1 -3
  113. streamlit/web/server/stats_request_handler.py +1 -3
  114. {streamlit_nightly-1.52.3.dev20260112.dist-info → streamlit_nightly-1.52.3.dev20260113.dist-info}/METADATA +1 -1
  115. {streamlit_nightly-1.52.3.dev20260112.dist-info → streamlit_nightly-1.52.3.dev20260113.dist-info}/RECORD +119 -119
  116. {streamlit_nightly-1.52.3.dev20260112.data → streamlit_nightly-1.52.3.dev20260113.data}/scripts/streamlit.cmd +0 -0
  117. {streamlit_nightly-1.52.3.dev20260112.dist-info → streamlit_nightly-1.52.3.dev20260113.dist-info}/WHEEL +0 -0
  118. {streamlit_nightly-1.52.3.dev20260112.dist-info → streamlit_nightly-1.52.3.dev20260113.dist-info}/entry_points.txt +0 -0
  119. {streamlit_nightly-1.52.3.dev20260112.dist-info → streamlit_nightly-1.52.3.dev20260113.dist-info}/top_level.txt +0 -0
@@ -17,53 +17,53 @@ 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.internal.enum_type_wrapper
25
- import google.protobuf.message
26
- import streamlit.proto.WidthConfig_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 google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
25
+ from streamlit.proto import WidthConfig_pb2 as _WidthConfig_pb2
26
+ import builtins as _builtins
27
27
  import sys
28
- import typing
28
+ import typing as _typing
29
29
 
30
30
  if sys.version_info >= (3, 10):
31
- import typing as typing_extensions
31
+ from typing import TypeAlias as _TypeAlias
32
32
  else:
33
- import typing_extensions
33
+ from typing_extensions import TypeAlias as _TypeAlias
34
34
 
35
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
35
+ DESCRIPTOR: _descriptor.FileDescriptor
36
36
 
37
- @typing.final
38
- class SubtitleTrack(google.protobuf.message.Message):
39
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
37
+ @_typing.final
38
+ class SubtitleTrack(_message.Message):
39
+ DESCRIPTOR: _descriptor.Descriptor
40
40
 
41
- LABEL_FIELD_NUMBER: builtins.int
42
- URL_FIELD_NUMBER: builtins.int
43
- label: builtins.str
41
+ LABEL_FIELD_NUMBER: _builtins.int
42
+ URL_FIELD_NUMBER: _builtins.int
43
+ label: _builtins.str
44
44
  """Label for the subtitle e.g. "English" or "Spanish"."""
45
- url: builtins.str
45
+ url: _builtins.str
46
46
  def __init__(
47
47
  self,
48
48
  *,
49
- label: builtins.str = ...,
50
- url: builtins.str = ...,
49
+ label: _builtins.str = ...,
50
+ url: _builtins.str = ...,
51
51
  ) -> None: ...
52
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["label", b"label", "url", b"url"]
52
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["label", b"label", "url", b"url"] # noqa: Y015
53
53
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
54
54
 
55
- Global___SubtitleTrack: typing_extensions.TypeAlias = SubtitleTrack
55
+ Global___SubtitleTrack: _TypeAlias = SubtitleTrack # noqa: Y015
56
56
 
57
- @typing.final
58
- class Video(google.protobuf.message.Message):
59
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
57
+ @_typing.final
58
+ class Video(_message.Message):
59
+ DESCRIPTOR: _descriptor.Descriptor
60
60
 
61
61
  class _Type:
62
- ValueType = typing.NewType("ValueType", builtins.int)
63
- V: typing_extensions.TypeAlias = ValueType
62
+ ValueType = _typing.NewType("ValueType", _builtins.int)
63
+ V: _TypeAlias = ValueType # noqa: Y015
64
64
 
65
- class _TypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Video._Type.ValueType], builtins.type):
66
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
65
+ class _TypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[Video._Type.ValueType], _builtins.type):
66
+ DESCRIPTOR: _descriptor.EnumDescriptor
67
67
  UNUSED: Video._Type.ValueType # 0
68
68
  """This should always exist."""
69
69
  NATIVE: Video._Type.ValueType # 1
@@ -75,55 +75,55 @@ class Video(google.protobuf.message.Message):
75
75
  NATIVE: Video.Type.ValueType # 1
76
76
  YOUTUBE_IFRAME: Video.Type.ValueType # 2
77
77
 
78
- URL_FIELD_NUMBER: builtins.int
79
- START_TIME_FIELD_NUMBER: builtins.int
80
- TYPE_FIELD_NUMBER: builtins.int
81
- SUBTITLES_FIELD_NUMBER: builtins.int
82
- END_TIME_FIELD_NUMBER: builtins.int
83
- LOOP_FIELD_NUMBER: builtins.int
84
- AUTOPLAY_FIELD_NUMBER: builtins.int
85
- MUTED_FIELD_NUMBER: builtins.int
86
- ID_FIELD_NUMBER: builtins.int
87
- WIDTH_CONFIG_FIELD_NUMBER: builtins.int
88
- url: builtins.str
78
+ URL_FIELD_NUMBER: _builtins.int
79
+ START_TIME_FIELD_NUMBER: _builtins.int
80
+ TYPE_FIELD_NUMBER: _builtins.int
81
+ SUBTITLES_FIELD_NUMBER: _builtins.int
82
+ END_TIME_FIELD_NUMBER: _builtins.int
83
+ LOOP_FIELD_NUMBER: _builtins.int
84
+ AUTOPLAY_FIELD_NUMBER: _builtins.int
85
+ MUTED_FIELD_NUMBER: _builtins.int
86
+ ID_FIELD_NUMBER: _builtins.int
87
+ WIDTH_CONFIG_FIELD_NUMBER: _builtins.int
88
+ url: _builtins.str
89
89
  """A url pointing to a video file"""
90
- start_time: builtins.int
90
+ start_time: _builtins.int
91
91
  """The currentTime attribute of the HTML <video> tag's <source> subtag."""
92
92
  type: Global___Video.Type.ValueType
93
93
  """Type affects how browser wraps the video in tags: plain HTML5, YouTube..."""
94
- end_time: builtins.int
94
+ end_time: _builtins.int
95
95
  """The time at which the video should stop playing. If not specified, plays to the end."""
96
- loop: builtins.bool
96
+ loop: _builtins.bool
97
97
  """Indicates whether the video should start over from the beginning once it ends."""
98
- autoplay: builtins.bool
99
- muted: builtins.bool
100
- id: builtins.str
101
- @property
102
- def subtitles(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___SubtitleTrack]:
98
+ autoplay: _builtins.bool
99
+ muted: _builtins.bool
100
+ id: _builtins.str
101
+ @_builtins.property
102
+ def subtitles(self) -> _containers.RepeatedCompositeFieldContainer[Global___SubtitleTrack]:
103
103
  """Repeated field for subtitle tracks"""
104
104
 
105
- @property
106
- def width_config(self) -> streamlit.proto.WidthConfig_pb2.WidthConfig: ...
105
+ @_builtins.property
106
+ def width_config(self) -> _WidthConfig_pb2.WidthConfig: ...
107
107
  def __init__(
108
108
  self,
109
109
  *,
110
- url: builtins.str = ...,
111
- start_time: builtins.int = ...,
110
+ url: _builtins.str = ...,
111
+ start_time: _builtins.int = ...,
112
112
  type: Global___Video.Type.ValueType = ...,
113
- subtitles: collections.abc.Iterable[Global___SubtitleTrack] | None = ...,
114
- end_time: builtins.int = ...,
115
- loop: builtins.bool = ...,
116
- autoplay: builtins.bool = ...,
117
- muted: builtins.bool = ...,
118
- id: builtins.str = ...,
119
- width_config: streamlit.proto.WidthConfig_pb2.WidthConfig | None = ...,
113
+ subtitles: _abc.Iterable[Global___SubtitleTrack] | None = ...,
114
+ end_time: _builtins.int = ...,
115
+ loop: _builtins.bool = ...,
116
+ autoplay: _builtins.bool = ...,
117
+ muted: _builtins.bool = ...,
118
+ id: _builtins.str = ...,
119
+ width_config: _WidthConfig_pb2.WidthConfig | None = ...,
120
120
  ) -> None: ...
121
- _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_width_config", b"_width_config", "width_config", b"width_config"]
122
- def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ...
123
- _ClearFieldArgType: typing_extensions.TypeAlias = 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"]
121
+ _HasFieldArgType: _TypeAlias = _typing.Literal["_width_config", b"_width_config", "width_config", b"width_config"] # noqa: Y015
122
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
123
+ _ClearFieldArgType: _TypeAlias = _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"] # noqa: Y015
124
124
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
125
- _WhichOneofReturnType__width_config: typing_extensions.TypeAlias = typing.Literal["width_config"]
126
- _WhichOneofArgType__width_config: typing_extensions.TypeAlias = typing.Literal["_width_config", b"_width_config"]
125
+ _WhichOneofReturnType__width_config: _TypeAlias = _typing.Literal["width_config"] # noqa: Y015
126
+ _WhichOneofArgType__width_config: _TypeAlias = _typing.Literal["_width_config", b"_width_config"] # noqa: Y015
127
127
  def WhichOneof(self, oneof_group: _WhichOneofArgType__width_config) -> _WhichOneofReturnType__width_config | None: ...
128
128
 
129
- Global___Video: typing_extensions.TypeAlias = Video
129
+ Global___Video: _TypeAlias = Video # noqa: Y015
@@ -17,66 +17,71 @@ 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.Common_pb2
26
- import streamlit.proto.Components_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 Common_pb2 as _Common_pb2
25
+ from streamlit.proto import Components_pb2 as _Components_pb2
26
+ import builtins as _builtins
27
27
  import sys
28
- import typing
28
+ import typing as _typing
29
29
 
30
30
  if sys.version_info >= (3, 10):
31
- import typing as typing_extensions
31
+ from typing import TypeAlias as _TypeAlias
32
32
  else:
33
- import typing_extensions
33
+ from typing_extensions import TypeAlias as _TypeAlias
34
34
 
35
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
35
+ if sys.version_info >= (3, 13):
36
+ from warnings import deprecated as _deprecated
37
+ else:
38
+ from typing_extensions import deprecated as _deprecated
39
+
40
+ DESCRIPTOR: _descriptor.FileDescriptor
36
41
 
37
- @typing.final
38
- class WidgetStates(google.protobuf.message.Message):
42
+ @_typing.final
43
+ class WidgetStates(_message.Message):
39
44
  """State for every widget in an app."""
40
45
 
41
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
46
+ DESCRIPTOR: _descriptor.Descriptor
42
47
 
43
- WIDGETS_FIELD_NUMBER: builtins.int
44
- @property
45
- def widgets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___WidgetState]: ...
48
+ WIDGETS_FIELD_NUMBER: _builtins.int
49
+ @_builtins.property
50
+ def widgets(self) -> _containers.RepeatedCompositeFieldContainer[Global___WidgetState]: ...
46
51
  def __init__(
47
52
  self,
48
53
  *,
49
- widgets: collections.abc.Iterable[Global___WidgetState] | None = ...,
54
+ widgets: _abc.Iterable[Global___WidgetState] | None = ...,
50
55
  ) -> None: ...
51
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["widgets", b"widgets"]
56
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["widgets", b"widgets"] # noqa: Y015
52
57
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
53
58
 
54
- Global___WidgetStates: typing_extensions.TypeAlias = WidgetStates
59
+ Global___WidgetStates: _TypeAlias = WidgetStates # noqa: Y015
55
60
 
56
- @typing.final
57
- class WidgetState(google.protobuf.message.Message):
61
+ @_typing.final
62
+ class WidgetState(_message.Message):
58
63
  """State for a single widget."""
59
64
 
60
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
61
-
62
- ID_FIELD_NUMBER: builtins.int
63
- TRIGGER_VALUE_FIELD_NUMBER: builtins.int
64
- BOOL_VALUE_FIELD_NUMBER: builtins.int
65
- DOUBLE_VALUE_FIELD_NUMBER: builtins.int
66
- INT_VALUE_FIELD_NUMBER: builtins.int
67
- STRING_VALUE_FIELD_NUMBER: builtins.int
68
- DOUBLE_ARRAY_VALUE_FIELD_NUMBER: builtins.int
69
- INT_ARRAY_VALUE_FIELD_NUMBER: builtins.int
70
- STRING_ARRAY_VALUE_FIELD_NUMBER: builtins.int
71
- JSON_VALUE_FIELD_NUMBER: builtins.int
72
- ARROW_VALUE_FIELD_NUMBER: builtins.int
73
- BYTES_VALUE_FIELD_NUMBER: builtins.int
74
- FILE_UPLOADER_STATE_VALUE_FIELD_NUMBER: builtins.int
75
- STRING_TRIGGER_VALUE_FIELD_NUMBER: builtins.int
76
- CHAT_INPUT_VALUE_FIELD_NUMBER: builtins.int
77
- JSON_TRIGGER_VALUE_FIELD_NUMBER: builtins.int
78
- id: builtins.str
79
- trigger_value: builtins.bool
65
+ DESCRIPTOR: _descriptor.Descriptor
66
+
67
+ ID_FIELD_NUMBER: _builtins.int
68
+ TRIGGER_VALUE_FIELD_NUMBER: _builtins.int
69
+ BOOL_VALUE_FIELD_NUMBER: _builtins.int
70
+ DOUBLE_VALUE_FIELD_NUMBER: _builtins.int
71
+ INT_VALUE_FIELD_NUMBER: _builtins.int
72
+ STRING_VALUE_FIELD_NUMBER: _builtins.int
73
+ DOUBLE_ARRAY_VALUE_FIELD_NUMBER: _builtins.int
74
+ INT_ARRAY_VALUE_FIELD_NUMBER: _builtins.int
75
+ STRING_ARRAY_VALUE_FIELD_NUMBER: _builtins.int
76
+ JSON_VALUE_FIELD_NUMBER: _builtins.int
77
+ ARROW_VALUE_FIELD_NUMBER: _builtins.int
78
+ BYTES_VALUE_FIELD_NUMBER: _builtins.int
79
+ FILE_UPLOADER_STATE_VALUE_FIELD_NUMBER: _builtins.int
80
+ STRING_TRIGGER_VALUE_FIELD_NUMBER: _builtins.int
81
+ CHAT_INPUT_VALUE_FIELD_NUMBER: _builtins.int
82
+ JSON_TRIGGER_VALUE_FIELD_NUMBER: _builtins.int
83
+ id: _builtins.str
84
+ trigger_value: _builtins.bool
80
85
  """trigger_value is for buttons. A button's value needs to
81
86
  auto-revert back to False after the script has been run with
82
87
  the value set to True. After running the script, the server
@@ -84,13 +89,13 @@ class WidgetState(google.protobuf.message.Message):
84
89
  (Use bool_value for widgets like checkboxes, whose state persists
85
90
  beyond a single script run.)
86
91
  """
87
- bool_value: builtins.bool
88
- double_value: builtins.float
89
- int_value: builtins.int
90
- string_value: builtins.str
91
- json_value: builtins.str
92
- bytes_value: builtins.bytes
93
- json_trigger_value: builtins.str
92
+ bool_value: _builtins.bool
93
+ double_value: _builtins.float
94
+ int_value: _builtins.int
95
+ string_value: _builtins.str
96
+ json_value: _builtins.str
97
+ bytes_value: _builtins.bytes
98
+ json_trigger_value: _builtins.str
94
99
  """Transient trigger payload transport (JSON-stringified).
95
100
  - Purpose: carry per-run, non-persistent trigger data across the wire.
96
101
  - Shape: JSON object or JSON array (batched within a single update).
@@ -98,24 +103,25 @@ class WidgetState(google.protobuf.message.Message):
98
103
  Use json_value for persistent state; use json_trigger_value for
99
104
  auto-resetting payloads.
100
105
  """
101
- @property
102
- def double_array_value(self) -> streamlit.proto.Common_pb2.DoubleArray: ...
103
- @property
104
- def int_array_value(self) -> streamlit.proto.Common_pb2.SInt64Array: ...
105
- @property
106
- def string_array_value(self) -> streamlit.proto.Common_pb2.StringArray: ...
107
- @property
108
- def arrow_value(self) -> streamlit.proto.Components_pb2.ArrowTable: ...
109
- @property
110
- def file_uploader_state_value(self) -> streamlit.proto.Common_pb2.FileUploaderState: ...
111
- @property
112
- def string_trigger_value(self) -> streamlit.proto.Common_pb2.StringTriggerValue:
106
+ @_builtins.property
107
+ def double_array_value(self) -> _Common_pb2.DoubleArray: ...
108
+ @_builtins.property
109
+ def int_array_value(self) -> _Common_pb2.SInt64Array: ...
110
+ @_builtins.property
111
+ def string_array_value(self) -> _Common_pb2.StringArray: ...
112
+ @_builtins.property
113
+ def arrow_value(self) -> _Components_pb2.ArrowTable: ...
114
+ @_builtins.property
115
+ def file_uploader_state_value(self) -> _Common_pb2.FileUploaderState: ...
116
+ @_builtins.property
117
+ @_deprecated("""This field has been marked as deprecated using proto field options.""")
118
+ def string_trigger_value(self) -> _Common_pb2.StringTriggerValue:
113
119
  """DEPRECATED: StringTriggerValue proto message is deprecated and unused.
114
120
  The ChatInputValue proto message should be used instead.
115
121
  """
116
122
 
117
- @property
118
- def chat_input_value(self) -> streamlit.proto.Common_pb2.ChatInputValue:
123
+ @_builtins.property
124
+ def chat_input_value(self) -> _Common_pb2.ChatInputValue:
119
125
  """ChatInputValue resets itself to empty after the script has been run.
120
126
  This is used for the chat_input widget.
121
127
  """
@@ -123,29 +129,29 @@ class WidgetState(google.protobuf.message.Message):
123
129
  def __init__(
124
130
  self,
125
131
  *,
126
- id: builtins.str = ...,
127
- trigger_value: builtins.bool = ...,
128
- bool_value: builtins.bool = ...,
129
- double_value: builtins.float = ...,
130
- int_value: builtins.int = ...,
131
- string_value: builtins.str = ...,
132
- double_array_value: streamlit.proto.Common_pb2.DoubleArray | None = ...,
133
- int_array_value: streamlit.proto.Common_pb2.SInt64Array | None = ...,
134
- string_array_value: streamlit.proto.Common_pb2.StringArray | None = ...,
135
- json_value: builtins.str = ...,
136
- arrow_value: streamlit.proto.Components_pb2.ArrowTable | None = ...,
137
- bytes_value: builtins.bytes = ...,
138
- file_uploader_state_value: streamlit.proto.Common_pb2.FileUploaderState | None = ...,
139
- string_trigger_value: streamlit.proto.Common_pb2.StringTriggerValue | None = ...,
140
- chat_input_value: streamlit.proto.Common_pb2.ChatInputValue | None = ...,
141
- json_trigger_value: builtins.str = ...,
132
+ id: _builtins.str = ...,
133
+ trigger_value: _builtins.bool = ...,
134
+ bool_value: _builtins.bool = ...,
135
+ double_value: _builtins.float = ...,
136
+ int_value: _builtins.int = ...,
137
+ string_value: _builtins.str = ...,
138
+ double_array_value: _Common_pb2.DoubleArray | None = ...,
139
+ int_array_value: _Common_pb2.SInt64Array | None = ...,
140
+ string_array_value: _Common_pb2.StringArray | None = ...,
141
+ json_value: _builtins.str = ...,
142
+ arrow_value: _Components_pb2.ArrowTable | None = ...,
143
+ bytes_value: _builtins.bytes = ...,
144
+ file_uploader_state_value: _Common_pb2.FileUploaderState | None = ...,
145
+ string_trigger_value: _Common_pb2.StringTriggerValue | None = ...,
146
+ chat_input_value: _Common_pb2.ChatInputValue | None = ...,
147
+ json_trigger_value: _builtins.str = ...,
142
148
  ) -> None: ...
143
- _HasFieldArgType: typing_extensions.TypeAlias = 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", "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"]
144
- def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ...
145
- _ClearFieldArgType: typing_extensions.TypeAlias = 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"]
149
+ _HasFieldArgType: _TypeAlias = _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", "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"] # noqa: Y015
150
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
151
+ _ClearFieldArgType: _TypeAlias = _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"] # noqa: Y015
146
152
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
147
- _WhichOneofReturnType_value: typing_extensions.TypeAlias = 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"]
148
- _WhichOneofArgType_value: typing_extensions.TypeAlias = typing.Literal["value", b"value"]
153
+ _WhichOneofReturnType_value: _TypeAlias = _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"] # noqa: Y015
154
+ _WhichOneofArgType_value: _TypeAlias = _typing.Literal["value", b"value"] # noqa: Y015
149
155
  def WhichOneof(self, oneof_group: _WhichOneofArgType_value) -> _WhichOneofReturnType_value | None: ...
150
156
 
151
- Global___WidgetState: typing_extensions.TypeAlias = WidgetState
157
+ Global___WidgetState: _TypeAlias = WidgetState # noqa: Y015
@@ -17,45 +17,45 @@ 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
30
-
31
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
32
-
33
- @typing.final
34
- class WidthConfig(google.protobuf.message.Message):
35
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
36
-
37
- USE_STRETCH_FIELD_NUMBER: builtins.int
38
- USE_CONTENT_FIELD_NUMBER: builtins.int
39
- PIXEL_WIDTH_FIELD_NUMBER: builtins.int
40
- REM_WIDTH_FIELD_NUMBER: builtins.int
41
- use_stretch: builtins.bool
42
- use_content: builtins.bool
43
- pixel_width: builtins.int
44
- rem_width: builtins.float
29
+ from typing_extensions import TypeAlias as _TypeAlias
30
+
31
+ DESCRIPTOR: _descriptor.FileDescriptor
32
+
33
+ @_typing.final
34
+ class WidthConfig(_message.Message):
35
+ DESCRIPTOR: _descriptor.Descriptor
36
+
37
+ USE_STRETCH_FIELD_NUMBER: _builtins.int
38
+ USE_CONTENT_FIELD_NUMBER: _builtins.int
39
+ PIXEL_WIDTH_FIELD_NUMBER: _builtins.int
40
+ REM_WIDTH_FIELD_NUMBER: _builtins.int
41
+ use_stretch: _builtins.bool
42
+ use_content: _builtins.bool
43
+ pixel_width: _builtins.int
44
+ rem_width: _builtins.float
45
45
  def __init__(
46
46
  self,
47
47
  *,
48
- use_stretch: builtins.bool = ...,
49
- use_content: builtins.bool = ...,
50
- pixel_width: builtins.int = ...,
51
- rem_width: builtins.float = ...,
48
+ use_stretch: _builtins.bool = ...,
49
+ use_content: _builtins.bool = ...,
50
+ pixel_width: _builtins.int = ...,
51
+ rem_width: _builtins.float = ...,
52
52
  ) -> None: ...
53
- _HasFieldArgType: typing_extensions.TypeAlias = 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"]
54
- def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ...
55
- _ClearFieldArgType: typing_extensions.TypeAlias = 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"]
53
+ _HasFieldArgType: _TypeAlias = _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"] # noqa: Y015
54
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
55
+ _ClearFieldArgType: _TypeAlias = _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"] # noqa: Y015
56
56
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
57
- _WhichOneofReturnType_width_spec: typing_extensions.TypeAlias = typing.Literal["use_stretch", "use_content", "pixel_width", "rem_width"]
58
- _WhichOneofArgType_width_spec: typing_extensions.TypeAlias = typing.Literal["width_spec", b"width_spec"]
57
+ _WhichOneofReturnType_width_spec: _TypeAlias = _typing.Literal["use_stretch", "use_content", "pixel_width", "rem_width"] # noqa: Y015
58
+ _WhichOneofArgType_width_spec: _TypeAlias = _typing.Literal["width_spec", b"width_spec"] # noqa: Y015
59
59
  def WhichOneof(self, oneof_group: _WhichOneofArgType_width_spec) -> _WhichOneofReturnType_width_spec | None: ...
60
60
 
61
- Global___WidthConfig: typing_extensions.TypeAlias = WidthConfig
61
+ Global___WidthConfig: _TypeAlias = WidthConfig # noqa: Y015