From 9b338f69a621fbc92a21b67157b0d615a7ae1ab7 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Mon, 29 Jul 2019 00:28:12 +0200 Subject: [PATCH] Add a comment about wraps --- jedi/plugins/stdlib.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jedi/plugins/stdlib.py b/jedi/plugins/stdlib.py index 0d25c394..d76edcaf 100644 --- a/jedi/plugins/stdlib.py +++ b/jedi/plugins/stdlib.py @@ -648,6 +648,9 @@ def _functools_wraps(funcs): class WrapsCallable(ContextWrapper): + # XXX this is not the correct wrapped context, it should be a weird + # partials object, but it doesn't matter, because it's always used as a + # decorator anyway. @repack_with_argument_clinic('func, /') def py__call__(self, funcs): return ContextSet({Wrapped(func, self._wrapped_context) for func in funcs})