Skip to content

Commit

Permalink
Refactor config
Browse files Browse the repository at this point in the history
  • Loading branch information
alukach committed Dec 12, 2024
1 parent fa70d68 commit cdd4040
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stac_auth_proxy/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import importlib
from typing import Optional, Sequence, TypeAlias

from pydantic import BaseModel
from pydantic import BaseModel, Field
from pydantic.networks import HttpUrl
from pydantic_settings import BaseSettings, SettingsConfigDict

Expand All @@ -14,8 +14,8 @@ class ClassInput(BaseModel):
"""Input model for dynamically loading a class or function."""

cls: str
args: Optional[Sequence[str]] = []
kwargs: Optional[dict[str, str]] = {}
args: Optional[Sequence[str]] = Field(default_factory=list)
kwargs: Optional[dict[str, str]] = Field(default_factory=dict)

def __call__(self, token_dependency):
"""Dynamically load a class and instantiate it with kwargs."""
Expand Down

0 comments on commit cdd4040

Please sign in to comment.