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 658d3fe commit 2558b74Copy full SHA for 2558b74
Lib/test/test_functools.py
@@ -3408,15 +3408,15 @@ def _(self, arg: typing.Self):
3408
return arg
3409
3410
# 'self' cannot be the only parameter
3411
- with self.assertRaises(TypeError):
3412
- class Foo:
3413
- @functools.singledispatchmethod
3414
- def bar(self: typing.Self, arg: int | str):
3415
- pass
3416
-
3417
- @bar.register
3418
- def _(self: typing.Self):
3419
+ with self.assertRaises(TypeError):
+ class Foo:
+ @functools.singledispatchmethod
+ def bar(self: typing.Self, arg: int | str):
+ pass
+
+ @bar.register
+ def _(self: typing.Self):
3420
3421
3422
class CachedCostItem:
0 commit comments