Skip to content

Commit

Permalink
Import __future__ and unstringify annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielNoord committed Oct 24, 2024
1 parent 76105cc commit 6905497
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion asyncpg/connect_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# This module is part of asyncpg and is released under
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0

from __future__ import annotations

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

0 comments on commit 6905497

Please sign in to comment.