]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: avoid using type variables in typevar bounds
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 27 Sep 2022 08:15:21 +0000 (09:15 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 28 Sep 2022 00:44:53 +0000 (01:44 +0100)
commit068c671660ea3b64d26aa05bac182b74a175c0e5
treea1be9711c6d0ae0b26ed44dbd15006b985b9f0e9
parentf7740dacd0c181f57b3962a835b6dcf45f523885
fix: avoid using type variables in typevar bounds

It is not allowed by the specs. Mypy tolerates it, replacing the
argument with Any, according to @erictraut. Pyright reports it as an
error instead.

See #365, microsoft/pyright#3984
psycopg/psycopg/connection.py
psycopg/psycopg/connection_async.py
psycopg/psycopg/copy.py
psycopg/psycopg/cursor.py
psycopg/psycopg/cursor_async.py
psycopg/psycopg/server_cursor.py