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,50 +17,55 @@ 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.AuthRedirect_pb2
27
- import streamlit.proto.AutoRerun_pb2
28
- import streamlit.proto.Common_pb2
29
- import streamlit.proto.Delta_pb2
30
- import streamlit.proto.GitInfo_pb2
31
- import streamlit.proto.Logo_pb2
32
- import streamlit.proto.Navigation_pb2
33
- import streamlit.proto.NewSession_pb2
34
- import streamlit.proto.PageConfig_pb2
35
- import streamlit.proto.PageInfo_pb2
36
- import streamlit.proto.PageNotFound_pb2
37
- import streamlit.proto.PageProfile_pb2
38
- import streamlit.proto.PagesChanged_pb2
39
- import streamlit.proto.ParentMessage_pb2
40
- import streamlit.proto.SessionEvent_pb2
41
- import streamlit.proto.SessionStatus_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 AuthRedirect_pb2 as _AuthRedirect_pb2
26
+ from streamlit.proto import AutoRerun_pb2 as _AutoRerun_pb2
27
+ from streamlit.proto import Common_pb2 as _Common_pb2
28
+ from streamlit.proto import Delta_pb2 as _Delta_pb2
29
+ from streamlit.proto import GitInfo_pb2 as _GitInfo_pb2
30
+ from streamlit.proto import Logo_pb2 as _Logo_pb2
31
+ from streamlit.proto import Navigation_pb2 as _Navigation_pb2
32
+ from streamlit.proto import NewSession_pb2 as _NewSession_pb2
33
+ from streamlit.proto import PageConfig_pb2 as _PageConfig_pb2
34
+ from streamlit.proto import PageInfo_pb2 as _PageInfo_pb2
35
+ from streamlit.proto import PageNotFound_pb2 as _PageNotFound_pb2
36
+ from streamlit.proto import PageProfile_pb2 as _PageProfile_pb2
37
+ from streamlit.proto import PagesChanged_pb2 as _PagesChanged_pb2
38
+ from streamlit.proto import ParentMessage_pb2 as _ParentMessage_pb2
39
+ from streamlit.proto import SessionEvent_pb2 as _SessionEvent_pb2
40
+ from streamlit.proto import SessionStatus_pb2 as _SessionStatus_pb2
41
+ import builtins as _builtins
42
42
  import sys
43
- import typing
43
+ import typing as _typing
44
44
 
45
45
  if sys.version_info >= (3, 10):
46
- import typing as typing_extensions
46
+ from typing import TypeAlias as _TypeAlias
47
47
  else:
48
- import typing_extensions
48
+ from typing_extensions import TypeAlias as _TypeAlias
49
49
 
50
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
50
+ if sys.version_info >= (3, 13):
51
+ from warnings import deprecated as _deprecated
52
+ else:
53
+ from typing_extensions import deprecated as _deprecated
54
+
55
+ DESCRIPTOR: _descriptor.FileDescriptor
51
56
 
52
- @typing.final
53
- class ForwardMsg(google.protobuf.message.Message):
57
+ @_typing.final
58
+ class ForwardMsg(_message.Message):
54
59
  """A message sent from Proxy to the browser"""
55
60
 
56
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
61
+ DESCRIPTOR: _descriptor.Descriptor
57
62
 
58
63
  class _ScriptFinishedStatus:
59
- ValueType = typing.NewType("ValueType", builtins.int)
60
- V: typing_extensions.TypeAlias = ValueType
64
+ ValueType = _typing.NewType("ValueType", _builtins.int)
65
+ V: _TypeAlias = ValueType # noqa: Y015
61
66
 
62
- class _ScriptFinishedStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ForwardMsg._ScriptFinishedStatus.ValueType], builtins.type):
63
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
67
+ class _ScriptFinishedStatusEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[ForwardMsg._ScriptFinishedStatus.ValueType], _builtins.type):
68
+ DESCRIPTOR: _descriptor.EnumDescriptor
64
69
  FINISHED_SUCCESSFULLY: ForwardMsg._ScriptFinishedStatus.ValueType # 0
65
70
  """The script compiled and ran."""
66
71
  FINISHED_WITH_COMPILE_ERROR: ForwardMsg._ScriptFinishedStatus.ValueType # 1
@@ -82,155 +87,156 @@ class ForwardMsg(google.protobuf.message.Message):
82
87
  FINISHED_FRAGMENT_RUN_SUCCESSFULLY: ForwardMsg.ScriptFinishedStatus.ValueType # 3
83
88
  """A fragment of the script ran successfully."""
84
89
 
85
- HASH_FIELD_NUMBER: builtins.int
86
- METADATA_FIELD_NUMBER: builtins.int
87
- NEW_SESSION_FIELD_NUMBER: builtins.int
88
- DELTA_FIELD_NUMBER: builtins.int
89
- PAGE_INFO_CHANGED_FIELD_NUMBER: builtins.int
90
- PAGE_CONFIG_CHANGED_FIELD_NUMBER: builtins.int
91
- SCRIPT_FINISHED_FIELD_NUMBER: builtins.int
92
- GIT_INFO_CHANGED_FIELD_NUMBER: builtins.int
93
- PAGE_PROFILE_FIELD_NUMBER: builtins.int
94
- SESSION_STATUS_CHANGED_FIELD_NUMBER: builtins.int
95
- SESSION_EVENT_FIELD_NUMBER: builtins.int
96
- NAVIGATION_FIELD_NUMBER: builtins.int
97
- PAGE_NOT_FOUND_FIELD_NUMBER: builtins.int
98
- PAGES_CHANGED_FIELD_NUMBER: builtins.int
99
- FILE_URLS_RESPONSE_FIELD_NUMBER: builtins.int
100
- AUTO_RERUN_FIELD_NUMBER: builtins.int
101
- LOGO_FIELD_NUMBER: builtins.int
102
- AUTH_REDIRECT_FIELD_NUMBER: builtins.int
103
- PARENT_MESSAGE_FIELD_NUMBER: builtins.int
104
- REF_HASH_FIELD_NUMBER: builtins.int
105
- DEFERRED_FILE_RESPONSE_FIELD_NUMBER: builtins.int
106
- DEBUG_LAST_BACKMSG_ID_FIELD_NUMBER: builtins.int
107
- hash: builtins.str
90
+ HASH_FIELD_NUMBER: _builtins.int
91
+ METADATA_FIELD_NUMBER: _builtins.int
92
+ NEW_SESSION_FIELD_NUMBER: _builtins.int
93
+ DELTA_FIELD_NUMBER: _builtins.int
94
+ PAGE_INFO_CHANGED_FIELD_NUMBER: _builtins.int
95
+ PAGE_CONFIG_CHANGED_FIELD_NUMBER: _builtins.int
96
+ SCRIPT_FINISHED_FIELD_NUMBER: _builtins.int
97
+ GIT_INFO_CHANGED_FIELD_NUMBER: _builtins.int
98
+ PAGE_PROFILE_FIELD_NUMBER: _builtins.int
99
+ SESSION_STATUS_CHANGED_FIELD_NUMBER: _builtins.int
100
+ SESSION_EVENT_FIELD_NUMBER: _builtins.int
101
+ NAVIGATION_FIELD_NUMBER: _builtins.int
102
+ PAGE_NOT_FOUND_FIELD_NUMBER: _builtins.int
103
+ PAGES_CHANGED_FIELD_NUMBER: _builtins.int
104
+ FILE_URLS_RESPONSE_FIELD_NUMBER: _builtins.int
105
+ AUTO_RERUN_FIELD_NUMBER: _builtins.int
106
+ LOGO_FIELD_NUMBER: _builtins.int
107
+ AUTH_REDIRECT_FIELD_NUMBER: _builtins.int
108
+ PARENT_MESSAGE_FIELD_NUMBER: _builtins.int
109
+ REF_HASH_FIELD_NUMBER: _builtins.int
110
+ DEFERRED_FILE_RESPONSE_FIELD_NUMBER: _builtins.int
111
+ DEBUG_LAST_BACKMSG_ID_FIELD_NUMBER: _builtins.int
112
+ hash: _builtins.str
108
113
  """A hash that uniquely identifies this ForwardMsg, for caching."""
109
114
  script_finished: Global___ForwardMsg.ScriptFinishedStatus.ValueType
110
- ref_hash: builtins.str
115
+ ref_hash: _builtins.str
111
116
  """A reference to a ForwardMsg that has already been delivered
112
117
  and cached in the frontend. The client should substitute the message
113
118
  with the given hash for this one.
114
119
  """
115
- debug_last_backmsg_id: builtins.str
120
+ debug_last_backmsg_id: _builtins.str
116
121
  """The ID of the last BackMsg that we received before sending this
117
122
  ForwardMsg. As its name suggests, this field should only be used for
118
123
  testing.
119
124
  """
120
- @property
125
+ @_builtins.property
121
126
  def metadata(self) -> Global___ForwardMsgMetadata:
122
127
  """Contains 'non-payload' ForwardMsg data that isn't cached for the purposes
123
128
  of ForwardMsg de-duping.
124
129
  """
125
130
 
126
- @property
127
- def new_session(self) -> streamlit.proto.NewSession_pb2.NewSession:
131
+ @_builtins.property
132
+ def new_session(self) -> _NewSession_pb2.NewSession:
128
133
  """App lifecycle messages."""
129
134
 
130
- @property
131
- def delta(self) -> streamlit.proto.Delta_pb2.Delta: ...
132
- @property
133
- def page_info_changed(self) -> streamlit.proto.PageInfo_pb2.PageInfo: ...
134
- @property
135
- def page_config_changed(self) -> streamlit.proto.PageConfig_pb2.PageConfig: ...
136
- @property
137
- def git_info_changed(self) -> streamlit.proto.GitInfo_pb2.GitInfo: ...
138
- @property
139
- def page_profile(self) -> streamlit.proto.PageProfile_pb2.PageProfile: ...
140
- @property
141
- def session_status_changed(self) -> streamlit.proto.SessionStatus_pb2.SessionStatus:
135
+ @_builtins.property
136
+ def delta(self) -> _Delta_pb2.Delta: ...
137
+ @_builtins.property
138
+ def page_info_changed(self) -> _PageInfo_pb2.PageInfo: ...
139
+ @_builtins.property
140
+ def page_config_changed(self) -> _PageConfig_pb2.PageConfig: ...
141
+ @_builtins.property
142
+ def git_info_changed(self) -> _GitInfo_pb2.GitInfo: ...
143
+ @_builtins.property
144
+ def page_profile(self) -> _PageProfile_pb2.PageProfile: ...
145
+ @_builtins.property
146
+ def session_status_changed(self) -> _SessionStatus_pb2.SessionStatus:
142
147
  """Status change and event messages."""
143
148
 
144
- @property
145
- def session_event(self) -> streamlit.proto.SessionEvent_pb2.SessionEvent: ...
146
- @property
147
- def navigation(self) -> streamlit.proto.Navigation_pb2.Navigation:
149
+ @_builtins.property
150
+ def session_event(self) -> _SessionEvent_pb2.SessionEvent: ...
151
+ @_builtins.property
152
+ def navigation(self) -> _Navigation_pb2.Navigation:
148
153
  """Other messages."""
149
154
 
150
- @property
151
- def page_not_found(self) -> streamlit.proto.PageNotFound_pb2.PageNotFound: ...
152
- @property
153
- def pages_changed(self) -> streamlit.proto.PagesChanged_pb2.PagesChanged: ...
154
- @property
155
- def file_urls_response(self) -> streamlit.proto.Common_pb2.FileURLsResponse: ...
156
- @property
157
- def auto_rerun(self) -> streamlit.proto.AutoRerun_pb2.AutoRerun: ...
158
- @property
159
- def logo(self) -> streamlit.proto.Logo_pb2.Logo:
155
+ @_builtins.property
156
+ def page_not_found(self) -> _PageNotFound_pb2.PageNotFound: ...
157
+ @_builtins.property
158
+ @_deprecated("""This field has been marked as deprecated using proto field options.""")
159
+ def pages_changed(self) -> _PagesChanged_pb2.PagesChanged: ...
160
+ @_builtins.property
161
+ def file_urls_response(self) -> _Common_pb2.FileURLsResponse: ...
162
+ @_builtins.property
163
+ def auto_rerun(self) -> _AutoRerun_pb2.AutoRerun: ...
164
+ @_builtins.property
165
+ def logo(self) -> _Logo_pb2.Logo:
160
166
  """App logo message"""
161
167
 
162
- @property
163
- def auth_redirect(self) -> streamlit.proto.AuthRedirect_pb2.AuthRedirect:
168
+ @_builtins.property
169
+ def auth_redirect(self) -> _AuthRedirect_pb2.AuthRedirect:
164
170
  """Auth redirect message"""
165
171
 
166
- @property
167
- def parent_message(self) -> streamlit.proto.ParentMessage_pb2.ParentMessage:
172
+ @_builtins.property
173
+ def parent_message(self) -> _ParentMessage_pb2.ParentMessage:
168
174
  """Platform - message to host"""
169
175
 
170
- @property
176
+ @_builtins.property
171
177
  def deferred_file_response(self) -> Global___DeferredFileResponse:
172
178
  """Response for a deferred file request"""
173
179
 
174
180
  def __init__(
175
181
  self,
176
182
  *,
177
- hash: builtins.str = ...,
183
+ hash: _builtins.str = ...,
178
184
  metadata: Global___ForwardMsgMetadata | None = ...,
179
- new_session: streamlit.proto.NewSession_pb2.NewSession | None = ...,
180
- delta: streamlit.proto.Delta_pb2.Delta | None = ...,
181
- page_info_changed: streamlit.proto.PageInfo_pb2.PageInfo | None = ...,
182
- page_config_changed: streamlit.proto.PageConfig_pb2.PageConfig | None = ...,
185
+ new_session: _NewSession_pb2.NewSession | None = ...,
186
+ delta: _Delta_pb2.Delta | None = ...,
187
+ page_info_changed: _PageInfo_pb2.PageInfo | None = ...,
188
+ page_config_changed: _PageConfig_pb2.PageConfig | None = ...,
183
189
  script_finished: Global___ForwardMsg.ScriptFinishedStatus.ValueType = ...,
184
- git_info_changed: streamlit.proto.GitInfo_pb2.GitInfo | None = ...,
185
- page_profile: streamlit.proto.PageProfile_pb2.PageProfile | None = ...,
186
- session_status_changed: streamlit.proto.SessionStatus_pb2.SessionStatus | None = ...,
187
- session_event: streamlit.proto.SessionEvent_pb2.SessionEvent | None = ...,
188
- navigation: streamlit.proto.Navigation_pb2.Navigation | None = ...,
189
- page_not_found: streamlit.proto.PageNotFound_pb2.PageNotFound | None = ...,
190
- pages_changed: streamlit.proto.PagesChanged_pb2.PagesChanged | None = ...,
191
- file_urls_response: streamlit.proto.Common_pb2.FileURLsResponse | None = ...,
192
- auto_rerun: streamlit.proto.AutoRerun_pb2.AutoRerun | None = ...,
193
- logo: streamlit.proto.Logo_pb2.Logo | None = ...,
194
- auth_redirect: streamlit.proto.AuthRedirect_pb2.AuthRedirect | None = ...,
195
- parent_message: streamlit.proto.ParentMessage_pb2.ParentMessage | None = ...,
196
- ref_hash: builtins.str = ...,
190
+ git_info_changed: _GitInfo_pb2.GitInfo | None = ...,
191
+ page_profile: _PageProfile_pb2.PageProfile | None = ...,
192
+ session_status_changed: _SessionStatus_pb2.SessionStatus | None = ...,
193
+ session_event: _SessionEvent_pb2.SessionEvent | None = ...,
194
+ navigation: _Navigation_pb2.Navigation | None = ...,
195
+ page_not_found: _PageNotFound_pb2.PageNotFound | None = ...,
196
+ pages_changed: _PagesChanged_pb2.PagesChanged | None = ...,
197
+ file_urls_response: _Common_pb2.FileURLsResponse | None = ...,
198
+ auto_rerun: _AutoRerun_pb2.AutoRerun | None = ...,
199
+ logo: _Logo_pb2.Logo | None = ...,
200
+ auth_redirect: _AuthRedirect_pb2.AuthRedirect | None = ...,
201
+ parent_message: _ParentMessage_pb2.ParentMessage | None = ...,
202
+ ref_hash: _builtins.str = ...,
197
203
  deferred_file_response: Global___DeferredFileResponse | None = ...,
198
- debug_last_backmsg_id: builtins.str = ...,
204
+ debug_last_backmsg_id: _builtins.str = ...,
199
205
  ) -> None: ...
200
- _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["auth_redirect", b"auth_redirect", "auto_rerun", b"auto_rerun", "deferred_file_response", b"deferred_file_response", "delta", b"delta", "file_urls_response", b"file_urls_response", "git_info_changed", b"git_info_changed", "logo", b"logo", "metadata", b"metadata", "navigation", b"navigation", "new_session", b"new_session", "page_config_changed", b"page_config_changed", "page_info_changed", b"page_info_changed", "page_not_found", b"page_not_found", "page_profile", b"page_profile", "pages_changed", b"pages_changed", "parent_message", b"parent_message", "ref_hash", b"ref_hash", "script_finished", b"script_finished", "session_event", b"session_event", "session_status_changed", b"session_status_changed", "type", b"type"]
201
- def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ...
202
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["auth_redirect", b"auth_redirect", "auto_rerun", b"auto_rerun", "debug_last_backmsg_id", b"debug_last_backmsg_id", "deferred_file_response", b"deferred_file_response", "delta", b"delta", "file_urls_response", b"file_urls_response", "git_info_changed", b"git_info_changed", "hash", b"hash", "logo", b"logo", "metadata", b"metadata", "navigation", b"navigation", "new_session", b"new_session", "page_config_changed", b"page_config_changed", "page_info_changed", b"page_info_changed", "page_not_found", b"page_not_found", "page_profile", b"page_profile", "pages_changed", b"pages_changed", "parent_message", b"parent_message", "ref_hash", b"ref_hash", "script_finished", b"script_finished", "session_event", b"session_event", "session_status_changed", b"session_status_changed", "type", b"type"]
206
+ _HasFieldArgType: _TypeAlias = _typing.Literal["auth_redirect", b"auth_redirect", "auto_rerun", b"auto_rerun", "deferred_file_response", b"deferred_file_response", "delta", b"delta", "file_urls_response", b"file_urls_response", "git_info_changed", b"git_info_changed", "logo", b"logo", "metadata", b"metadata", "navigation", b"navigation", "new_session", b"new_session", "page_config_changed", b"page_config_changed", "page_info_changed", b"page_info_changed", "page_not_found", b"page_not_found", "page_profile", b"page_profile", "pages_changed", b"pages_changed", "parent_message", b"parent_message", "ref_hash", b"ref_hash", "script_finished", b"script_finished", "session_event", b"session_event", "session_status_changed", b"session_status_changed", "type", b"type"] # noqa: Y015
207
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
208
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["auth_redirect", b"auth_redirect", "auto_rerun", b"auto_rerun", "debug_last_backmsg_id", b"debug_last_backmsg_id", "deferred_file_response", b"deferred_file_response", "delta", b"delta", "file_urls_response", b"file_urls_response", "git_info_changed", b"git_info_changed", "hash", b"hash", "logo", b"logo", "metadata", b"metadata", "navigation", b"navigation", "new_session", b"new_session", "page_config_changed", b"page_config_changed", "page_info_changed", b"page_info_changed", "page_not_found", b"page_not_found", "page_profile", b"page_profile", "pages_changed", b"pages_changed", "parent_message", b"parent_message", "ref_hash", b"ref_hash", "script_finished", b"script_finished", "session_event", b"session_event", "session_status_changed", b"session_status_changed", "type", b"type"] # noqa: Y015
203
209
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
204
- _WhichOneofReturnType_type: typing_extensions.TypeAlias = typing.Literal["new_session", "delta", "page_info_changed", "page_config_changed", "script_finished", "git_info_changed", "page_profile", "session_status_changed", "session_event", "navigation", "page_not_found", "pages_changed", "file_urls_response", "auto_rerun", "logo", "auth_redirect", "parent_message", "ref_hash", "deferred_file_response"]
205
- _WhichOneofArgType_type: typing_extensions.TypeAlias = typing.Literal["type", b"type"]
210
+ _WhichOneofReturnType_type: _TypeAlias = _typing.Literal["new_session", "delta", "page_info_changed", "page_config_changed", "script_finished", "git_info_changed", "page_profile", "session_status_changed", "session_event", "navigation", "page_not_found", "pages_changed", "file_urls_response", "auto_rerun", "logo", "auth_redirect", "parent_message", "ref_hash", "deferred_file_response"] # noqa: Y015
211
+ _WhichOneofArgType_type: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015
206
212
  def WhichOneof(self, oneof_group: _WhichOneofArgType_type) -> _WhichOneofReturnType_type | None: ...
207
213
 
208
- Global___ForwardMsg: typing_extensions.TypeAlias = ForwardMsg
214
+ Global___ForwardMsg: _TypeAlias = ForwardMsg # noqa: Y015
209
215
 
210
- @typing.final
211
- class DeferredFileResponse(google.protobuf.message.Message):
212
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
216
+ @_typing.final
217
+ class DeferredFileResponse(_message.Message):
218
+ DESCRIPTOR: _descriptor.Descriptor
213
219
 
214
- FILE_ID_FIELD_NUMBER: builtins.int
215
- URL_FIELD_NUMBER: builtins.int
216
- ERROR_MSG_FIELD_NUMBER: builtins.int
217
- file_id: builtins.str
218
- url: builtins.str
219
- error_msg: builtins.str
220
+ FILE_ID_FIELD_NUMBER: _builtins.int
221
+ URL_FIELD_NUMBER: _builtins.int
222
+ ERROR_MSG_FIELD_NUMBER: _builtins.int
223
+ file_id: _builtins.str
224
+ url: _builtins.str
225
+ error_msg: _builtins.str
220
226
  def __init__(
221
227
  self,
222
228
  *,
223
- file_id: builtins.str = ...,
224
- url: builtins.str = ...,
225
- error_msg: builtins.str = ...,
229
+ file_id: _builtins.str = ...,
230
+ url: _builtins.str = ...,
231
+ error_msg: _builtins.str = ...,
226
232
  ) -> None: ...
227
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["error_msg", b"error_msg", "file_id", b"file_id", "url", b"url"]
233
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["error_msg", b"error_msg", "file_id", b"file_id", "url", b"url"] # noqa: Y015
228
234
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
229
235
 
230
- Global___DeferredFileResponse: typing_extensions.TypeAlias = DeferredFileResponse
236
+ Global___DeferredFileResponse: _TypeAlias = DeferredFileResponse # noqa: Y015
231
237
 
232
- @typing.final
233
- class ForwardMsgMetadata(google.protobuf.message.Message):
238
+ @_typing.final
239
+ class ForwardMsgMetadata(_message.Message):
234
240
  """ForwardMsgMetadata contains all data that does _not_ get hashed (or cached)
235
241
  in our ForwardMsgCache. (That is, when we cache a ForwardMsg, we clear its
236
242
  metadata field first.) This allows us to, e.g., have a large unchanging
@@ -238,71 +244,71 @@ class ForwardMsgMetadata(google.protobuf.message.Message):
238
244
  multiple times in a single run - and only send its dataframe bytes once.
239
245
  """
240
246
 
241
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
247
+ DESCRIPTOR: _descriptor.Descriptor
242
248
 
243
- CACHEABLE_FIELD_NUMBER: builtins.int
244
- DELTA_PATH_FIELD_NUMBER: builtins.int
245
- ELEMENT_DIMENSION_SPEC_FIELD_NUMBER: builtins.int
246
- ACTIVE_SCRIPT_HASH_FIELD_NUMBER: builtins.int
247
- cacheable: builtins.bool
249
+ CACHEABLE_FIELD_NUMBER: _builtins.int
250
+ DELTA_PATH_FIELD_NUMBER: _builtins.int
251
+ ELEMENT_DIMENSION_SPEC_FIELD_NUMBER: _builtins.int
252
+ ACTIVE_SCRIPT_HASH_FIELD_NUMBER: _builtins.int
253
+ cacheable: _builtins.bool
248
254
  """Marks a message as cacheable for the frontend."""
249
- active_script_hash: builtins.str
255
+ active_script_hash: _builtins.str
250
256
  """active_script_hash the forward message is associated from.
251
257
  For multipage apps v1, this will always be the page file running
252
258
  For multipage apps v2, this can be the main script or the page script
253
259
  """
254
- @property
255
- def delta_path(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
260
+ @_builtins.property
261
+ def delta_path(self) -> _containers.RepeatedScalarFieldContainer[_builtins.int]:
256
262
  """The path that identifies a delta's location in the report tree.
257
263
  Only set for Delta messages.
258
264
  """
259
265
 
260
- @property
266
+ @_builtins.property
261
267
  def element_dimension_spec(self) -> Global___ElementDimensionSpec:
262
268
  """DEPRECATED: This is not used anymore."""
263
269
 
264
270
  def __init__(
265
271
  self,
266
272
  *,
267
- cacheable: builtins.bool = ...,
268
- delta_path: collections.abc.Iterable[builtins.int] | None = ...,
273
+ cacheable: _builtins.bool = ...,
274
+ delta_path: _abc.Iterable[_builtins.int] | None = ...,
269
275
  element_dimension_spec: Global___ElementDimensionSpec | None = ...,
270
- active_script_hash: builtins.str = ...,
276
+ active_script_hash: _builtins.str = ...,
271
277
  ) -> None: ...
272
- _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["element_dimension_spec", b"element_dimension_spec"]
273
- def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ...
274
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["active_script_hash", b"active_script_hash", "cacheable", b"cacheable", "delta_path", b"delta_path", "element_dimension_spec", b"element_dimension_spec"]
278
+ _HasFieldArgType: _TypeAlias = _typing.Literal["element_dimension_spec", b"element_dimension_spec"] # noqa: Y015
279
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
280
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["active_script_hash", b"active_script_hash", "cacheable", b"cacheable", "delta_path", b"delta_path", "element_dimension_spec", b"element_dimension_spec"] # noqa: Y015
275
281
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
276
282
 
277
- Global___ForwardMsgMetadata: typing_extensions.TypeAlias = ForwardMsgMetadata
283
+ Global___ForwardMsgMetadata: _TypeAlias = ForwardMsgMetadata # noqa: Y015
278
284
 
279
- @typing.final
280
- class ElementDimensionSpec(google.protobuf.message.Message):
285
+ @_typing.final
286
+ class ElementDimensionSpec(_message.Message):
281
287
  """DEPRECATED: This is not used anymore.
282
288
  Specifies the dimensions for the element
283
289
  """
284
290
 
285
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
291
+ DESCRIPTOR: _descriptor.Descriptor
286
292
 
287
- WIDTH_FIELD_NUMBER: builtins.int
288
- HEIGHT_FIELD_NUMBER: builtins.int
289
- width: builtins.int
293
+ WIDTH_FIELD_NUMBER: _builtins.int
294
+ HEIGHT_FIELD_NUMBER: _builtins.int
295
+ width: _builtins.int
290
296
  """width in pixels"""
291
- height: builtins.int
297
+ height: _builtins.int
292
298
  """height in pixels"""
293
299
  def __init__(
294
300
  self,
295
301
  *,
296
- width: builtins.int = ...,
297
- height: builtins.int = ...,
302
+ width: _builtins.int = ...,
303
+ height: _builtins.int = ...,
298
304
  ) -> None: ...
299
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["height", b"height", "width", b"width"]
305
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["height", b"height", "width", b"width"] # noqa: Y015
300
306
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
301
307
 
302
- Global___ElementDimensionSpec: typing_extensions.TypeAlias = ElementDimensionSpec
308
+ Global___ElementDimensionSpec: _TypeAlias = ElementDimensionSpec # noqa: Y015
303
309
 
304
- @typing.final
305
- class ForwardMsgList(google.protobuf.message.Message):
310
+ @_typing.final
311
+ class ForwardMsgList(_message.Message):
306
312
  """This is a list of ForwardMessages used to have a single protobuf message
307
313
  that encapsulates multiple ForwardMessages. This is used in static streamlit app
308
314
  generation in replaying all of the protobuf messages of a streamlit app. The
@@ -310,17 +316,17 @@ class ForwardMsgList(google.protobuf.message.Message):
310
316
  instead of needing to do that ourselves.
311
317
  """
312
318
 
313
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
319
+ DESCRIPTOR: _descriptor.Descriptor
314
320
 
315
- MESSAGES_FIELD_NUMBER: builtins.int
316
- @property
317
- def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___ForwardMsg]: ...
321
+ MESSAGES_FIELD_NUMBER: _builtins.int
322
+ @_builtins.property
323
+ def messages(self) -> _containers.RepeatedCompositeFieldContainer[Global___ForwardMsg]: ...
318
324
  def __init__(
319
325
  self,
320
326
  *,
321
- messages: collections.abc.Iterable[Global___ForwardMsg] | None = ...,
327
+ messages: _abc.Iterable[Global___ForwardMsg] | None = ...,
322
328
  ) -> None: ...
323
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["messages", b"messages"]
329
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["messages", b"messages"] # noqa: Y015
324
330
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
325
331
 
326
- Global___ForwardMsgList: typing_extensions.TypeAlias = ForwardMsgList
332
+ Global___ForwardMsgList: _TypeAlias = ForwardMsgList # noqa: Y015
@@ -17,26 +17,26 @@ 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
34
  class _GapSize:
35
- ValueType = typing.NewType("ValueType", builtins.int)
36
- V: typing_extensions.TypeAlias = ValueType
35
+ ValueType = _typing.NewType("ValueType", _builtins.int)
36
+ V: _TypeAlias = ValueType # noqa: Y015
37
37
 
38
- class _GapSizeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_GapSize.ValueType], builtins.type):
39
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
38
+ class _GapSizeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[_GapSize.ValueType], _builtins.type):
39
+ DESCRIPTOR: _descriptor.EnumDescriptor
40
40
  GAP_UNDEFINED: _GapSize.ValueType # 0
41
41
  SMALL: _GapSize.ValueType # 1
42
42
  MEDIUM: _GapSize.ValueType # 2
@@ -58,25 +58,25 @@ XXSMALL: GapSize.ValueType # 5
58
58
  XSMALL: GapSize.ValueType # 6
59
59
  XLARGE: GapSize.ValueType # 7
60
60
  XXLARGE: GapSize.ValueType # 8
61
- Global___GapSize: typing_extensions.TypeAlias = GapSize
61
+ Global___GapSize: _TypeAlias = GapSize # noqa: Y015
62
62
 
63
- @typing.final
64
- class GapConfig(google.protobuf.message.Message):
65
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
63
+ @_typing.final
64
+ class GapConfig(_message.Message):
65
+ DESCRIPTOR: _descriptor.Descriptor
66
66
 
67
- GAP_SIZE_FIELD_NUMBER: builtins.int
67
+ GAP_SIZE_FIELD_NUMBER: _builtins.int
68
68
  gap_size: Global___GapSize.ValueType
69
69
  def __init__(
70
70
  self,
71
71
  *,
72
72
  gap_size: Global___GapSize.ValueType = ...,
73
73
  ) -> None: ...
74
- _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["gap_size", b"gap_size", "gap_spec", b"gap_spec"]
75
- def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ...
76
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["gap_size", b"gap_size", "gap_spec", b"gap_spec"]
74
+ _HasFieldArgType: _TypeAlias = _typing.Literal["gap_size", b"gap_size", "gap_spec", b"gap_spec"] # noqa: Y015
75
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
76
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["gap_size", b"gap_size", "gap_spec", b"gap_spec"] # noqa: Y015
77
77
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
78
- _WhichOneofReturnType_gap_spec: typing_extensions.TypeAlias = typing.Literal["gap_size"]
79
- _WhichOneofArgType_gap_spec: typing_extensions.TypeAlias = typing.Literal["gap_spec", b"gap_spec"]
78
+ _WhichOneofReturnType_gap_spec: _TypeAlias = _typing.Literal["gap_size"] # noqa: Y015
79
+ _WhichOneofArgType_gap_spec: _TypeAlias = _typing.Literal["gap_spec", b"gap_spec"] # noqa: Y015
80
80
  def WhichOneof(self, oneof_group: _WhichOneofArgType_gap_spec) -> _WhichOneofReturnType_gap_spec | None: ...
81
81
 
82
- Global___GapConfig: typing_extensions.TypeAlias = GapConfig
82
+ Global___GapConfig: _TypeAlias = GapConfig # noqa: Y015