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 0983306 commit ffd8087Copy full SHA for ffd8087
asyncpg/connect_utils.py
@@ -131,11 +131,13 @@ def _read_password_file(passfile: pathlib.Path) \
131
132
133
def _read_password_from_pgpass(
134
- *, passfile: typing.Optional[pathlib.Path],
135
- hosts: typing.List[str],
136
- ports: typing.List[int],
137
- database: str,
138
- user: str):
+ *,
+ passfile: pathlib.Path,
+ hosts: "Sequence[str]",
+ ports: typing.List[int],
+ database: str,
139
+ user: str
140
+) -> typing.Optional[str]:
141
"""Parse the pgpass file and return the matching password.
142
143
:return:
0 commit comments