diff --git a/pyproject.toml b/pyproject.toml index bfbecc18..73b0b128 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,7 +19,7 @@ dependencies = [ "configparser~=5.0.2", "numpy~=1.26.4", "pandas~=2.2.2", - "pydantic~=2.7.1", + "pydantic~=2.8.2", "requests~=2.32.0" ] classifiers = [ diff --git a/requirements.txt b/requirements.txt index 48cd6c73..68d07918 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ configparser~=5.0.2 numpy~=1.26.4 pandas~=2.2.2 pandas-stubs~=2.2.2 -pydantic~=2.7.1 +pydantic~=2.8.2 pytest~=7.2.1 python-dateutil~=2.9.0 requests~=2.32.0 diff --git a/src/antares/craft/model/craft_base_model.py b/src/antares/craft/model/craft_base_model.py index 36d36e0b..21fa907f 100644 --- a/src/antares/craft/model/craft_base_model.py +++ b/src/antares/craft/model/craft_base_model.py @@ -1,8 +1,17 @@ -from pydantic import BaseModel +# Copyright (c) 2024, RTE (https://www.rte-france.com) +# +# See AUTHORS.txt +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# +# SPDX-License-Identifier: MPL-2.0 +# +# This file is part of the Antares project. + +from pydantic import BaseModel, ConfigDict class CraftBaseModel(BaseModel): - pass - # def __init__(self, /, **data: Any): - # super().__init__(**data) - # self.model_dump(warnings=False) + model_config = ConfigDict(arbitrary_types_allowed=True)