-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-46482: add a test for typing.Annotation.__new__
#30821
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
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
Conversation
def test_new(self): | ||
with self.assertRaisesRegex( | ||
TypeError, | ||
'Type Annotated cannot be instantiated', |
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.
"Type Annotated" is odd wording, it would be clearer as just "Annotated cannot be instantiated".
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.
I have just copy pasted the existing message. I guess it is out of scope 🙂
Should we open a new issue?
@Fidget-Spinner any chance to get this merged, please? 🙂 |
@sobolevn sorry but I can't, see https://mail.python.org/archives/list/python-dev@python.org/thread/HU2LH5MX44QZXZ36YS4SOG4ZUPT4E7QT/ for the reason :). |
Oh, this is unexpected! Thanks for letting me know 👍 |
typing.Annotation.__new__
typing.Annotation.__new__
typing.Annotation.__new__
typing.Annotation.__new__
Thanks @sobolevn for the PR, and @Fidget-Spinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9, 3.10. |
(cherry picked from commit 4c0612a) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
GH-31044 is a backport of this pull request to the 3.10 branch. |
(cherry picked from commit 4c0612a) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
GH-31045 is a backport of this pull request to the 3.9 branch. |
(cherry picked from commit 4c0612a) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
|
…-30821) (pythonGH-31045) (cherry picked from commit 4c0612a) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Automerge-Triggered-By: GH:Fidget-Spinner
https://bugs.python.org/issue46482
https://bugs.python.org/issue46482