Skip to content

Commit 65dae12

Browse files
Update dj-database-url to 1.2.* (#9355)
1 parent 956873d commit 65dae12

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

stubs/dj-database-url/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "1.0.*"
1+
version = "1.2.*"
22

33
[tool.stubtest]
44
ignore_missing_stub = false

stubs/dj-database-url/dj_database_url.pyi

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
from _typeshed import Incomplete
12
from typing import Any
23
from typing_extensions import TypedDict
34

4-
DJANGO_VERSION: tuple[str | int, ...] | None # None if django is not installed
55
DEFAULT_ENV: str
66
SCHEMES: dict[str, str]
77

@@ -21,7 +21,20 @@ class _DBConfig(TypedDict, total=False):
2121
TIME_ZONE: str
2222
USER: str
2323

24-
def parse(url: str, engine: str | None = ..., conn_max_age: int = ..., ssl_require: bool = ...) -> _DBConfig: ...
24+
def parse(
25+
url: str,
26+
engine: str | None = ...,
27+
conn_max_age: int = ...,
28+
conn_health_checks: bool = ...,
29+
ssl_require: bool = ...,
30+
test_options: dict[Incomplete, Incomplete] | None = ...,
31+
) -> _DBConfig: ...
2532
def config(
26-
env: str = ..., default: str | None = ..., engine: str | None = ..., conn_max_age: int = ..., ssl_require: bool = ...
33+
env: str = ...,
34+
default: str | None = ...,
35+
engine: str | None = ...,
36+
conn_max_age: int = ...,
37+
conn_health_checks: bool = ...,
38+
ssl_require: bool = ...,
39+
test_options: dict[Incomplete, Incomplete] | None = ...,
2740
) -> _DBConfig: ...

0 commit comments

Comments
 (0)