Skip to content

Commit 4c43a9c

Browse files
committed
Denote the issues covered
1 parent d282c9a commit 4c43a9c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_functools.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2961,6 +2961,7 @@ class C:
29612961
def t(self, x):
29622962
return "base"
29632963

2964+
# This tests GH-130827.
29642965
@t.register
29652966
def _(self: typing.Self, x: int) -> str:
29662967
return "int"
@@ -3270,6 +3271,7 @@ def d(arg):
32703271
pass
32713272

32723273
with self.assertRaisesRegex(TypeError, add_missing_re):
3274+
# This tests GH-84644.
32733275
@d.register
32743276
def _(arg) -> int:
32753277
"""I only annotated the return type."""

0 commit comments

Comments
 (0)