Skip to content

Fix dj_database_url required key #7979

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions stubs/dj-database-url/dj_database_url.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ from typing_extensions import TypedDict
DEFAULT_ENV: str
SCHEMES: dict[str, str]

class _DBConfigBase(TypedDict):
class _DBConfig(TypedDict, total=False):
ENGINE: str
NAME: str

class _DBConfig(_DBConfigBase, total=False):
USER: str
PASSWORD: str
HOST: str
PORT: str
CONN_MAX_AGE: int
OPTIONS: dict[str, Any]
ENGINE: str

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