]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix typing generics in PostgreSQL range types. 10625/head
authorJim Bosch <jbosch@astro.princeton.edu>
Mon, 13 Nov 2023 15:26:54 +0000 (10:26 -0500)
committerJim Bosch <jbosch@astro.princeton.edu>
Tue, 14 Nov 2023 18:26:43 +0000 (13:26 -0500)
commit2c17bc5f922a2bdb805a29e458184076ccc08055
treed60af8d290e82f7aa9e600f534c495839d5dad3c
parentca813b33f5447e592eace3117f3521a007f30b60
Fix typing generics in PostgreSQL range types.

AbstractRange is parameterized on the bounds type of the range, not
the range type; this led to e.g. Range[Range[int]] appearing as the
type of some expressions that were actually Range[int].
lib/sqlalchemy/dialects/postgresql/ranges.py
test/typing/plain_files/dialects/postgresql/pg_stuff.py