-
-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8.4.2 breaks ability to compose regular functions with retry_base
#481
Comments
cc @hasier I think you changed that recently 😉 |
@blr246 that fix would not work as we use those functions to account for the fact that there might be other implementations for the retry mechanism. By changing those values @jd I didn't know this was intended behaviour, I can find no tests for it and no mentions in the docs. Personally I'd say the current implementation is what we want to go for and retry mechanisms should derive from the corresponding |
I don't think this was an intended use case indeed and I can imagine people abused it, thanks Python duck typing 😁 |
A recent change subtly breaks existing behavior where users could use operators
&
,|
to compose together instances of the callableretry_base
with regular Python functions. This is useful to avoid the overhead of defining a callable class. This behavior worked as of 8.3.0.The change that appears to be the root cause is:
21137e7#diff-0dca3b72d66613121507acde32aeb2e6fd42818b367d2fb4189f4180ad09e2f7
Here is a minimal example of what used to be valid and now causes an exception:
Here is the exception:
I believe the following patch fixes the issue (new asyncio seems to support this and does not need to change):
The text was updated successfully, but these errors were encountered: