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,33 +17,33 @@ 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.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 google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
25
+ from streamlit.proto import LabelVisibilityMessage_pb2 as _LabelVisibilityMessage_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 Slider(google.protobuf.message.Message):
39
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
37
+ @_typing.final
38
+ class Slider(_message.Message):
39
+ DESCRIPTOR: _descriptor.Descriptor
40
40
 
41
41
  class _DataType:
42
- ValueType = typing.NewType("ValueType", builtins.int)
43
- V: typing_extensions.TypeAlias = ValueType
42
+ ValueType = _typing.NewType("ValueType", _builtins.int)
43
+ V: _TypeAlias = ValueType # noqa: Y015
44
44
 
45
- class _DataTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Slider._DataType.ValueType], builtins.type):
46
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
45
+ class _DataTypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[Slider._DataType.ValueType], _builtins.type):
46
+ DESCRIPTOR: _descriptor.EnumDescriptor
47
47
  INT: Slider._DataType.ValueType # 0
48
48
  """What numeric type are we working with? This doesn't change how the
49
49
  data is stored, but the frontend needs to know for input parsing.
@@ -66,11 +66,11 @@ class Slider(google.protobuf.message.Message):
66
66
  TIME: Slider.DataType.ValueType # 4
67
67
 
68
68
  class _Type:
69
- ValueType = typing.NewType("ValueType", builtins.int)
70
- V: typing_extensions.TypeAlias = ValueType
69
+ ValueType = _typing.NewType("ValueType", _builtins.int)
70
+ V: _TypeAlias = ValueType # noqa: Y015
71
71
 
72
- class _TypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Slider._Type.ValueType], builtins.type):
73
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
72
+ class _TypeEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[Slider._Type.ValueType], _builtins.type):
73
+ DESCRIPTOR: _descriptor.EnumDescriptor
74
74
  UNSPECIFIED: Slider._Type.ValueType # 0
75
75
  SLIDER: Slider._Type.ValueType # 1
76
76
  SELECT_SLIDER: Slider._Type.ValueType # 2
@@ -80,65 +80,65 @@ class Slider(google.protobuf.message.Message):
80
80
  SLIDER: Slider.Type.ValueType # 1
81
81
  SELECT_SLIDER: Slider.Type.ValueType # 2
82
82
 
83
- ID_FIELD_NUMBER: builtins.int
84
- FORM_ID_FIELD_NUMBER: builtins.int
85
- LABEL_FIELD_NUMBER: builtins.int
86
- FORMAT_FIELD_NUMBER: builtins.int
87
- DATA_TYPE_FIELD_NUMBER: builtins.int
88
- DEFAULT_FIELD_NUMBER: builtins.int
89
- MIN_FIELD_NUMBER: builtins.int
90
- MAX_FIELD_NUMBER: builtins.int
91
- STEP_FIELD_NUMBER: builtins.int
92
- VALUE_FIELD_NUMBER: builtins.int
93
- SET_VALUE_FIELD_NUMBER: builtins.int
94
- OPTIONS_FIELD_NUMBER: builtins.int
95
- HELP_FIELD_NUMBER: builtins.int
96
- DISABLED_FIELD_NUMBER: builtins.int
97
- LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
98
- TYPE_FIELD_NUMBER: builtins.int
99
- id: builtins.str
100
- form_id: builtins.str
101
- label: builtins.str
102
- format: builtins.str
83
+ ID_FIELD_NUMBER: _builtins.int
84
+ FORM_ID_FIELD_NUMBER: _builtins.int
85
+ LABEL_FIELD_NUMBER: _builtins.int
86
+ FORMAT_FIELD_NUMBER: _builtins.int
87
+ DATA_TYPE_FIELD_NUMBER: _builtins.int
88
+ DEFAULT_FIELD_NUMBER: _builtins.int
89
+ MIN_FIELD_NUMBER: _builtins.int
90
+ MAX_FIELD_NUMBER: _builtins.int
91
+ STEP_FIELD_NUMBER: _builtins.int
92
+ VALUE_FIELD_NUMBER: _builtins.int
93
+ SET_VALUE_FIELD_NUMBER: _builtins.int
94
+ OPTIONS_FIELD_NUMBER: _builtins.int
95
+ HELP_FIELD_NUMBER: _builtins.int
96
+ DISABLED_FIELD_NUMBER: _builtins.int
97
+ LABEL_VISIBILITY_FIELD_NUMBER: _builtins.int
98
+ TYPE_FIELD_NUMBER: _builtins.int
99
+ id: _builtins.str
100
+ form_id: _builtins.str
101
+ label: _builtins.str
102
+ format: _builtins.str
103
103
  data_type: Global___Slider.DataType.ValueType
104
- min: builtins.float
105
- max: builtins.float
106
- step: builtins.float
107
- set_value: builtins.bool
108
- help: builtins.str
109
- disabled: builtins.bool
104
+ min: _builtins.float
105
+ max: _builtins.float
106
+ step: _builtins.float
107
+ set_value: _builtins.bool
108
+ help: _builtins.str
109
+ disabled: _builtins.bool
110
110
  type: Global___Slider.Type.ValueType
111
- @property
112
- def default(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ...
113
- @property
114
- def value(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ...
115
- @property
116
- def options(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
117
- @property
118
- def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
111
+ @_builtins.property
112
+ def default(self) -> _containers.RepeatedScalarFieldContainer[_builtins.float]: ...
113
+ @_builtins.property
114
+ def value(self) -> _containers.RepeatedScalarFieldContainer[_builtins.float]: ...
115
+ @_builtins.property
116
+ def options(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
117
+ @_builtins.property
118
+ def label_visibility(self) -> _LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
119
119
  def __init__(
120
120
  self,
121
121
  *,
122
- id: builtins.str = ...,
123
- form_id: builtins.str = ...,
124
- label: builtins.str = ...,
125
- format: builtins.str = ...,
122
+ id: _builtins.str = ...,
123
+ form_id: _builtins.str = ...,
124
+ label: _builtins.str = ...,
125
+ format: _builtins.str = ...,
126
126
  data_type: Global___Slider.DataType.ValueType = ...,
127
- default: collections.abc.Iterable[builtins.float] | None = ...,
128
- min: builtins.float = ...,
129
- max: builtins.float = ...,
130
- step: builtins.float = ...,
131
- value: collections.abc.Iterable[builtins.float] | None = ...,
132
- set_value: builtins.bool = ...,
133
- options: collections.abc.Iterable[builtins.str] | None = ...,
134
- help: builtins.str = ...,
135
- disabled: builtins.bool = ...,
136
- label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
127
+ default: _abc.Iterable[_builtins.float] | None = ...,
128
+ min: _builtins.float = ...,
129
+ max: _builtins.float = ...,
130
+ step: _builtins.float = ...,
131
+ value: _abc.Iterable[_builtins.float] | None = ...,
132
+ set_value: _builtins.bool = ...,
133
+ options: _abc.Iterable[_builtins.str] | None = ...,
134
+ help: _builtins.str = ...,
135
+ disabled: _builtins.bool = ...,
136
+ label_visibility: _LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
137
137
  type: Global___Slider.Type.ValueType = ...,
138
138
  ) -> None: ...
139
- _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["label_visibility", b"label_visibility"]
140
- def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ...
141
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["data_type", b"data_type", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "format", b"format", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "max", b"max", "min", b"min", "options", b"options", "set_value", b"set_value", "step", b"step", "type", b"type", "value", b"value"]
139
+ _HasFieldArgType: _TypeAlias = _typing.Literal["label_visibility", b"label_visibility"] # noqa: Y015
140
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
141
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["data_type", b"data_type", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "format", b"format", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "max", b"max", "min", b"min", "options", b"options", "set_value", b"set_value", "step", b"step", "type", b"type", "value", b"value"] # noqa: Y015
142
142
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
143
143
 
144
- Global___Slider: typing_extensions.TypeAlias = Slider
144
+ Global___Slider: _TypeAlias = Slider # noqa: Y015
@@ -17,34 +17,34 @@ 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 Snow(google.protobuf.message.Message):
33
+ @_typing.final
34
+ class Snow(_message.Message):
35
35
  """A python empty."""
36
36
 
37
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
37
+ DESCRIPTOR: _descriptor.Descriptor
38
38
 
39
- SHOW_FIELD_NUMBER: builtins.int
40
- show: builtins.bool
39
+ SHOW_FIELD_NUMBER: _builtins.int
40
+ show: _builtins.bool
41
41
  """Dummy boolean because protos need to have something."""
42
42
  def __init__(
43
43
  self,
44
44
  *,
45
- show: builtins.bool = ...,
45
+ show: _builtins.bool = ...,
46
46
  ) -> None: ...
47
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["show", b"show"]
47
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["show", b"show"] # noqa: Y015
48
48
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
49
49
 
50
- Global___Snow: typing_extensions.TypeAlias = Snow
50
+ Global___Snow: _TypeAlias = Snow # noqa: Y015
@@ -17,20 +17,20 @@ See the License for the specific language governing permissions and
17
17
  limitations under the License.
18
18
  """
19
19
 
20
- import google.protobuf.descriptor
21
- import google.protobuf.message
20
+ from google.protobuf import descriptor as _descriptor
21
+ from google.protobuf import message as _message
22
22
  import sys
23
- import typing
23
+ import typing as _typing
24
24
 
25
25
  if sys.version_info >= (3, 10):
26
- import typing as typing_extensions
26
+ from typing import TypeAlias as _TypeAlias
27
27
  else:
28
- import typing_extensions
28
+ from typing_extensions import TypeAlias as _TypeAlias
29
29
 
30
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
30
+ DESCRIPTOR: _descriptor.FileDescriptor
31
31
 
32
- @typing.final
33
- class Space(google.protobuf.message.Message):
32
+ @_typing.final
33
+ class Space(_message.Message):
34
34
  """A space element for adding vertical or horizontal spacing.
35
35
  The size and direction are controlled via Element.width_config and
36
36
  Element.height_config. The frontend uses FlexContext to determine which
@@ -39,10 +39,10 @@ class Space(google.protobuf.message.Message):
39
39
  Element.width_config and Element.height_config
40
40
  """
41
41
 
42
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
42
+ DESCRIPTOR: _descriptor.Descriptor
43
43
 
44
44
  def __init__(
45
45
  self,
46
46
  ) -> None: ...
47
47
 
48
- Global___Space: typing_extensions.TypeAlias = Space
48
+ Global___Space: _TypeAlias = Space # noqa: Y015
@@ -17,40 +17,40 @@ 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 Spinner(google.protobuf.message.Message):
35
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
33
+ @_typing.final
34
+ class Spinner(_message.Message):
35
+ DESCRIPTOR: _descriptor.Descriptor
36
36
 
37
- TEXT_FIELD_NUMBER: builtins.int
38
- CACHE_FIELD_NUMBER: builtins.int
39
- SHOW_TIME_FIELD_NUMBER: builtins.int
40
- text: builtins.str
37
+ TEXT_FIELD_NUMBER: _builtins.int
38
+ CACHE_FIELD_NUMBER: _builtins.int
39
+ SHOW_TIME_FIELD_NUMBER: _builtins.int
40
+ text: _builtins.str
41
41
  """A message to display while executing that block."""
42
- cache: builtins.bool
42
+ cache: _builtins.bool
43
43
  """Whether spinner used in caching functions."""
44
- show_time: builtins.bool
44
+ show_time: _builtins.bool
45
45
  """Whether to show elapsed time next to the spinner text."""
46
46
  def __init__(
47
47
  self,
48
48
  *,
49
- text: builtins.str = ...,
50
- cache: builtins.bool = ...,
51
- show_time: builtins.bool = ...,
49
+ text: _builtins.str = ...,
50
+ cache: _builtins.bool = ...,
51
+ show_time: _builtins.bool = ...,
52
52
  ) -> None: ...
53
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["cache", b"cache", "show_time", b"show_time", "text", b"text"]
53
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["cache", b"cache", "show_time", b"show_time", "text", b"text"] # noqa: Y015
54
54
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
55
55
 
56
- Global___Spinner: typing_extensions.TypeAlias = Spinner
56
+ Global___Spinner: _TypeAlias = Spinner # 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 TextAlignmentConfig(google.protobuf.message.Message):
34
+ @_typing.final
35
+ class TextAlignmentConfig(_message.Message):
36
36
  """Text alignment configuration for text elements"""
37
37
 
38
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
38
+ DESCRIPTOR: _descriptor.Descriptor
39
39
 
40
40
  class _Alignment:
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 _AlignmentEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[TextAlignmentConfig._Alignment.ValueType], builtins.type):
45
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
44
+ class _AlignmentEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[TextAlignmentConfig._Alignment.ValueType], _builtins.type):
45
+ DESCRIPTOR: _descriptor.EnumDescriptor
46
46
  UNSPECIFIED: TextAlignmentConfig._Alignment.ValueType # 0
47
47
  LEFT: TextAlignmentConfig._Alignment.ValueType # 1
48
48
  CENTER: TextAlignmentConfig._Alignment.ValueType # 2
@@ -56,14 +56,14 @@ class TextAlignmentConfig(google.protobuf.message.Message):
56
56
  RIGHT: TextAlignmentConfig.Alignment.ValueType # 3
57
57
  JUSTIFY: TextAlignmentConfig.Alignment.ValueType # 4
58
58
 
59
- ALIGNMENT_FIELD_NUMBER: builtins.int
59
+ ALIGNMENT_FIELD_NUMBER: _builtins.int
60
60
  alignment: Global___TextAlignmentConfig.Alignment.ValueType
61
61
  def __init__(
62
62
  self,
63
63
  *,
64
64
  alignment: Global___TextAlignmentConfig.Alignment.ValueType = ...,
65
65
  ) -> None: ...
66
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["alignment", b"alignment"]
66
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["alignment", b"alignment"] # noqa: Y015
67
67
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
68
68
 
69
- Global___TextAlignmentConfig: typing_extensions.TypeAlias = TextAlignmentConfig
69
+ Global___TextAlignmentConfig: _TypeAlias = TextAlignmentConfig # noqa: Y015
@@ -17,77 +17,90 @@ 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.LabelVisibilityMessage_pb2
20
+ from google.protobuf import descriptor as _descriptor
21
+ from google.protobuf import message as _message
22
+ from streamlit.proto import LabelVisibilityMessage_pb2 as _LabelVisibilityMessage_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
+ if sys.version_info >= (3, 13):
33
+ from warnings import deprecated as _deprecated
34
+ else:
35
+ from typing_extensions import deprecated as _deprecated
36
+
37
+ DESCRIPTOR: _descriptor.FileDescriptor
38
+
39
+ @_typing.final
40
+ class TextArea(_message.Message):
41
+ DESCRIPTOR: _descriptor.Descriptor
42
+
43
+ ID_FIELD_NUMBER: _builtins.int
44
+ LABEL_FIELD_NUMBER: _builtins.int
45
+ DEFAULT_FIELD_NUMBER: _builtins.int
46
+ HEIGHT_FIELD_NUMBER: _builtins.int
47
+ MAX_CHARS_FIELD_NUMBER: _builtins.int
48
+ HELP_FIELD_NUMBER: _builtins.int
49
+ FORM_ID_FIELD_NUMBER: _builtins.int
50
+ VALUE_FIELD_NUMBER: _builtins.int
51
+ SET_VALUE_FIELD_NUMBER: _builtins.int
52
+ PLACEHOLDER_FIELD_NUMBER: _builtins.int
53
+ DISABLED_FIELD_NUMBER: _builtins.int
54
+ LABEL_VISIBILITY_FIELD_NUMBER: _builtins.int
55
+ id: _builtins.str
56
+ label: _builtins.str
57
+ default: _builtins.str
58
+ @_builtins.property
59
+ @_deprecated("""This field has been marked as deprecated using proto field options.""")
60
+ def height(self) -> _builtins.int:
61
+ """deprecated. Use heightConfig on Element.proto."""
33
62
 
34
- @typing.final
35
- class TextArea(google.protobuf.message.Message):
36
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
63
+ @height.setter
64
+ @_deprecated("""This field has been marked as deprecated using proto field options.""")
65
+ def height(self, value: _builtins.int) -> None:
66
+ """deprecated. Use heightConfig on Element.proto."""
37
67
 
38
- ID_FIELD_NUMBER: builtins.int
39
- LABEL_FIELD_NUMBER: builtins.int
40
- DEFAULT_FIELD_NUMBER: builtins.int
41
- HEIGHT_FIELD_NUMBER: builtins.int
42
- MAX_CHARS_FIELD_NUMBER: builtins.int
43
- HELP_FIELD_NUMBER: builtins.int
44
- FORM_ID_FIELD_NUMBER: builtins.int
45
- VALUE_FIELD_NUMBER: builtins.int
46
- SET_VALUE_FIELD_NUMBER: builtins.int
47
- PLACEHOLDER_FIELD_NUMBER: builtins.int
48
- DISABLED_FIELD_NUMBER: builtins.int
49
- LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
50
- id: builtins.str
51
- label: builtins.str
52
- default: builtins.str
53
- height: builtins.int
54
- """deprecated. Use heightConfig on Element.proto."""
55
- max_chars: builtins.int
56
- help: builtins.str
57
- form_id: builtins.str
58
- value: builtins.str
59
- set_value: builtins.bool
60
- placeholder: builtins.str
61
- disabled: builtins.bool
62
- @property
63
- def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
68
+ max_chars: _builtins.int
69
+ help: _builtins.str
70
+ form_id: _builtins.str
71
+ value: _builtins.str
72
+ set_value: _builtins.bool
73
+ placeholder: _builtins.str
74
+ disabled: _builtins.bool
75
+ @_builtins.property
76
+ def label_visibility(self) -> _LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
64
77
  def __init__(
65
78
  self,
66
79
  *,
67
- id: builtins.str = ...,
68
- label: builtins.str = ...,
69
- default: builtins.str | None = ...,
70
- height: builtins.int = ...,
71
- max_chars: builtins.int = ...,
72
- help: builtins.str = ...,
73
- form_id: builtins.str = ...,
74
- value: builtins.str | None = ...,
75
- set_value: builtins.bool = ...,
76
- placeholder: builtins.str = ...,
77
- disabled: builtins.bool = ...,
78
- label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
80
+ id: _builtins.str = ...,
81
+ label: _builtins.str = ...,
82
+ default: _builtins.str | None = ...,
83
+ height: _builtins.int = ...,
84
+ max_chars: _builtins.int = ...,
85
+ help: _builtins.str = ...,
86
+ form_id: _builtins.str = ...,
87
+ value: _builtins.str | None = ...,
88
+ set_value: _builtins.bool = ...,
89
+ placeholder: _builtins.str = ...,
90
+ disabled: _builtins.bool = ...,
91
+ label_visibility: _LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
79
92
  ) -> None: ...
80
- _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_default", b"_default", "_value", b"_value", "default", b"default", "label_visibility", b"label_visibility", "value", b"value"]
81
- def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ...
82
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_default", b"_default", "_value", b"_value", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "height", b"height", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "max_chars", b"max_chars", "placeholder", b"placeholder", "set_value", b"set_value", "value", b"value"]
93
+ _HasFieldArgType: _TypeAlias = _typing.Literal["_default", b"_default", "_value", b"_value", "default", b"default", "label_visibility", b"label_visibility", "value", b"value"] # noqa: Y015
94
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
95
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["_default", b"_default", "_value", b"_value", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "height", b"height", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "max_chars", b"max_chars", "placeholder", b"placeholder", "set_value", b"set_value", "value", b"value"] # noqa: Y015
83
96
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
84
- _WhichOneofReturnType__default: typing_extensions.TypeAlias = typing.Literal["default"]
85
- _WhichOneofArgType__default: typing_extensions.TypeAlias = typing.Literal["_default", b"_default"]
86
- _WhichOneofReturnType__value: typing_extensions.TypeAlias = typing.Literal["value"]
87
- _WhichOneofArgType__value: typing_extensions.TypeAlias = typing.Literal["_value", b"_value"]
88
- @typing.overload
97
+ _WhichOneofReturnType__default: _TypeAlias = _typing.Literal["default"] # noqa: Y015
98
+ _WhichOneofArgType__default: _TypeAlias = _typing.Literal["_default", b"_default"] # noqa: Y015
99
+ _WhichOneofReturnType__value: _TypeAlias = _typing.Literal["value"] # noqa: Y015
100
+ _WhichOneofArgType__value: _TypeAlias = _typing.Literal["_value", b"_value"] # noqa: Y015
101
+ @_typing.overload
89
102
  def WhichOneof(self, oneof_group: _WhichOneofArgType__default) -> _WhichOneofReturnType__default | None: ...
90
- @typing.overload
103
+ @_typing.overload
91
104
  def WhichOneof(self, oneof_group: _WhichOneofArgType__value) -> _WhichOneofReturnType__value | None: ...
92
105
 
93
- Global___TextArea: typing_extensions.TypeAlias = TextArea
106
+ Global___TextArea: _TypeAlias = TextArea # noqa: Y015