3 ms·
Does that work now? I seem to remember having to use `tags: list[str] = Field(default_factory=list)` a lot
by ohmahjong 4y ago
Does that work now? I seem to remember having to use `tags: list[str] = Field(default_factory=list)` a lot
- kortex 4y agoPydantic, yes, you can just set the default initializer to = [] or = {}. I don't think that works with dataclasses yet.