-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Labels
type:bugSomething isn't workingSomething isn't working
Description
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
)
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
Metadata
Metadata
Assignees
Labels
type:bugSomething isn't workingSomething isn't working