Skip to content

Commit ced8042

Browse files
committed
Added comment.
1 parent 72ca7bd commit ced8042

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cmd2/argparse_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ def get_choices(self) -> Choices:
266266
if TYPE_CHECKING: # pragma: no cover
267267
from .argparse_completer import ArgparseCompleter
268268

269+
# In Python 3.14+, move these definitions outside the TYPE_CHECKING
270+
# block as staticmethod/classmethod become subscriptable at runtime.
269271
_StaticParserFactory = staticmethod[[], "Cmd2ArgumentParser"]
270272
_ClassParserFactory = classmethod[CmdOrSetT, [], "Cmd2ArgumentParser"]
271273
else:

0 commit comments

Comments
 (0)