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
Aha, thanks! curry._should_curry method returns True when it should return False when cytoolz.valmap is curried. This is true when using both toolz.curry and cytoolz.curry.
Apparently, Python now provides an inspect.Signature object for the Cython function cytoolz.valmap. It gives <Signature (func, d, factory)>, but it should give <Signature (func, d, factory=<class 'dict'>)>. It doesn't know that factory has a default value.
Is there a way for Cython to provide an accurate signature? If not, we can rely on the info in toolz._signatures to provide the correct behavior again.
Here is how valmap works when it runs into an error inside the mapping function like below:
Meanwhile here's how toolz works (raises an error as expected):
Package versions:
The text was updated successfully, but these errors were encountered: