Skip to content

Commit

Permalink
Remove stringified annotations after future import
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielNoord committed Oct 29, 2024
1 parent 3007b6c commit dd3b924
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions 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 @@ -59,7 +60,7 @@ class _ConnectionParameters(typing.NamedTuple):
sslmode: SSLMode
ssl_negotiation: SSLNegotiation
server_settings: typing.Optional[typing.Dict[str, str]]
target_session_attrs: "SessionAttribute"
target_session_attrs: SessionAttribute
krbsrvname: typing.Optional[str]
gsslib: str

Expand Down Expand Up @@ -129,7 +130,7 @@ def _read_password_file(passfile: pathlib.Path) \
def _read_password_from_pgpass(
*,
passfile: pathlib.Path,
hosts: "Sequence[str]",
hosts: Sequence[str],
ports: typing.List[int],
database: str,
user: str
Expand Down Expand Up @@ -166,7 +167,7 @@ def _read_password_from_pgpass(


def _validate_port_spec(
hosts: "Sequence[object]", port: typing.Union[int, typing.List[int]]
hosts: Sequence[object], port: typing.Union[int, typing.List[int]]
) -> typing.List[int]:
if isinstance(port, list):
# If there is a list of ports, its length must
Expand Down

0 comments on commit dd3b924

Please sign in to comment.