Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
koldakov committed Jan 7, 2024
1 parent 6ffd8ac commit 22aaeb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from json import loads
from json.decoder import JSONDecodeError
from os import environ
from typing import Dict, List, TypedDict, Unpack
from typing import Dict, List, Type, TypedDict, Unpack

from pydantic import BaseModel

Expand All @@ -15,7 +15,7 @@ class _ExtraSettingArg(TypedDict):


def parse[T](
cast: T,
cast: Type[T],
setting: str,
separator: str,
/,
Expand Down Expand Up @@ -98,7 +98,7 @@ def get_env_var[T](
var: str,
/,
*,
cast: T = str,
cast: Type[T] = str,
separator: str = ",",
required=True,
default: T = None,
Expand Down

0 comments on commit 22aaeb7

Please sign in to comment.