We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_read_password_from_pgpass
1 parent 8dd1a76 commit 6e15f46Copy full SHA for 6e15f46
asyncpg/connect_utils.py
@@ -130,11 +130,13 @@ def _read_password_file(passfile: pathlib.Path) \
130
131
132
def _read_password_from_pgpass(
133
- *, passfile: typing.Optional[pathlib.Path],
134
- hosts: typing.List[str],
135
- ports: typing.List[int],
136
- database: str,
137
- user: str):
+ *,
+ passfile: pathlib.Path,
+ hosts: "Sequence[str]",
+ ports: typing.List[int],
+ database: str,
138
+ user: str
139
+) -> typing.Optional[str]:
140
"""Parse the pgpass file and return the matching password.
141
142
:return:
0 commit comments