evhub / coconut

Simple, elegant, Pythonic functional programming.
http://coconut-lang.org
Apache License 2.0
4.09k stars 125 forks source link

Function composition should preserve the signature of the first function when possible #744

Closed evhub closed 1 year ago

evhub commented 1 year ago

We want

inspect.signature(f ..> g) == inspect.signature(f)

to hold, which can be done via functools.wraps.