From da5fe4f2dacb1d942a2b1046a5652452414721e8 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Mon, 27 Jan 2014 17:28:37 -0500 Subject: inspect.signature: Add support for 'functools.partialmethod' #20223 --- Lib/functools.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/functools.py') diff --git a/Lib/functools.py b/Lib/functools.py index 1e79b31140..2b77f7866a 100644 --- a/Lib/functools.py +++ b/Lib/functools.py @@ -290,6 +290,7 @@ class partialmethod(object): call_args = (cls_or_self,) + self.args + tuple(rest) return self.func(*call_args, **call_keywords) _method.__isabstractmethod__ = self.__isabstractmethod__ + _method._partialmethod = self return _method def __get__(self, obj, cls): -- cgit v1.2.1