Remove deprecated json_encoders key from model_config
This commit is contained in:
@@ -499,11 +499,6 @@ class PairHistory(BaseModel):
|
|||||||
data_start: str
|
data_start: str
|
||||||
data_stop: str
|
data_stop: str
|
||||||
data_stop_ts: int
|
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):
|
class BacktestFreqAIInputs(BaseModel):
|
||||||
|
|||||||
Reference in New Issue
Block a user