swansonk14 / typed-argument-parser

Typed argument parser for Python
MIT License
494 stars 40 forks source link

Add useful type hints to `Tap.add_subparsers` #110

Closed aucampia closed 9 months ago

aucampia commented 1 year ago

Currently, the type signature is just def add_subparsers(self, **kwargs) -> None: and this more or less eliminates all benefits of type hints, and then some. It would be much better if this function actually had accurate type hints.

swansonk14 commented 1 year ago

Hi @aucampia,

Thank you for bringing up this issue! We believe this is similar to https://github.com/swansonk14/typed-argument-parser/issues/69.

Best, Jesse and Kyle