8000 bpo-45283: Run `_type_check` on `get_type_hints()` by sobolevn · Pull Request #28563 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-45283: Run _type_check on get_type_hints() #28563

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

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix test
  • Loading branch information
sobolevn committed Oct 21, 2021
commit 2c4d60e181d7f75c936694e720c5b65d0bedd697
2 changes: 1 addition & 1 deletion Lib/test/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3286,7 +3286,7 @@ class InvalidTupleAnnotation:
with self.assertRaisesRegex(
TypeError,
re.escape(
'get_type_hint() got invalid type annotation. Got (1, 2).',
'get_type_hints() got invalid type annotation. Got (1, 2).',
),
):
get_type_hints(InvalidTupleAnnotation)
Expand Down
0