FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.10] bpo-46539: Pass status of special typeforms to forward references (GH-30926) by miss-islington · Pull Request #30947 · python/cpython · GitHub

Repository navigation

[3.10] bpo-46539: Pass status of special typeforms to forward references (GH-30926) - #30947

Merged
miss-islington merged 1 commit into
python:3.10from
miss-islington:backport-ced5005-3.10
Jan 27, 2022
Merged

miss-islington merged 1 commit into
python:3.10from
miss-islington:backport-ced5005-3.10

Conversation

miss-islington commented Jan 27, 2022 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

Previously this didn't matter because there weren't any valid code paths
that could trigger a type check with a special form, but after the bug
fix for Annotated wrapping special forms it's now possible to annotate
something like Annotated['ClassVar[int]', (3, 4)]. This change would
also be needed for proposed future changes, such as allowing ClassVar
and Final to nest each other in dataclasses.
(cherry picked from commit ced5005)

Co-authored-by: Gregory Beauregard greg@greg.red

https://bugs.python.org/issue46539

…thonGH-30926)

Previously this didn't matter because there weren't any valid code paths
that could trigger a type check with a special form, but after the bug
fix for `Annotated` wrapping special forms it's now possible to annotate
something like `Annotated['ClassVar[int]', (3, 4)]`. This change would
also be needed for proposed future changes, such as allowing `ClassVar`
and `Final` to nest each other in dataclasses.
(cherry picked from commit ced5005)

Co-authored-by: Gregory Beauregard <greg@greg.red>

Copy link
Copy Markdown
Contributor Author

@GBeauregard and @gvanrossum: Status check is done, and it's a success ✅ .

1 similar comment

Copy link
Copy Markdown
Contributor Author

@GBeauregard and @gvanrossum: Status check is done, and it's a success ✅ .

Copy link
Copy Markdown
Contributor Author

@GBeauregard and @gvanrossum: Status check is done, and it's a success ✅ .

miss-islington merged commit bfcb414 into python:3.10 Jan 27, 2022
miss-islington deleted the backport-ced5005-3.10 branch January 27, 2022 16:48
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
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.

6 participants


Back | FazBrowse Home | New Git URL