Skip to content

Improve the experience of using dataclasses and plain functions, add attrs support - #22

Merged
fleonce merged 5 commits into
mainfrom
feat/dataclass-improved-experience
Jul 27, 2026
Merged

Improve the experience of using dataclasses and plain functions, add attrs support#22
fleonce merged 5 commits into
mainfrom
feat/dataclass-improved-experience

Conversation

@fleonce

@fleonce fleonce commented Jul 27, 2026

Copy link
Copy Markdown
Owner

This PR makes the following changes:

  • Adds support for attrs
  • Removes custom parse function support (as this is one of attrs best features [attrs.Converter], etc.)
  • Improve the typing experience, especially for strict functions that do not allow any additional arguments being passed at runtime
  • Improve the CLI experience by passing the annotated type names as a metavar to argparse
  • Rewrites the parsing logic to make argument passing + CLI parsing more robust
  • Fixes some weird issues with kwonly arguments by streamlining the parsing process

@fleonce
fleonce merged commit 4b25818 into main Jul 27, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant