RenaudLN / dash-pydantic-form

MIT License
31 stars 6 forks source link

Log spammed with WARNING statements #18

Closed emilhe closed 4 months ago

emilhe commented 4 months ago

I am getting a lot of WARNING statements in the log. Here is a minimal example,

from dash_pydantic_form import ModelForm
from pydantic import BaseModel, Field

class Bar(BaseModel):
    qualifications: list[str] = Field()

class Foo(BaseModel):
    bars: list[Bar] = Field(default_factory=list)

form = ModelForm(Foo(), aio_id="cv_input", form_id="demo")

that yields the following WARNING in the console,

WARNING:root:The following kwargs were ignored for TextField: {'opened', 'sections', 'fields_repr'}

I am running the latest version as of today (0.3.2).

RenaudLN commented 4 months ago

Thanks for the heads up, updated to a debug log instead in 0.3.3