We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d282c9a commit 4c43a9cCopy full SHA for 4c43a9c
Lib/test/test_functools.py
@@ -2961,6 +2961,7 @@ class C:
2961
def t(self, x):
2962
return "base"
2963
2964
+ # This tests GH-130827.
2965
@t.register
2966
def _(self: typing.Self, x: int) -> str:
2967
return "int"
@@ -3270,6 +3271,7 @@ def d(arg):
3270
3271
pass
3272
3273
with self.assertRaisesRegex(TypeError, add_missing_re):
3274
+ # This tests GH-84644.
3275
@d.register
3276
def _(arg) -> int:
3277
"""I only annotated the return type."""
0 commit comments