Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/streamlit/streamlit
/ type
Method
type
lib/streamlit/runtime/stats.py:49–50 ·
view source on GitHub ↗
The OpenMetrics type (e.g. 'gauge', 'counter').
(self)
Source
from the content-addressed store, hash-verified
47
48
@property
49
def
type(self) -> str:
50
""
"The OpenMetrics type (e.g. 'gauge', 'counter')."
""
51
52
@property
53
def
unit(self) -> str:
Callers
15
BaseColorPicker.test.tsx
File · 0.45
Selectbox.test.tsx
File · 0.45
ColorPicker.test.tsx
File · 0.45
ChatInput.test.tsx
File · 0.45
DateTimeInput.test.tsx
File · 0.45
Multiselect.test.tsx
File · 0.45
TextArea.test.tsx
File · 0.45
DateInput.test.tsx
File · 0.45
TextInput.test.tsx
File · 0.45
NumberInput.test.tsx
File · 0.45
Dialog.test.tsx
File · 0.45
useWidgetManagerElementState.test.tsx
File · 0.45
Calls
no outgoing calls
Tested by
15
test_empty_date_input_behaves_correctly
Function · 0.36
test_dynamic_date_input_props
Function · 0.36
test_multiselect_prefix_filter_mode_matches_prefix_only
Function · 0.36
test_multiselect_contains_filter_mode_matches_substrings
Function · 0.36
test_max_characters_enforced
Function · 0.36
test_submit_hover_state_with_input_value
Function · 0.36
test_submit_methods_and_clear_input
Function · 0.36
test_shift_enter_creates_new_line
Function · 0.36
test_grows_shrinks_input_text
Function · 0.36
test_calls_callback_on_submit
Function · 0.36
test_chat_input_adjusts_for_long_placeholder
Function · 0.36
test_dynamic_stacked_layout_transitions
Function · 0.36