Skip to content

v0.6.1

Choose a tag to compare

@aaronstevenwhite aaronstevenwhite released this 06 May 19:22
· 9 commits to main since this release
2313927

Fixed

  • ModelMeta's @dataclass_transform now declares kw_only_default=True (it previously declared kw_only_default=False). Without this, type checkers in strict mode rejected every subclass that added a non-default field after a parent's default-bearing field with "Fields without default values cannot appear after fields with default values" (reportGeneralTypeIssues). The runtime Model.__init__ already accepted only keyword arguments, so the flag flip just aligns the static contract with the runtime behaviour. The natural shape (Base carries auto-id / timestamps with defaults; Subclass adds domain fields) now passes pyright's strict-mode analysis without per-line suppressions. (#34)

Full changelog: https://github.com/panproto/didactic/blob/main/CHANGELOG.md