From f97fbb4e63bfca3cc8f6fdff87853ca18732985c Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Sat, 30 Sep 2023 00:33:29 +0300 Subject: [PATCH] Remove `dj-database-url` stubs (#10806) --- .../@tests/stubtest_allowlist.txt | 2 - stubs/dj-database-url/METADATA.toml | 3 -- stubs/dj-database-url/dj_database_url.pyi | 40 ------------------- 3 files changed, 45 deletions(-) delete mode 100644 stubs/dj-database-url/@tests/stubtest_allowlist.txt delete mode 100644 stubs/dj-database-url/METADATA.toml delete mode 100644 stubs/dj-database-url/dj_database_url.pyi diff --git a/stubs/dj-database-url/@tests/stubtest_allowlist.txt b/stubs/dj-database-url/@tests/stubtest_allowlist.txt deleted file mode 100644 index 9a3c06c24..000000000 --- a/stubs/dj-database-url/@tests/stubtest_allowlist.txt +++ /dev/null @@ -1,2 +0,0 @@ -# Loop variable that leaks into the global namespace -dj_database_url.key diff --git a/stubs/dj-database-url/METADATA.toml b/stubs/dj-database-url/METADATA.toml deleted file mode 100644 index 7064924e3..000000000 --- a/stubs/dj-database-url/METADATA.toml +++ /dev/null @@ -1,3 +0,0 @@ -version = "1.3.*" -upstream_repository = "https://github.com/jazzband/dj-database-url" -obsolete_since = "2.0.0" # Released on 2023-04-27 diff --git a/stubs/dj-database-url/dj_database_url.pyi b/stubs/dj-database-url/dj_database_url.pyi deleted file mode 100644 index 99e9ef076..000000000 --- a/stubs/dj-database-url/dj_database_url.pyi +++ /dev/null @@ -1,40 +0,0 @@ -from _typeshed import Incomplete -from typing import Any -from typing_extensions import TypedDict - -DEFAULT_ENV: str -SCHEMES: dict[str, str] - -# From https://docs.djangoproject.com/en/4.0/ref/settings/#databases -class DBConfig(TypedDict, total=False): - ATOMIC_REQUESTS: bool - AUTOCOMMIT: bool - CONN_MAX_AGE: int | None - DISABLE_SERVER_SIDE_CURSORS: bool - ENGINE: str - HOST: str - NAME: str - OPTIONS: dict[str, Any] | None - PASSWORD: str - PORT: str - TEST: dict[str, Any] - TIME_ZONE: str - USER: str - -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 | None = ..., - conn_health_checks: bool = ..., - ssl_require: bool = ..., - test_options: dict[Incomplete, Incomplete] | None = ..., -) -> DBConfig: ...