You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be possible to flatten the internal annotated calls (either here or in type_lens) such that Annotated[Subcommands[T] | None, ...] is identical to Annotated[T | None, Subcommand()], which it should already be given the native flattening and the fact that Subcommands is already an Annotated under the hood.
The text was updated successfully, but these errors were encountered:
Actually, I think maybe this is a wontfix (at least for now anyways). Subcommands[T | None] is equally viable, and there's a lot of complications around trying to flatten them where python wont.
Discussed in #164
It should be possible to flatten the internal annotated calls (either here or in type_lens) such that
Annotated[Subcommands[T] | None, ...]
is identical toAnnotated[T | None, Subcommand()]
, which it should already be given the native flattening and the fact thatSubcommands
is already an Annotated under the hood.The text was updated successfully, but these errors were encountered: