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 33from typing import List
44
55from pydantic import Field
6- from pydantic_settings import SettingsConfigDict , BaseSettings
6+ from pydantic_settings import BaseSettings
77from pymatgen .core import _load_pmg_settings
88
99from mp_api .client import __file__ as root_dir
@@ -26,8 +26,6 @@ class MAPIClientSettings(BaseSettings):
2626 python module.
2727 """
2828
29- model_config = ConfigDict (env_prefix = "MPRESTER_" )
30-
3129 TEST_FILES : str = Field (
3230 os .path .join (os .path .dirname (os .path .abspath (root_dir )), "../../test_files" ),
3331 description = "Directory with test files" ,
@@ -88,4 +86,6 @@ class MAPIClientSettings(BaseSettings):
8886 MAX_LIST_LENGTH : int = Field (
8987 _MAX_LIST_LENGTH , description = "Maximum length of query parameter list"
9088 )
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