File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
from typing import List
4
4
5
5
from pydantic import Field
6
- from pydantic_settings import SettingsConfigDict , BaseSettings
6
+ from pydantic_settings import BaseSettings
7
7
from pymatgen .core import _load_pmg_settings
8
8
9
9
from mp_api .client import __file__ as root_dir
@@ -26,8 +26,6 @@ class MAPIClientSettings(BaseSettings):
26
26
python module.
27
27
"""
28
28
29
- model_config = ConfigDict (env_prefix = "MPRESTER_" )
30
-
31
29
TEST_FILES : str = Field (
32
30
os .path .join (os .path .dirname (os .path .abspath (root_dir )), "../../test_files" ),
33
31
description = "Directory with test files" ,
@@ -88,4 +86,6 @@ class MAPIClientSettings(BaseSettings):
88
86
MAX_LIST_LENGTH : int = Field (
89
87
_MAX_LIST_LENGTH , description = "Maximum length of query parameter list"
90
88
)
91
- model_config = SettingsConfigDict (env_prefix = "MPRESTER_" )
89
+
90
+ class Config :
91
+ env_prefix = "MPRESTER_"
You can’t perform that action at this time.
0 commit comments