Skip to content
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

Bump dj-database-url to 1.3.* #9975

Merged
merged 5 commits into from
Mar 30, 2023
Merged
Show file tree
Hide file tree
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: 6 additions & 0 deletions stubs/dj-database-url/@tests/stubtest_allowlist.txt
Original file line number Diff line number Diff line change
@@ -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__
2 changes: 1 addition & 1 deletion stubs/dj-database-url/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "1.2.*"
version = "1.3.*"
6 changes: 3 additions & 3 deletions stubs/dj-database-url/dj_database_url.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 = ...,
Expand All @@ -37,4 +37,4 @@ def config(
conn_health_checks: bool = ...,
ssl_require: bool = ...,
test_options: dict[Incomplete, Incomplete] | None = ...,
) -> _DBConfig: ...
) -> DBConfig: ...