Skip to content

Commit

Permalink
Fix mypy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tleonhardt committed Oct 22, 2024
1 parent 3c99392 commit 45190d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd2/cmd2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2020,7 +2020,8 @@ def _determine_ap_completer_type(parser: argparse.ArgumentParser) -> Type[argpar
:param parser: the parser to examine
:return: type of ArgparseCompleter
"""
completer_type: Optional[Type[argparse_completer.ArgparseCompleter]] = parser.get_ap_completer_type()
Completer = Optional[Type[argparse_completer.ArgparseCompleter]]
completer_type: Completer = parser.get_ap_completer_type() # type: ignore[attr-defined]

if completer_type is None:
completer_type = argparse_completer.DEFAULT_AP_COMPLETER
Expand Down

0 comments on commit 45190d4

Please sign in to comment.