Skip to content

Commit 6905497

Browse files
committed
Import __future__ and unstringify annotation
1 parent 76105cc commit 6905497

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

asyncpg/connect_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# This module is part of asyncpg and is released under
55
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
66

7+
from __future__ import annotations
78

89
import asyncio
910
import collections
@@ -813,7 +814,7 @@ async def _create_ssl_connection(
813814
# TODO: The return type is a specific combination of subclasses of
814815
# asyncio.protocols.Protocol that we can't express. For now, having the
815816
# return type be dependent on signature of the factory is an improvement
816-
protocol_factory: "Callable[[], _ProctolFactoryR]",
817+
protocol_factory: Callable[[], _ProctolFactoryR],
817818
host: str,
818819
port: int,
819820
*,

0 commit comments

Comments
 (0)