From d53cf99dca4605ace4b81b1e585616b3e1b74fa6 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 6 May 2019 22:40:27 +0300 Subject: bpo-36542: Allow to overwrite the signature for Python functions. (GH-12705) --- 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 1f1874db9b..28d9f6f75f 100644 --- a/Lib/functools.py +++ b/Lib/functools.py @@ -388,6 +388,7 @@ class partialmethod(object): self.func = func self.args = args self.keywords = keywords + __init__.__text_signature__ = '($self, func, /, *args, **keywords)' def __repr__(self): args = ", ".join(map(repr, self.args)) -- cgit v1.2.1