Remove deprecated json_encoders key from model_config

This commit is contained in:
Matthias 2023-11-12 19:31:26 +01:00
parent af3e42f59d
commit 23efa4c9c3

View File

@ -499,11 +499,6 @@ class PairHistory(BaseModel):
data_start: str
data_stop: str
data_stop_ts: int
# TODO[pydantic]: The following keys were removed: `json_encoders`.
# Check https://docs.pydantic.dev/dev-v2/migration/#changes-to-config for more information.
model_config = ConfigDict(json_encoders={
datetime: lambda v: v.strftime(DATETIME_PRINT_FORMAT),
})
class BacktestFreqAIInputs(BaseModel):