We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72ca7bd commit ced8042Copy full SHA for ced8042
1 file changed
cmd2/argparse_utils.py
@@ -266,6 +266,8 @@ def get_choices(self) -> Choices:
266
if TYPE_CHECKING: # pragma: no cover
267
from .argparse_completer import ArgparseCompleter
268
269
+ # In Python 3.14+, move these definitions outside the TYPE_CHECKING
270
+ # block as staticmethod/classmethod become subscriptable at runtime.
271
_StaticParserFactory = staticmethod[[], "Cmd2ArgumentParser"]
272
_ClassParserFactory = classmethod[CmdOrSetT, [], "Cmd2ArgumentParser"]
273
else:
0 commit comments