github-actions[bot]
2023-03-30 19:23:44 +01:00
committed by GitHub
parent 972958a406
commit a06bf1fe1d
3 changed files with 10 additions and 4 deletions

View File

@@ -0,0 +1,6 @@
# Loop variable that leaks into the global namespace
dj_database_url.key
# Many stubtest false positives for a runtime TypedDict, see https://github.com/python/mypy/issues/14983
dj_database_url.DBConfig
dj_database_url.DBConfig.__new__

View File

@@ -1 +1 @@
version = "1.2.*"
version = "1.3.*"

View File

@@ -6,7 +6,7 @@ DEFAULT_ENV: str
SCHEMES: dict[str, str]
# From https://docs.djangoproject.com/en/4.0/ref/settings/#databases
class _DBConfig(TypedDict, total=False):
class DBConfig(TypedDict, total=False):
ATOMIC_REQUESTS: bool
AUTOCOMMIT: bool
CONN_MAX_AGE: int
@@ -28,7 +28,7 @@ def parse(
conn_health_checks: bool = ...,
ssl_require: bool = ...,
test_options: dict[Incomplete, Incomplete] | None = ...,
) -> _DBConfig: ...
) -> DBConfig: ...
def config(
env: str = ...,
default: str | None = ...,
@@ -37,4 +37,4 @@ def config(
conn_health_checks: bool = ...,
ssl_require: bool = ...,
test_options: dict[Incomplete, Incomplete] | None = ...,
) -> _DBConfig: ...
) -> DBConfig: ...