Skip to content

Commit 561f067

Browse files
Zheaolimerwok
andauthored
Apply suggestion from @merwok
Co-authored-by: Éric <merwok@netwok.org>
1 parent 2a9333f commit 561f067

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/functools.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,7 @@ def __get__(self, obj, cls=None):
494494
def __isabstractmethod__(self):
495495
return getattr(self.func, "__isabstractmethod__", False)
496496

497-
def __annotate__(self, format):
498-
"""Return annotations for the partial method."""
499-
return _partialmethod_annotate(self, format)
497+
__annotate__ = _partialmethod_annotate
500498

501499
__class_getitem__ = classmethod(GenericAlias)
502500

0 commit comments

Comments
 (0)