Skip to content

Commit b447eba

Browse files
committed
Fixes
1 parent de57dc1 commit b447eba

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

stubs/dj-database-url/dj_database_url.pyi

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
from collections.abc import Mapping
2+
from typing import Any
23
from typing_extensions import TypedDict
34

45
DEFAULT_ENV: str
5-
SCHEMES: Mapping[str, str]
6+
SCHEMES: dict[str, str]
67

7-
class _DBConfig(TypedDict):
8+
class _DBConfigBase(TypedDict):
89
NAME: str
10+
11+
class _DBConfig(_DBConfigBase, total=False):
912
USER: str
1013
PASSWORD: str
1114
HOST: str
1215
PORT: str
1316
CONN_MAX_AGE: int
17+
OPTIONS: dict[str, Any]
1418
ENGINE: str
1519

1620
def parse(url: str, engine: str | None = ..., conn_max_age: int = ..., ssl_require: bool = ...) -> _DBConfig: ...

0 commit comments

Comments
 (0)