mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-122835: Fix module name in `test_typing
` (#122836)
This commit is contained in:
parent
2d9d3a9f53
commit
2037d8cbae
1 changed files with 1 additions and 1 deletions
|
@ -8877,7 +8877,7 @@ class TypedDictTests(BaseTestCase):
|
|||
class Y(TypedDict):
|
||||
a: None
|
||||
b: "int"
|
||||
fwdref = ForwardRef('int', module='test.test_typing')
|
||||
fwdref = ForwardRef('int', module=__name__)
|
||||
self.assertEqual(Y.__annotations__, {'a': type(None), 'b': fwdref})
|
||||
self.assertEqual(Y.__annotate__(annotationlib.Format.FORWARDREF), {'a': type(None), 'b': fwdref})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue