From e3789ef317a912e8d14a9f55068b3a1ee3ae91c2 Mon Sep 17 00:00:00 2001 From: DG-Elom Date: Wed, 14 Oct 2026 13:45:28 +0200 Subject: [PATCH] Silence new ty 0.0.87 override diagnostics in Cmd2ArgumentParser --- cmd2/argparse_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd2/argparse_utils.py b/cmd2/argparse_utils.py index 9b4488e6b..d7cb8f077 100644 --- a/cmd2/argparse_utils.py +++ b/cmd2/argparse_utils.py @@ -768,9 +768,9 @@ def __init__( self.completer_class = completer_class # To assist type checkers, recast these to reflect our usage of rich-argparse. - self.formatter_class: type[Cmd2HelpFormatter] - self.description: HelpContent | None # type: ignore[assignment] - self.epilog: HelpContent | None # type: ignore[assignment] + self.formatter_class: type[Cmd2HelpFormatter] # ty: ignore[invalid-mutable-override] + self.description: HelpContent | None # type: ignore[assignment] # ty: ignore[invalid-attribute-override] + self.epilog: HelpContent | None # type: ignore[assignment] # ty: ignore[invalid-attribute-override] def print_usage(self, file: IO[str] | None = None) -> None: # type: ignore[override] # ty: ignore[invalid-method-override] """Override to ensure the formatter is aware of the target file."""