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
$ python temp.py
toolz: 0.10.0
Traceback (most recent call last):
File "temp.py", line 21, in <module>
print(a.fg(2))
File "/Users/Thomas/.local/miniconda3/envs/mantik_dev/lib/python3.7/site-packages/toolz/functoolz.py", line 486, in __call__
ret = self.first(*args, **kwargs)
TypeError: g() takes 1 positional argument but 2 were given
In the second example, g gets called with an additional <__main__.A.__call__.<locals>.Inner object as first argument.
If not a bug, it's at least a change of behavior breaking code using toolz.
The above example is very reduced and may look strange but is totally sensible in the usecase where it's actually used.
The text was updated successfully, but these errors were encountered:
Sorry to hear this change affected you @Thomasillo. This affected somebody else too (#460). We try to keep breaking changes in toolz to a bare minimum, so it's time we use semantic versioning.
I think using staticmethod is excellent advice, and should work with both newer and later versions of toolz.
Consider a file temp.py :
with toolz 0.9.0:
With toolz 0.10.0:
In the second example, g gets called with an additional
<__main__.A.__call__.<locals>.Inner
object as first argument.If not a bug, it's at least a change of behavior breaking code using toolz.
The above example is very reduced and may look strange but is totally sensible in the usecase where it's actually used.
The text was updated successfully, but these errors were encountered: