typing: More fixups for typed cliff, stevedore

Change-Id: Ib2163b0bc35c6ceb1acc4bccf3d29dbf98d1d19b
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2025-11-21 15:40:46 +00:00
parent f4df17ffd6
commit 20eee66381

View File

@@ -154,14 +154,18 @@ def check_valid_authentication_options(
)
_ArgumentParserT = ty.TypeVar(
'_ArgumentParserT', bound=argparse.ArgumentParser
)
def build_auth_plugins_option_parser(
parser: argparse.ArgumentParser,
) -> argparse.ArgumentParser:
parser: _ArgumentParserT,
) -> _ArgumentParserT:
"""Auth plugins options builder
Builds dynamically the list of options expected by each available
authentication plugin.
"""
available_plugins = list(get_plugin_list())
parser.add_argument(