You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have provided sufficient information below to help reproduce this issue.
Summary
In examples in https://st-pydantic.streamlit.app/, one example is Complex Default. When I ran the code in my own system I face the following issue:
The type of the following property is currently not supported: Multi Selection
What must I do?
Reproducible Code Example
fromenumimportEnumfromtypingimportSetimportstreamlitasstfrompydanticimportBaseModel, Fieldimportstreamlit_pydanticasspclassOtherData(BaseModel):
text: strinteger: intclassSelectionValue(str, Enum):
FOO="foo"BAR="bar"classExampleModel(BaseModel):
long_text: str=Field(
..., format="multi-line", description="Unlimited text property"
)
integer_in_range: int=Field(
20,
ge=10,
le=30,
multiple_of=2,
description="Number property with a limited range.",
)
single_selection: SelectionValue=Field(
..., description="Only select a single item from a set."
)
multi_selection: Set[SelectionValue] =Field(
..., description="Allows multiple items from a set."
)
read_only_text: str=Field(
"Lorem ipsum dolor sit amet",
description="This is a ready only text.",
readOnly=True,
)
single_object: OtherData=Field(
...,
description="Another object embedded into this model.",
)
data=sp.pydantic_form(key="my_form", model=ExampleModel)
ifdata:
st.json(data.model_dump_json())
Steps To Reproduce
streamlit run the code
Expected Behavior
ability to select values to create a set
Current Behavior
The type of the following property is currently not supported: Multi Selection
Checklist
Summary
In examples in https://st-pydantic.streamlit.app/, one example is
Complex Default
. When I ran the code in my own system I face the following issue:The type of the following property is currently not supported: Multi Selection
What must I do?
Reproducible Code Example
Steps To Reproduce
streamlit run
the code
Expected Behavior
ability to select values to create a set
Current Behavior
Is this a regression?
Debug info
streamlit-pydantic version:
0.6.0
Python version:
3.10.12
pydantic==2.10.5
pydantic-settings==2.7.1
pydantic_core==2.27.2
streamlit-pydantic==0.6.0
Additional Information
Thank you in advance
The text was updated successfully, but these errors were encountered: