mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-10 07:41:51 +08:00
Add a comment about wraps
This commit is contained in:
@@ -648,6 +648,9 @@ def _functools_wraps(funcs):
|
|||||||
|
|
||||||
|
|
||||||
class WrapsCallable(ContextWrapper):
|
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, /')
|
@repack_with_argument_clinic('func, /')
|
||||||
def py__call__(self, funcs):
|
def py__call__(self, funcs):
|
||||||
return ContextSet({Wrapped(func, self._wrapped_context) for func in funcs})
|
return ContextSet({Wrapped(func, self._wrapped_context) for func in funcs})
|
||||||
|
|||||||
Reference in New Issue
Block a user