Skip to content

Commit

Permalink
Merge pull request #47 from edornd/bugfix/41-source-annot
Browse files Browse the repository at this point in the history
Fix settings source type
  • Loading branch information
edornd authored Feb 25, 2024
2 parents 1888275 + 8bfed69 commit dd2d42e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions argdantic/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
from argdantic.parsing import Argument
from argdantic.stores import SettingsStoreCallable

SettingSourceCallable = Callable[[Type[BaseSettings]], PydanticBaseSettingsSource]


class Command:
"""
Expand Down Expand Up @@ -231,8 +233,8 @@ def command(
self,
name: Optional[str] = None,
help: Optional[str] = None,
sources: List[PydanticBaseSettingsSource] = None,
stores: List[SettingsStoreCallable] = None,
sources: Optional[List[SettingSourceCallable]] = None,
stores: Optional[List[SettingsStoreCallable]] = None,
singleton: bool = False,
) -> Callable:
"""Decorator to register a function as a command.
Expand Down

0 comments on commit dd2d42e

Please sign in to comment.