Skip to content

Respect TypedDict required fields#24

Merged
alexdrydew merged 1 commit into
mainfrom
do-not-use-non-required-typed-dict-fields
Jun 6, 2026
Merged

Respect TypedDict required fields#24
alexdrydew merged 1 commit into
mainfrom
do-not-use-non-required-typed-dict-fields

Conversation

@alexdrydew

Copy link
Copy Markdown
Owner

Summary

  • preserve TypedDict required/optional key metadata through normalization and Rust type models
  • avoid using non-required TypedDict keys as attribute-source candidates
  • allow TypedDict synthesis to omit unresolved non-required fields
  • add regressions for total=False, NotRequired, Required overrides, and optional synthesis

Checks

  • make fmt-rust-check
  • make ruff
  • make basedpyright
  • make test

@alexdrydew alexdrydew merged commit 7150c8a into main Jun 6, 2026
10 checks passed
@alexdrydew alexdrydew deleted the do-not-use-non-required-typed-dict-fields branch June 6, 2026 19:25
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