-
Notifications
You must be signed in to change notification settings - Fork 28
Enable py3.14 and deprecate some alias functionality #225
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -41,6 +41,22 @@ by aliasing a union, you change the way it is displayed. | |||||||||||||||||
| Union aliases must be activated explicitly, because the feature | ||||||||||||||||||
| monkeypatches `Union.__str__` and `Union.__repr__`. | ||||||||||||||||||
|
Comment on lines
41
to
42
|
||||||||||||||||||
| Union aliases must be activated explicitly, because the feature | |
| monkeypatches `Union.__str__` and `Union.__repr__`. | |
| On Python 3.13 and earlier, union aliases work by monkeypatching | |
| `typing.Union.__str__` and `typing.Union.__repr__`, and therefore must be | |
| activated explicitly. | |
| On Python 3.14 and later, `typing.Union`'s representation can no longer be | |
| monkeypatched and `activate_union_aliases()` is deprecated; union aliases | |
| instead only affect how Plum formats unions in its own output. |
Copilot
AI
Feb 19, 2026
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 two output lines in this code block have leading whitespace before typing.Union[...] (note the extra space). That will likely cause doctest/sybil output matching to fail and also looks unintentional; remove the leading space(s).
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 matrix
extra-installusespip install ...even though the job environment is managed viauv sync/uv run. Without activating the venv,pipmay install outside the uv environment, so the pre-beartype runs might not actually test against the pre-release beartype. Useuv pip install --upgrade --pre beartype(oruv run python -m pip ...) to ensure the install lands in the environment used by the subsequentuv run pytest.