Skip to content

Commit 0395bba

Browse files
Mike ProsserMike Prosser
authored andcommitted
cleanup
1 parent cb4a743 commit 0395bba

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/nipanel/_panel_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def get_value(self, panel_id: str, value_id: str) -> tuple[bool, object]:
124124
value_id: The ID of the control.
125125
126126
Returns:
127-
The value.
127+
The value, and a boolean indicating if the value was found.
128128
"""
129129
get_value_request = GetValueRequest(panel_id=panel_id, value_id=value_id)
130130
response = self._invoke_with_retry(self._get_stub().GetValue, get_value_request)

src/nipanel/controls/_flag_checkboxes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ def flag_checkboxes(
4040
if not issubclass(flag_type, Flag):
4141
raise TypeError(f"Expected a Flag enum type, got {type(value)}")
4242

43-
st.write(label + ":")
43+
st.markdown(f"<small>{label}:</small>", unsafe_allow_html=True)
4444

4545
# Get all individual flag values (skip composite values and zero value)
4646
flag_values = [
4747
flag for flag in flag_type if flag.value & (flag.value - 1) == 0 and flag.value != 0
4848
]
4949

5050
# Create a container for flag checkboxes
51-
flag_container = st.container()
51+
flag_container = st.container(border=True)
5252
selected_flags = flag_type(0) # Start with no flags
5353

5454
# If default value is set, use it as the initial state

tests/unit/test_streamlit_panel_value_accessor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ def test___set_value_if_changed___different_value_ids___tracks_separately(
4444
fake_panel_channel: grpc.Channel,
4545
) -> None:
4646
accessor = StreamlitPanelValueAccessor("panel_id", grpc_channel=fake_panel_channel)
47-
4847
accessor.set_value_if_changed("id1", "value1")
4948
accessor.set_value_if_changed("id2", "value2")
5049

0 commit comments

Comments
 (0)