diff --git a/stubs/dj-database-url/METADATA.toml b/stubs/dj-database-url/METADATA.toml index 516f11f6b..8d199dc3b 100644 --- a/stubs/dj-database-url/METADATA.toml +++ b/stubs/dj-database-url/METADATA.toml @@ -1,4 +1,4 @@ -version = "1.0.*" +version = "1.2.*" [tool.stubtest] ignore_missing_stub = false diff --git a/stubs/dj-database-url/dj_database_url.pyi b/stubs/dj-database-url/dj_database_url.pyi index 5a39aa933..c0d3f5672 100644 --- a/stubs/dj-database-url/dj_database_url.pyi +++ b/stubs/dj-database-url/dj_database_url.pyi @@ -1,7 +1,7 @@ +from _typeshed import Incomplete from typing import Any from typing_extensions import TypedDict -DJANGO_VERSION: tuple[str | int, ...] | None # None if django is not installed DEFAULT_ENV: str SCHEMES: dict[str, str] @@ -21,7 +21,20 @@ class _DBConfig(TypedDict, total=False): TIME_ZONE: str USER: str -def parse(url: str, engine: str | None = ..., conn_max_age: int = ..., ssl_require: bool = ...) -> _DBConfig: ... -def config( - env: str = ..., default: str | None = ..., engine: str | None = ..., conn_max_age: int = ..., ssl_require: bool = ... +def parse( + url: str, + engine: str | None = ..., + conn_max_age: int = ..., + conn_health_checks: bool = ..., + ssl_require: bool = ..., + test_options: dict[Incomplete, Incomplete] | None = ..., +) -> _DBConfig: ... +def config( + env: str = ..., + default: str | None = ..., + engine: str | None = ..., + conn_max_age: int = ..., + conn_health_checks: bool = ..., + ssl_require: bool = ..., + test_options: dict[Incomplete, Incomplete] | None = ..., ) -> _DBConfig: ...