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/cProfile.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/cProfile.py') diff --git a/Lib/cProfile.py b/Lib/cProfile.py index 2e449cc576..369d02e22e 100755 --- a/Lib/cProfile.py +++ b/Lib/cProfile.py @@ -124,6 +124,7 @@ class Profile(_lsprof.Profiler): return func(*args, **kw) finally: self.disable() + runcall.__text_signature__ = '($self, func, /, *args, **kw)' def __enter__(self): self.enable() -- cgit v1.2.1