Skip to content

Commit

Permalink
Drop dependency on typing_extensions (jazzband#257)
Browse files Browse the repository at this point in the history
Since it was only being used for `TypedDict`, which was added in
Python 3.8 and `dj-database-url` v2.3.0+ only supports Python 3.9+.

See:
https://docs.python.org/3.12/library/typing.html#typing.TypedDict
https://github.com/jazzband/dj-database-url/blob/master/CHANGELOG.md#v230-2024-10-23
  • Loading branch information
edmorley authored Nov 22, 2024
1 parent 0f8cfdf commit 358746c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## Unreleased

* Drop dependency on `typing_extensions`.

## v2.3.0 (2024-10-23)
* Remove Python 3.8 support.
* Remove Django 3 support.
Expand Down
4 changes: 1 addition & 3 deletions dj_database_url/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import logging
import os
import urllib.parse as urlparse
from typing import Any, Dict, Optional, Union

from typing_extensions import TypedDict
from typing import Any, Dict, Optional, TypedDict, Union

DEFAULT_ENV = "DATABASE_URL"

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
long_description=readme,
long_description_content_type="text/x-rst",
packages=["dj_database_url"],
install_requires=["Django>=4.2", "typing_extensions >= 3.10.0.0"],
install_requires=["Django>=4.2"],
include_package_data=True,
package_data={
"dj_database_url": ["py.typed"],
Expand Down

0 comments on commit 358746c

Please sign in to comment.