We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 832ee99 commit ccb5f7aCopy full SHA for ccb5f7a
src/stac_auth_proxy/config.py
@@ -3,7 +3,7 @@
3
import importlib
4
from typing import Optional, Sequence, TypeAlias
5
6
-from pydantic import BaseModel
+from pydantic import BaseModel, Field
7
from pydantic.networks import HttpUrl
8
from pydantic_settings import BaseSettings, SettingsConfigDict
9
@@ -14,8 +14,8 @@ class ClassInput(BaseModel):
14
"""Input model for dynamically loading a class or function."""
15
16
cls: str
17
- args: Optional[Sequence[str]] = []
18
- kwargs: Optional[dict[str, str]] = {}
+ args: Optional[Sequence[str]] = Field(default_factory=list)
+ kwargs: Optional[dict[str, str]] = Field(default_factory=dict)
19
20
def __call__(self, token_dependency):
21
"""Dynamically load a class and instantiate it with kwargs."""
0 commit comments