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,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 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
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
+ import builtins as _builtins
26
26
  import sys
27
- import typing
27
+ import typing as _typing
28
28
 
29
29
  if sys.version_info >= (3, 10):
30
- import typing as typing_extensions
30
+ from typing import TypeAlias as _TypeAlias
31
31
  else:
32
- import typing_extensions
32
+ from typing_extensions import TypeAlias as _TypeAlias
33
33
 
34
- DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
34
+ DESCRIPTOR: _descriptor.FileDescriptor
35
35
 
36
- @typing.final
37
- class GitInfo(google.protobuf.message.Message):
36
+ @_typing.final
37
+ class GitInfo(_message.Message):
38
38
  """Message used to update page metadata."""
39
39
 
40
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
40
+ DESCRIPTOR: _descriptor.Descriptor
41
41
 
42
42
  class _GitStates:
43
- ValueType = typing.NewType("ValueType", builtins.int)
44
- V: typing_extensions.TypeAlias = ValueType
43
+ ValueType = _typing.NewType("ValueType", _builtins.int)
44
+ V: _TypeAlias = ValueType # noqa: Y015
45
45
 
46
- class _GitStatesEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[GitInfo._GitStates.ValueType], builtins.type):
47
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
46
+ class _GitStatesEnumTypeWrapper(_enum_type_wrapper._EnumTypeWrapper[GitInfo._GitStates.ValueType], _builtins.type):
47
+ DESCRIPTOR: _descriptor.EnumDescriptor
48
48
  DEFAULT: GitInfo._GitStates.ValueType # 0
49
49
  HEAD_DETACHED: GitInfo._GitStates.ValueType # 1
50
50
  AHEAD_OF_REMOTE: GitInfo._GitStates.ValueType # 2
@@ -54,31 +54,31 @@ class GitInfo(google.protobuf.message.Message):
54
54
  HEAD_DETACHED: GitInfo.GitStates.ValueType # 1
55
55
  AHEAD_OF_REMOTE: GitInfo.GitStates.ValueType # 2
56
56
 
57
- REPOSITORY_FIELD_NUMBER: builtins.int
58
- BRANCH_FIELD_NUMBER: builtins.int
59
- MODULE_FIELD_NUMBER: builtins.int
60
- UNTRACKED_FILES_FIELD_NUMBER: builtins.int
61
- UNCOMMITTED_FILES_FIELD_NUMBER: builtins.int
62
- STATE_FIELD_NUMBER: builtins.int
63
- repository: builtins.str
64
- branch: builtins.str
65
- module: builtins.str
57
+ REPOSITORY_FIELD_NUMBER: _builtins.int
58
+ BRANCH_FIELD_NUMBER: _builtins.int
59
+ MODULE_FIELD_NUMBER: _builtins.int
60
+ UNTRACKED_FILES_FIELD_NUMBER: _builtins.int
61
+ UNCOMMITTED_FILES_FIELD_NUMBER: _builtins.int
62
+ STATE_FIELD_NUMBER: _builtins.int
63
+ repository: _builtins.str
64
+ branch: _builtins.str
65
+ module: _builtins.str
66
66
  state: Global___GitInfo.GitStates.ValueType
67
- @property
68
- def untracked_files(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
69
- @property
70
- def uncommitted_files(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
67
+ @_builtins.property
68
+ def untracked_files(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
69
+ @_builtins.property
70
+ def uncommitted_files(self) -> _containers.RepeatedScalarFieldContainer[_builtins.str]: ...
71
71
  def __init__(
72
72
  self,
73
73
  *,
74
- repository: builtins.str = ...,
75
- branch: builtins.str = ...,
76
- module: builtins.str = ...,
77
- untracked_files: collections.abc.Iterable[builtins.str] | None = ...,
78
- uncommitted_files: collections.abc.Iterable[builtins.str] | None = ...,
74
+ repository: _builtins.str = ...,
75
+ branch: _builtins.str = ...,
76
+ module: _builtins.str = ...,
77
+ untracked_files: _abc.Iterable[_builtins.str] | None = ...,
78
+ uncommitted_files: _abc.Iterable[_builtins.str] | None = ...,
79
79
  state: Global___GitInfo.GitStates.ValueType = ...,
80
80
  ) -> None: ...
81
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["branch", b"branch", "module", b"module", "repository", b"repository", "state", b"state", "uncommitted_files", b"uncommitted_files", "untracked_files", b"untracked_files"]
81
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["branch", b"branch", "module", b"module", "repository", b"repository", "state", b"state", "uncommitted_files", b"uncommitted_files", "untracked_files", b"untracked_files"] # noqa: Y015
82
82
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
83
83
 
84
- Global___GitInfo: typing_extensions.TypeAlias = GitInfo
84
+ Global___GitInfo: _TypeAlias = GitInfo # noqa: Y015
@@ -17,44 +17,57 @@ 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
+ if sys.version_info >= (3, 13):
32
+ from warnings import deprecated as _deprecated
33
+ else:
34
+ from typing_extensions import deprecated as _deprecated
35
+
36
+ DESCRIPTOR: _descriptor.FileDescriptor
32
37
 
33
- @typing.final
34
- class GraphVizChart(google.protobuf.message.Message):
35
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
38
+ @_typing.final
39
+ class GraphVizChart(_message.Message):
40
+ DESCRIPTOR: _descriptor.Descriptor
36
41
 
37
- SPEC_FIELD_NUMBER: builtins.int
38
- USE_CONTAINER_WIDTH_FIELD_NUMBER: builtins.int
39
- ELEMENT_ID_FIELD_NUMBER: builtins.int
40
- ENGINE_FIELD_NUMBER: builtins.int
41
- spec: builtins.str
42
+ SPEC_FIELD_NUMBER: _builtins.int
43
+ USE_CONTAINER_WIDTH_FIELD_NUMBER: _builtins.int
44
+ ELEMENT_ID_FIELD_NUMBER: _builtins.int
45
+ ENGINE_FIELD_NUMBER: _builtins.int
46
+ spec: _builtins.str
42
47
  """A specification of the GraphViz graph in the "Dot" language."""
43
- use_container_width: builtins.bool
44
- """DEPRECATED: We use widthConfig on Element.proto"""
45
- element_id: builtins.str
48
+ @_builtins.property
49
+ @_deprecated("""This field has been marked as deprecated using proto field options.""")
50
+ def use_container_width(self) -> _builtins.bool:
51
+ """DEPRECATED: We use widthConfig on Element.proto"""
52
+
53
+ @use_container_width.setter
54
+ @_deprecated("""This field has been marked as deprecated using proto field options.""")
55
+ def use_container_width(self, value: _builtins.bool) -> None:
56
+ """DEPRECATED: We use widthConfig on Element.proto"""
57
+
58
+ element_id: _builtins.str
46
59
  """A unique ID of this element."""
47
- engine: builtins.str
60
+ engine: _builtins.str
48
61
  """The engine used to layout and render the graph."""
49
62
  def __init__(
50
63
  self,
51
64
  *,
52
- spec: builtins.str = ...,
53
- use_container_width: builtins.bool = ...,
54
- element_id: builtins.str = ...,
55
- engine: builtins.str = ...,
65
+ spec: _builtins.str = ...,
66
+ use_container_width: _builtins.bool = ...,
67
+ element_id: _builtins.str = ...,
68
+ engine: _builtins.str = ...,
56
69
  ) -> None: ...
57
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["element_id", b"element_id", "engine", b"engine", "spec", b"spec", "use_container_width", b"use_container_width"]
70
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["element_id", b"element_id", "engine", b"engine", "spec", b"spec", "use_container_width", b"use_container_width"] # noqa: Y015
58
71
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
59
72
 
60
- Global___GraphVizChart: typing_extensions.TypeAlias = GraphVizChart
73
+ Global___GraphVizChart: _TypeAlias = GraphVizChart # noqa: Y015
@@ -17,47 +17,47 @@ 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 Heading(google.protobuf.message.Message):
35
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
33
+ @_typing.final
34
+ class Heading(_message.Message):
35
+ DESCRIPTOR: _descriptor.Descriptor
36
36
 
37
- TAG_FIELD_NUMBER: builtins.int
38
- ANCHOR_FIELD_NUMBER: builtins.int
39
- BODY_FIELD_NUMBER: builtins.int
40
- HELP_FIELD_NUMBER: builtins.int
41
- HIDE_ANCHOR_FIELD_NUMBER: builtins.int
42
- DIVIDER_FIELD_NUMBER: builtins.int
43
- tag: builtins.str
37
+ TAG_FIELD_NUMBER: _builtins.int
38
+ ANCHOR_FIELD_NUMBER: _builtins.int
39
+ BODY_FIELD_NUMBER: _builtins.int
40
+ HELP_FIELD_NUMBER: _builtins.int
41
+ HIDE_ANCHOR_FIELD_NUMBER: _builtins.int
42
+ DIVIDER_FIELD_NUMBER: _builtins.int
43
+ tag: _builtins.str
44
44
  """h1, h2, h3, div, etc"""
45
- anchor: builtins.str
46
- body: builtins.str
47
- help: builtins.str
48
- hide_anchor: builtins.bool
49
- divider: builtins.str
45
+ anchor: _builtins.str
46
+ body: _builtins.str
47
+ help: _builtins.str
48
+ hide_anchor: _builtins.bool
49
+ divider: _builtins.str
50
50
  def __init__(
51
51
  self,
52
52
  *,
53
- tag: builtins.str = ...,
54
- anchor: builtins.str = ...,
55
- body: builtins.str = ...,
56
- help: builtins.str = ...,
57
- hide_anchor: builtins.bool = ...,
58
- divider: builtins.str = ...,
53
+ tag: _builtins.str = ...,
54
+ anchor: _builtins.str = ...,
55
+ body: _builtins.str = ...,
56
+ help: _builtins.str = ...,
57
+ hide_anchor: _builtins.bool = ...,
58
+ divider: _builtins.str = ...,
59
59
  ) -> None: ...
60
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["anchor", b"anchor", "body", b"body", "divider", b"divider", "help", b"help", "hide_anchor", b"hide_anchor", "tag", b"tag"]
60
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["anchor", b"anchor", "body", b"body", "divider", b"divider", "help", b"help", "hide_anchor", b"hide_anchor", "tag", b"tag"] # noqa: Y015
61
61
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
62
62
 
63
- Global___Heading: typing_extensions.TypeAlias = Heading
63
+ Global___Heading: _TypeAlias = Heading # 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 HeightConfig(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_HEIGHT_FIELD_NUMBER: builtins.int
40
- REM_HEIGHT_FIELD_NUMBER: builtins.int
41
- use_stretch: builtins.bool
42
- use_content: builtins.bool
43
- pixel_height: builtins.int
44
- rem_height: builtins.float
29
+ from typing_extensions import TypeAlias as _TypeAlias
30
+
31
+ DESCRIPTOR: _descriptor.FileDescriptor
32
+
33
+ @_typing.final
34
+ class HeightConfig(_message.Message):
35
+ DESCRIPTOR: _descriptor.Descriptor
36
+
37
+ USE_STRETCH_FIELD_NUMBER: _builtins.int
38
+ USE_CONTENT_FIELD_NUMBER: _builtins.int
39
+ PIXEL_HEIGHT_FIELD_NUMBER: _builtins.int
40
+ REM_HEIGHT_FIELD_NUMBER: _builtins.int
41
+ use_stretch: _builtins.bool
42
+ use_content: _builtins.bool
43
+ pixel_height: _builtins.int
44
+ rem_height: _builtins.float
45
45
  def __init__(
46
46
  self,
47
47
  *,
48
- use_stretch: builtins.bool = ...,
49
- use_content: builtins.bool = ...,
50
- pixel_height: builtins.int = ...,
51
- rem_height: builtins.float = ...,
48
+ use_stretch: _builtins.bool = ...,
49
+ use_content: _builtins.bool = ...,
50
+ pixel_height: _builtins.int = ...,
51
+ rem_height: _builtins.float = ...,
52
52
  ) -> None: ...
53
- _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["height_spec", b"height_spec", "pixel_height", b"pixel_height", "rem_height", b"rem_height", "use_content", b"use_content", "use_stretch", b"use_stretch"]
54
- def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ...
55
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["height_spec", b"height_spec", "pixel_height", b"pixel_height", "rem_height", b"rem_height", "use_content", b"use_content", "use_stretch", b"use_stretch"]
53
+ _HasFieldArgType: _TypeAlias = _typing.Literal["height_spec", b"height_spec", "pixel_height", b"pixel_height", "rem_height", b"rem_height", "use_content", b"use_content", "use_stretch", b"use_stretch"] # noqa: Y015
54
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
55
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["height_spec", b"height_spec", "pixel_height", b"pixel_height", "rem_height", b"rem_height", "use_content", b"use_content", "use_stretch", b"use_stretch"] # noqa: Y015
56
56
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
57
- _WhichOneofReturnType_height_spec: typing_extensions.TypeAlias = typing.Literal["use_stretch", "use_content", "pixel_height", "rem_height"]
58
- _WhichOneofArgType_height_spec: typing_extensions.TypeAlias = typing.Literal["height_spec", b"height_spec"]
57
+ _WhichOneofReturnType_height_spec: _TypeAlias = _typing.Literal["use_stretch", "use_content", "pixel_height", "rem_height"] # noqa: Y015
58
+ _WhichOneofArgType_height_spec: _TypeAlias = _typing.Literal["height_spec", b"height_spec"] # noqa: Y015
59
59
  def WhichOneof(self, oneof_group: _WhichOneofArgType_height_spec) -> _WhichOneofReturnType_height_spec | None: ...
60
60
 
61
- Global___HeightConfig: typing_extensions.TypeAlias = HeightConfig
61
+ Global___HeightConfig: _TypeAlias = HeightConfig # noqa: Y015
@@ -17,36 +17,36 @@ 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 Html(google.protobuf.message.Message):
33
+ @_typing.final
34
+ class Html(_message.Message):
35
35
  """st.html"""
36
36
 
37
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
37
+ DESCRIPTOR: _descriptor.Descriptor
38
38
 
39
- BODY_FIELD_NUMBER: builtins.int
40
- UNSAFE_ALLOW_JAVASCRIPT_FIELD_NUMBER: builtins.int
41
- body: builtins.str
42
- unsafe_allow_javascript: builtins.bool
39
+ BODY_FIELD_NUMBER: _builtins.int
40
+ UNSAFE_ALLOW_JAVASCRIPT_FIELD_NUMBER: _builtins.int
41
+ body: _builtins.str
42
+ unsafe_allow_javascript: _builtins.bool
43
43
  def __init__(
44
44
  self,
45
45
  *,
46
- body: builtins.str = ...,
47
- unsafe_allow_javascript: builtins.bool = ...,
46
+ body: _builtins.str = ...,
47
+ unsafe_allow_javascript: _builtins.bool = ...,
48
48
  ) -> None: ...
49
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["body", b"body", "unsafe_allow_javascript", b"unsafe_allow_javascript"]
49
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["body", b"body", "unsafe_allow_javascript", b"unsafe_allow_javascript"] # noqa: Y015
50
50
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
51
51
 
52
- Global___Html: typing_extensions.TypeAlias = Html
52
+ Global___Html: _TypeAlias = Html # noqa: Y015
@@ -17,64 +17,93 @@ 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 IFrame(google.protobuf.message.Message):
35
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
36
-
37
- SRC_FIELD_NUMBER: builtins.int
38
- SRCDOC_FIELD_NUMBER: builtins.int
39
- WIDTH_FIELD_NUMBER: builtins.int
40
- HAS_WIDTH_FIELD_NUMBER: builtins.int
41
- HEIGHT_FIELD_NUMBER: builtins.int
42
- SCROLLING_FIELD_NUMBER: builtins.int
43
- TAB_INDEX_FIELD_NUMBER: builtins.int
44
- src: builtins.str
29
+ from typing_extensions import TypeAlias as _TypeAlias
30
+
31
+ if sys.version_info >= (3, 13):
32
+ from warnings import deprecated as _deprecated
33
+ else:
34
+ from typing_extensions import deprecated as _deprecated
35
+
36
+ DESCRIPTOR: _descriptor.FileDescriptor
37
+
38
+ @_typing.final
39
+ class IFrame(_message.Message):
40
+ DESCRIPTOR: _descriptor.Descriptor
41
+
42
+ SRC_FIELD_NUMBER: _builtins.int
43
+ SRCDOC_FIELD_NUMBER: _builtins.int
44
+ WIDTH_FIELD_NUMBER: _builtins.int
45
+ HAS_WIDTH_FIELD_NUMBER: _builtins.int
46
+ HEIGHT_FIELD_NUMBER: _builtins.int
47
+ SCROLLING_FIELD_NUMBER: _builtins.int
48
+ TAB_INDEX_FIELD_NUMBER: _builtins.int
49
+ src: _builtins.str
45
50
  """A URL to load"""
46
- srcdoc: builtins.str
51
+ srcdoc: _builtins.str
47
52
  """Inline HTML"""
48
- width: builtins.float
49
- """Deprecated: Use width_config on Element.proto instead"""
50
- has_width: builtins.bool
51
- """Deprecated: Width is now handled through width_config on Element.proto"""
52
- height: builtins.float
53
- """Deprecated: Use height_config on Element.proto instead"""
54
- scrolling: builtins.bool
55
- tab_index: builtins.int
53
+ @_builtins.property
54
+ @_deprecated("""This field has been marked as deprecated using proto field options.""")
55
+ def width(self) -> _builtins.float:
56
+ """Deprecated: Use width_config on Element.proto instead"""
57
+
58
+ @width.setter
59
+ @_deprecated("""This field has been marked as deprecated using proto field options.""")
60
+ def width(self, value: _builtins.float) -> None:
61
+ """Deprecated: Use width_config on Element.proto instead"""
62
+
63
+ @_builtins.property
64
+ @_deprecated("""This field has been marked as deprecated using proto field options.""")
65
+ def has_width(self) -> _builtins.bool:
66
+ """Deprecated: Width is now handled through width_config on Element.proto"""
67
+
68
+ @has_width.setter
69
+ @_deprecated("""This field has been marked as deprecated using proto field options.""")
70
+ def has_width(self, value: _builtins.bool) -> None:
71
+ """Deprecated: Width is now handled through width_config on Element.proto"""
72
+
73
+ @_builtins.property
74
+ @_deprecated("""This field has been marked as deprecated using proto field options.""")
75
+ def height(self) -> _builtins.float:
76
+ """Deprecated: Use height_config on Element.proto instead"""
77
+
78
+ @height.setter
79
+ @_deprecated("""This field has been marked as deprecated using proto field options.""")
80
+ def height(self, value: _builtins.float) -> None:
81
+ """Deprecated: Use height_config on Element.proto instead"""
82
+
83
+ scrolling: _builtins.bool
84
+ tab_index: _builtins.int
56
85
  def __init__(
57
86
  self,
58
87
  *,
59
- src: builtins.str = ...,
60
- srcdoc: builtins.str = ...,
61
- width: builtins.float = ...,
62
- has_width: builtins.bool = ...,
63
- height: builtins.float = ...,
64
- scrolling: builtins.bool = ...,
65
- tab_index: builtins.int | None = ...,
88
+ src: _builtins.str = ...,
89
+ srcdoc: _builtins.str = ...,
90
+ width: _builtins.float = ...,
91
+ has_width: _builtins.bool = ...,
92
+ height: _builtins.float = ...,
93
+ scrolling: _builtins.bool = ...,
94
+ tab_index: _builtins.int | None = ...,
66
95
  ) -> None: ...
67
- _HasFieldArgType: typing_extensions.TypeAlias = typing.Literal["_tab_index", b"_tab_index", "src", b"src", "srcdoc", b"srcdoc", "tab_index", b"tab_index", "type", b"type"]
68
- def HasField(self, field_name: _HasFieldArgType) -> builtins.bool: ...
69
- _ClearFieldArgType: typing_extensions.TypeAlias = typing.Literal["_tab_index", b"_tab_index", "has_width", b"has_width", "height", b"height", "scrolling", b"scrolling", "src", b"src", "srcdoc", b"srcdoc", "tab_index", b"tab_index", "type", b"type", "width", b"width"]
96
+ _HasFieldArgType: _TypeAlias = _typing.Literal["_tab_index", b"_tab_index", "src", b"src", "srcdoc", b"srcdoc", "tab_index", b"tab_index", "type", b"type"] # noqa: Y015
97
+ def HasField(self, field_name: _HasFieldArgType) -> _builtins.bool: ...
98
+ _ClearFieldArgType: _TypeAlias = _typing.Literal["_tab_index", b"_tab_index", "has_width", b"has_width", "height", b"height", "scrolling", b"scrolling", "src", b"src", "srcdoc", b"srcdoc", "tab_index", b"tab_index", "type", b"type", "width", b"width"] # noqa: Y015
70
99
  def ClearField(self, field_name: _ClearFieldArgType) -> None: ...
71
- _WhichOneofReturnType__tab_index: typing_extensions.TypeAlias = typing.Literal["tab_index"]
72
- _WhichOneofArgType__tab_index: typing_extensions.TypeAlias = typing.Literal["_tab_index", b"_tab_index"]
73
- _WhichOneofReturnType_type: typing_extensions.TypeAlias = typing.Literal["src", "srcdoc"]
74
- _WhichOneofArgType_type: typing_extensions.TypeAlias = typing.Literal["type", b"type"]
75
- @typing.overload
100
+ _WhichOneofReturnType__tab_index: _TypeAlias = _typing.Literal["tab_index"] # noqa: Y015
101
+ _WhichOneofArgType__tab_index: _TypeAlias = _typing.Literal["_tab_index", b"_tab_index"] # noqa: Y015
102
+ _WhichOneofReturnType_type: _TypeAlias = _typing.Literal["src", "srcdoc"] # noqa: Y015
103
+ _WhichOneofArgType_type: _TypeAlias = _typing.Literal["type", b"type"] # noqa: Y015
104
+ @_typing.overload
76
105
  def WhichOneof(self, oneof_group: _WhichOneofArgType__tab_index) -> _WhichOneofReturnType__tab_index | None: ...
77
- @typing.overload
106
+ @_typing.overload
78
107
  def WhichOneof(self, oneof_group: _WhichOneofArgType_type) -> _WhichOneofReturnType_type | None: ...
79
108
 
80
- Global___IFrame: typing_extensions.TypeAlias = IFrame
109
+ Global___IFrame: _TypeAlias = IFrame # noqa: Y015