mosquito / argclass

A wrapper around the standard argparse module that allows you to describe argument parsers declaratively
Apache License 2.0
12 stars 3 forks source link

Fields with Optional type hint are not working #3

Closed dizballanze closed 2 years ago

dizballanze commented 2 years ago
class MyParser(argclass.Parser):
    dsn: Optional[str]

I'm getting this exception:

AttributeError: Attribute 'dsn' was not parsed

mosquito commented 2 years ago

Fixed in 0.5.0