mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
gh-105509: Simplify implementation of typing.Annotated
(#105510)
This commit is contained in:
parent
8f9ea43ee8
commit
a1cbace91b
3 changed files with 17 additions and 27 deletions
|
@ -8189,8 +8189,7 @@ class AnnotatedTests(BaseTestCase):
|
|||
|
||||
def test_new(self):
|
||||
with self.assertRaisesRegex(
|
||||
TypeError,
|
||||
'Type Annotated cannot be instantiated',
|
||||
TypeError, 'Cannot instantiate typing.Annotated',
|
||||
):
|
||||
Annotated()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue