Commit graph

17 commits

Author SHA1 Message Date
Aarni Koskela
a87f12185e Enable annotations future; use futuristic annotations 2026-01-08 10:58:17 +00:00
Matt Seymour
84fd0508ff Switch to modern dict type hints for improved readability and consistency. 2025-12-19 13:14:11 +00:00
Matt Seymour
0819957676 Allow conn_max_age to accept None for flexibility in configuration 2025-07-11 17:15:17 +01:00
Ed Morley
ae2fabf95e
Re-drop dependency on typing_extensions (#269)
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

Note: This is a repeat of #257, since that PR was lost as part
of merges that occurred during the release of 3.0.0:
https://github.com/jazzband/dj-database-url/pull/257#issuecomment-3023857093
2025-07-01 18:53:01 +01:00
Matt Seymour
15ac40b0a7
Fix pyright issues 2025-04-30 14:08:18 +01:00
pre-commit-ci[bot]
79d929b4e0 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2025-04-30 12:29:23 +00:00
Matt Seymour
c469885ebf
Merge branch 'master' into master 2025-04-30 13:29:15 +01:00
Ed Morley
358746c41d
Drop dependency on typing_extensions (#257)
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
2024-11-22 12:31:02 +00:00
Tom Parker-Shemilt
99128b507b
Make config test options not unknown types (#252)
* Make config test options not unknown types
* Run pyright as part of tests
2024-10-10 22:45:31 +01:00
Alexander Gerbik
b27bd63e82 Generic backend registration 2024-02-29 14:09:10 +01:00
Gert Burger
bcf163e3ab
Check list of schemes to determine if search_path option should be added (#243) 2024-02-20 00:02:06 +00:00
Tom Parker-Shemilt
d23a2ca4c5
OPTIONS cannot be None given our code (#232)
As per the notes in https://github.com/jazzband/dj-database-url/issues/218
2023-12-09 09:41:09 +00:00
truongvan
0879f127b9
Enhance Query String Parsing for Server-Side Binding in Django 4.2 with psycopg 3.1.8+ Resolves #234 (#235)
* Refactor parsing of query string to handle int, bool, and text types
2023-12-09 09:39:35 +00:00
Fabian Binz
44bfba5fa2
Add disable_server_side_cursors parameter (#231) 2023-11-08 22:21:29 +00:00
Nikita Sobolev
f600d9089b
Do not leak key loop variable into global namespace (#226)
This is a common problem for module level loops / helpers / etc.

`key` is importable name, it is even imported when using `from dj_database_url import *`. This is clearly not what we want.
2023-09-26 18:52:20 +01:00
Enrico Stahn
13be1aa9b9
fix: parse options with numerical values as int (#225)
* fix: parse options with numerical values as int

fixes #222

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-08-15 12:28:05 +01:00
Tom Parker-Shemilt
a7f94c8354
Redo as a package to fix mypy issues (#215)
* Demo the mypy types issue

* Redo as a package

* Update setup.py

---------

Co-authored-by: Matt Seymour <mattaseymour@gmail.com>
2023-04-13 10:59:57 +01:00