update use Field with uniform rule: define default_factory or exclude, use Field

This commit is contained in:
better629 2023-12-21 00:18:09 +08:00
parent 0543c0f76b
commit 24060ea8a6
11 changed files with 27 additions and 27 deletions

View file

@ -30,7 +30,7 @@ class Environment(BaseModel):
roles: dict[str, Role] = Field(default_factory=dict)
members: dict[Role, Set] = Field(default_factory=dict)
history: str = Field(default="") # For debug
history: str = "" # For debug
class Config:
arbitrary_types_allowed = True