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
It seems that nested models with field of type 'Dict' limits data generation:
Steps to reproduce the issue:
script to reproduce (run with streamlit run)
from typing import (Text, Dict)
from pydantic import BaseModel
import streamlit_pydantic as sp
class first(BaseModel):
item: Dict[Text, int]
class second(BaseModel):
item2: Dict[Text, first]
class third(BaseModel):
item3: Dict[Text, second]
if __name__ == '__main__':
data = sp.pydantic_input(key="test", model=third)
pass
Technical details:
Host Machine OS: windows 10
Browser: any
The text was updated successfully, but these errors were encountered:
Describe the bug:
It seems that nested models with field of type 'Dict' limits data generation:
Steps to reproduce the issue:
script to reproduce (run with
streamlit run
)Technical details:
The text was updated successfully, but these errors were encountered: