Closed bennuttall closed 1 year ago
I have a big patch in development right now fixing usage. I'll throw this on the heap of things I'm doing.
I assert that the behavior you want here is for an explicit annotation of bool
to behave identically to a default value of True
or False
. (Which means internally we replace it with BooleanOptionConverter
.)
p.s. this is a bug, a quick gander at the code suggests it's supposed to already work that way.
p.p.s. one rarely uses type hints with Appeal, beyond typing.Annotated
or perhaps typing.no_type_check()
. However Appeal does make heavy use of annotations.
Ah, yes.
This example doesn't use type hints:
And the output of
help
works ok:Adding a type hint of
bool
like so:causes a traceback.