]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Alias Task to asyncio.Future for python version < 3.8
authorDenis Laxalde <denis.laxalde@dalibo.com>
Tue, 13 Apr 2021 08:06:32 +0000 (10:06 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 16 Apr 2021 11:28:53 +0000 (12:28 +0100)
commite8d8043b60dc736f0d72003a95f51f84d7e63176
tree299db41214c6a603d8e9b4c1e10937d1afb4dc7b
parentf096a5cf8a9c109afcbd2b7fa79fda3ef11a5d79
Alias Task to asyncio.Future for python version < 3.8

This resolves the following mypy error on Python 3.7:

  psycopg3/psycopg3/pool/async_pool.py:72: error: Argument 1 to "append" of "list" has incompatible type "Future[None]"; expected "Task[None]" [arg-type]
psycopg3/psycopg3/pool/async_pool.py
psycopg3/psycopg3/utils/compat.py