lib: Fix misplaced "# export" markers

A couple of "# export" markers after function prototypes have been
pushed along with the closing parenthesis onto the wrong line by the
code formatter, fix that.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-07-24 10:33:42 +02:00
commit dcbe959843
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61
5 changed files with 18 additions and 18 deletions

View file

@ -209,12 +209,12 @@ async def copy(
return e
assert False, 'Unreachable code'
async def get_username(
async def get_username( # export
args: Namespace | None = None,
url: str | None = None,
askpass_env: list[str] = [],
ec: ExecContext | None = None,
) -> str | None: # export
) -> str | None:
url_user = None if url is None else Uri(url).username
if args is not None:
if args.username is not None:
@ -228,12 +228,12 @@ async def get_username(
return url_user
return await run_askpass(askpass_env, AskpassKey.Username, ec = ec)
async def get_password(
async def get_password( # export
args: Namespace | None = None,
url: str | None = None,
askpass_env: list[str] = [],
ec: ExecContext | None = None,
) -> str | None: # export
) -> str | None:
if args is None and url is None and not askpass_env:
raise Exception(
'Neither URL nor command-line arguments nor askpass environment variable '
@ -251,11 +251,11 @@ async def get_password(
return ret
return await run_askpass(askpass_env, AskpassKey.Password, ec = ec)
async def get_profile_env(
async def get_profile_env( # export
throw: bool = True,
keep: Iterable[str] | bool = False,
ec: ExecContext | None = None,
) -> dict[str, str]: # export
) -> dict[str, str]:
"""
Get a fresh environment from /etc/profile