You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Per the docs, the hypothesis builds function uses python's getfullargspec to determine parameters. Sadly, this means that some traditional ways of wrapping functions will hide the real parameters.
IMO this is clearly justified; cases where signature's default follow_wrapped=True is counterproductive do exist but are very rare.
#2218 even has "consider replacing uses of inspect.getfullargspec with inspect.signature" as one of the remaining checklist items - and while I didn't get around to that as part of our more general dropping-python-2 code modernisation, it shouldn't be that big a deal to do so now.
Per the docs, the hypothesis
buildsfunction uses python'sgetfullargspecto determine parameters. Sadly, this means that some traditional ways of wrapping functions will hide the real parameters.An example:
This yields the follow error:
I suspect that using inspect's
signaturefunction would help here, but that might be a pretty invasive change?The text was updated successfully, but these errors were encountered: