updating confz dependency

This commit is contained in:
Mose Müller
2023-08-02 12:06:23 +02:00
parent 7143ab96db
commit 29ce850775
3 changed files with 141 additions and 50 deletions

View File

@@ -1,9 +1,9 @@
from typing import Literal
from confz import ConfZ, ConfZEnvSource
from confz import BaseConfig, EnvSource
class OperationMode(ConfZ): # type: ignore
class OperationMode(BaseConfig): # type: ignore
environment: Literal["development"] | Literal["production"] = "production"
CONFIG_SOURCES = ConfZEnvSource(allow=["ENVIRONMENT"])
CONFIG_SOURCES = EnvSource(allow=["ENVIRONMENT"])