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