https://github.com/python/cpython/commit/c0ba0bc54760261f85ec9c646b5af4340348c6f1 commit: c0ba0bc54760261f85ec9c646b5af4340348c6f1 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: sobolevn <[email protected]> date: 2025-01-08T11:43:16Z summary:
[3.13] gh-128617: Fix `test_typing.test_readonly_inheritance` (GH-128618) (#128622) gh-128617: Fix `test_typing.test_readonly_inheritance` (GH-128618) (cherry picked from commit 971a52b5495e3d596e599faa1f31d4671897026d) Co-authored-by: sobolevn <[email protected]> files: M Lib/test/test_typing.py diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 6375d359e72ac8..f32bb31280a8ef 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -8829,13 +8829,13 @@ class Child1(Base1): self.assertEqual(Child1.__mutable_keys__, frozenset({'b'})) class Base2(TypedDict): - a: ReadOnly[int] + a: int class Child2(Base2): - b: str + b: ReadOnly[str] - self.assertEqual(Child1.__readonly_keys__, frozenset({'a'})) - self.assertEqual(Child1.__mutable_keys__, frozenset({'b'})) + self.assertEqual(Child2.__readonly_keys__, frozenset({'b'})) + self.assertEqual(Child2.__mutable_keys__, frozenset({'a'})) def test_cannot_make_mutable_key_readonly(self): class Base(TypedDict): _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
