mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Update dj-database-url to 1.2.* (#9355)
This commit is contained in:
committed by
GitHub
parent
956873d0ce
commit
65dae123e5
@@ -1,4 +1,4 @@
|
||||
version = "1.0.*"
|
||||
version = "1.2.*"
|
||||
|
||||
[tool.stubtest]
|
||||
ignore_missing_stub = false
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user