8000 [3.14] gh-133682: Fix inconsistent set ordering in annotationlib test… · python/cpython@52d89f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 52d89f5

Browse files
[3.14] gh-133682: Fix inconsistent set ordering in annotationlib test (GH-133702) (#133754)
gh-133682: Fix inconsistent set ordering in annotationlib test (GH-133702) (cherry picked from commit a2a0fa9) Co-authored-by: Akshat Gupta <akshat.gupta24@gmail.com>
1 parent 94a823f commit 52d89f5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Lib/test/test_annotationlib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def f(x: a[[int, str], float]):
378378

379379
def g(
380380
w: a[[int, str], float],
381-
x: a[{int, str}, 3],
381+
x: a[{int}, 3],
382382
y: a[{int: str}, 4],
383383
z: a[(int, str), 5],
384384
):
@@ -388,7 +388,7 @@ def g(
388388
anno,
389389
{
390390
"w": "a[[int, str], float]",
391-
"x": "a[{int, str}, 3]",
391+
"x": "a[{int}, 3]",
392392
"y": "a[{int: str}, 4]",
393393
"z": "a[(int, str), 5]",
394394
},
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed test case ``test.test_annotationlib.TestStringFormat.test_displays`` which ensures proper handling of complex data structures (lists, sets, dictionaries, and tuples) in string annotations.

0 commit comments

Comments
 (0)
0