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 4ba71c8 commit 294e6bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions asyncpg/connect_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,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 @@ -130,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 @@ -167,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 294e6bc

Please sign in to comment.