ed1b879576
getfullargspec is relatively expensive and the results will not change between calls, so precalculate it outside the wrapper.