gh-105509: Simplify implementation of typing.Annotated (#105510)

This commit is contained in:
Alex Waygood 2023-09-01 21:57:25 +01:00 committed by GitHub
parent 8f9ea43ee8
commit a1cbace91b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 27 deletions

View file

@ -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()