Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.2k
Open
Description
We addedthis to Hypothesis'get_type_hints()
helpera few years ago, and while most of that function is clearly not suitable to upstream, it struck me recently that "works withfunctools.partial
" could quite reasonably be added to the stdlib function.
It's also plausible that thetyping
module prefers to avoid callinginspect.signature
, though I don't have a great sense of how to determine which parameters have been bound without getting the signature of thepartial
object. In any case, the implementation need not be the same as in Hypothesis, althoughas the author you're welcome to use that code if you'd like.