Skip to content

Commit c5bfa03

Browse files
author
Erik Siebert
committed
Pydantic: upgrading to v2
1 parent e6ee7ce commit c5bfa03

File tree

3 files changed

+146
-54
lines changed

3 files changed

+146
-54
lines changed

fake_charging_station/settings.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from functools import cache
44

5-
from pydantic import BaseSettings
5+
from pydantic_settings import BaseSettings
66

77

88
class Settings(BaseSettings):
@@ -19,13 +19,6 @@ class Settings(BaseSettings):
1919
quick_start_connector: int | None = 1
2020
quick_start_charging: int | None = None
2121

22-
class Config:
23-
"""Settings Config."""
24-
25-
env_nested_delimiter = "__"
26-
allow_mutation = False
27-
frozen = True
28-
2922

3023
@cache
3124
def get_settings() -> Settings:

0 commit comments

Comments
 (0)