mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-119180: PEP 649 compiler changes (#119361)
This commit is contained in:
parent
02c1dfff07
commit
9b8611eeea
28 changed files with 610 additions and 329 deletions
|
@ -360,6 +360,8 @@ a = A(destroyed)"""
|
|||
ann_module4 = import_helper.import_fresh_module(
|
||||
'test.typinganndata.ann_module4',
|
||||
)
|
||||
self.assertFalse("__annotations__" in ann_module4.__dict__)
|
||||
self.assertEqual(ann_module4.__annotations__, {"a": int, "b": str})
|
||||
self.assertTrue("__annotations__" in ann_module4.__dict__)
|
||||
del ann_module4.__annotations__
|
||||
self.assertFalse("__annotations__" in ann_module4.__dict__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue