From 63940346a11c875ac6ea545a3825f7fecfba3d78 Mon Sep 17 00:00:00 2001 From: Kirill Podoprigora Date: Thu, 8 Aug 2024 21:59:24 +0300 Subject: [PATCH] Fix module name --- Lib/test/test_typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 290b3c63a762e9..ac62b1f7733171 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -8828,7 +8828,7 @@ class X(TypedDict): 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})