Closed urscion closed 5 years ago
Thanks for the suggestion.
Given that the new way to define the class is partially self-documented (type and default value), probably it a good idea to leave the type and default value out of the docblock.
The package has the options use_types
and use_defaults
, which can be forced to be false
when generating the docblock.
PEP 557 -- Data Classes introduced data classes (new in Python 3.7), a different way to define a class with type hinting and default parameters.
Add support for properly generating docblocks for classes using the dataclass decorator.