Skip to content

Commit de57dc1

Browse files
committed
Import TypedDict from typing_extensions
1 parent 13ad696 commit de57dc1

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed
Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
from collections.abc import Mapping
2-
from typing import TypedDict
2+
from typing_extensions import TypedDict
33

44
DEFAULT_ENV: str
55
SCHEMES: Mapping[str, str]
66

7-
87
class _DBConfig(TypedDict):
98
NAME: str
109
USER: str
@@ -14,12 +13,7 @@ class _DBConfig(TypedDict):
1413
CONN_MAX_AGE: int
1514
ENGINE: str
1615

17-
18-
def parse(url: str, engine: str | None = ..., conn_max_age: int = ..., ssl_require: bool = ...) -> _DBConfig:
19-
...
20-
21-
16+
def parse(url: str, engine: str | None = ..., conn_max_age: int = ..., ssl_require: bool = ...) -> _DBConfig: ...
2217
def config(
2318
env: str = ..., default: str | None = ..., engine: str | None = ..., conn_max_age: int = ..., ssl_require: bool = ...
24-
) -> _DBConfig:
25-
...
19+
) -> _DBConfig: ...

0 commit comments

Comments
 (0)