Debian Codegraph @

debian/patches/remove-literal-deduplication-assertion.patch

raw
1 From: Alex Waygood <[email protected]>
2 Date: Wed, 12 Aug 2026 12:52:08 +0100
3 Subject: Remove obsolete Literal deduplication assertion
4
5 Origin: upstream, https://github.com/python/typing_extensions/pull/785
6 Bug: https://github.com/python/typing_extensions/issues/784
7 Bug-Debian: https://bugs.debian.org/1145112
8 Last-Update: 2026-08-23
9 ---
10 src/test_typing_extensions.py | 2 --
11 1 file changed, 2 deletions(-)
12
13 diff --git a/src/test_typing_extensions.py b/src/test_typing_extensions.py
14 index 996d466..938f2ac 100644
15 --- a/src/test_typing_extensions.py
16 +++ b/src/test_typing_extensions.py
17 @@ -1337,8 +1337,6 @@ class LiteralTests(BaseTestCase):
18 self.assertEqual(Literal[1, 2, 3].__args__, (1, 2, 3))
19 self.assertEqual(Literal[1, 2, 3, 3].__args__, (1, 2, 3))
20 self.assertEqual(Literal[1, Literal[2], Literal[3, 4]].__args__, (1, 2, 3, 4))
21 - # Mutable arguments will not be deduplicated
22 - self.assertEqual(Literal[[], []].__args__, ([], []))
23
24 def test_union_of_literals(self):
25 self.assertEqual(Union[Literal[1], Literal[2]].__args__,