Update fail_untyped
flag to work with dataclasses whose arguments are classese with untyped arguments.
#241
Labels
enhancement
New feature or request
馃殌 Feature request
The
fail_untyped
works with classes and nested classes, but id does not work with dataclasses which have class arguments with untyped arguments in their__init__
.Motivation
Dataclasses come handy when we build complex CLI frameworks as it organise the input fields without the need of typing
class_path
andinit_args
. The powerful feature here is to have objects as arguments that could be configured directly from the CLI. However, even though when these objects have arguments that are typed it works great, but the majority of open source doesn't, and thus limits us quite a bit.Here is a snip to reproduce and to make sense of the above, quite complex 馃槄, description:
Command:
mind that when changing
version
toversion: str
, it works as expected.Thank you for you time and for maintaining this great library!
The text was updated successfully, but these errors were encountered: