summaryrefslogtreecommitdiffstats
path: root/Lib/functools.py
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2014-01-27 22:28:37 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2014-01-27 22:28:37 (GMT)
commitda5fe4f2dacb1d942a2b1046a5652452414721e8 (patch)
tree4269c41161652bd3b9f06c7a1660814184f977b8 /Lib/functools.py
parenteedf1c1ebf88a7b4762b449fee30fe3f6f518ebc (diff)
downloadcpython-da5fe4f2dacb1d942a2b1046a5652452414721e8.zip
cpython-da5fe4f2dacb1d942a2b1046a5652452414721e8.tar.gz
cpython-da5fe4f2dacb1d942a2b1046a5652452414721e8.tar.bz2
inspect.signature: Add support for 'functools.partialmethod' #20223
Diffstat (limited to 'Lib/functools.py')
-rw-r--r--Lib/functools.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/functools.py b/Lib/functools.py
index 1e79b31..2b77f78 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):