Closed couling closed 5 months ago
Fixed bug where inheritance of dataclasses was not properly explored.
This should now work as expected:
@dataclass() class Parent: foo: Annotated[int | None, option()] @dataclass class Config(Parent): bar: Annotated[int | None, option()] @click.command() @dataclass_click(Config) def main(*args, **kwargs): results.append((args, kwargs))
Fixed bug where inheritance of dataclasses was not properly explored.
This should now work as expected: