Skip to content

Commit 0bc42b0

Browse files
authored
Remove dependency on pydantic_settings (#3987)
1 parent 855e96c commit 0bc42b0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ gitpython = "^3.1.18"
4949
packaging = ">=24.1"
5050
psutil = ">=5.0.0"
5151
pydantic = ">=2.0,<=2.11.9"
52-
pydantic-settings = "*"
5352
python = ">=3.9,<3.13"
5453
python-dateutil = "^2.8.1"
5554
pyyaml = ">=6.0.1"

src/zenml/config/resource_settings.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
from enum import Enum
1717
from typing import Optional, Union
1818

19-
from pydantic import Field, NonNegativeInt, PositiveFloat
20-
from pydantic_settings import SettingsConfigDict
19+
from pydantic import ConfigDict, Field, NonNegativeInt, PositiveFloat
2120

2221
from zenml.config.base_settings import BaseSettings
2322

@@ -115,7 +114,7 @@ def get_memory(
115114
# Should never happen due to the regex validation
116115
raise ValueError(f"Unable to parse memory unit from '{memory}'.")
117116

118-
model_config = SettingsConfigDict(
117+
model_config = ConfigDict(
119118
# public attributes are immutable
120119
frozen=True,
121120
# prevent extra attributes during model initialization

0 commit comments

Comments
 (0)