-
Notifications
You must be signed in to change notification settings - Fork 0
Add class-based schema notation with full typing support and documentation #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
e206ad4
Initial plan
Copilot cee6458
Add class-based schema notation support with InstanceValidator
Copilot edb2744
Extend class schema: Optional/List/Dict typing support, docs, bug fix
Copilot 686c53e
Address review: implement coerce(), use public API, clean imports, ad…
Copilot 14ef031
Fix Union passthrough/empty class schema/docstring; add 12 regression…
Copilot 9c386d7
TDD: fix _is_class_schema() over-broad detection; document Union Type…
Copilot 66a1b12
TDD cycle 2: fix Union error message, exception chaining, own-dict an…
Copilot 0513245
TDD cycle 3: add PEP 604 union syntax (T | None) support — 13 new tes…
Copilot cefcb54
TDD cycle 4: Python 3.9 compat — module-level _UnionType guard + skip…
Copilot 2417529
TDD cycle 5: Fix _UnionType annotation to Optional[type] (not type | …
Copilot 6e91dd1
Merge main, fix _BASIC_TYPES reuse, sync docs/changelog, and align Sc…
Copilot d245ce0
Merge latest main docs updates and re-sync class-schema documentation
Copilot 66959a2
Resolve latest PR conflicts and preserve class-schema docs
Copilot e679669
Resolve latest main conflicts and re-sync docs/runtime
Copilot 21e36f6
Finalize main merge and clarify unsupported union docs
Copilot 78c8c77
Merge origin/main to resolve PR conflicts
Copilot 1197f31
Add class schema examples to example.py and improve docs/index.md
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The README lists
Optional[T] / Union[T, None]as supported, but it doesn’t mention that non-optionalUnion[T1, T2, ...]annotations now raiseTypeError. Adding a short note/row about unsupported non-optional unions (and the recommended alternatives) would prevent surprises for users.