Skip to content

Commit c94fb40

Browse files
XF-FWQu4tro
andauthored
dj_database_url: make all keys optional in _DBConfig TypedDict (#7979)
Co-authored-by: Xavier Francisco <[email protected]>
1 parent d4eba8b commit c94fb40

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

stubs/dj-database-url/dj_database_url.pyi

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@ from typing_extensions import TypedDict
44
DEFAULT_ENV: str
55
SCHEMES: dict[str, str]
66

7-
class _DBConfigBase(TypedDict):
7+
class _DBConfig(TypedDict, total=False):
8+
ENGINE: str
89
NAME: str
9-
10-
class _DBConfig(_DBConfigBase, total=False):
1110
USER: str
1211
PASSWORD: str
1312
HOST: str
1413
PORT: str
1514
CONN_MAX_AGE: int
1615
OPTIONS: dict[str, Any]
17-
ENGINE: str
1816

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

0 commit comments

Comments
 (0)