Skip to content

Conversation

@SnoopJ
Copy link
Contributor

@SnoopJ SnoopJ commented Dec 25, 2020

This PR adds a warning when a retry_base instance is passed to tenacity.retry as a positional argument (see #269)

It might be reasonable to make this warning an error, or a specific class of warning that can be converted to an error by users who wish to do so, but emitting some kind of feedback in this probably-wrong case can help avoid unintuitive hanging of programs where this flaw presents.

@jd
Copy link
Owner

jd commented Feb 1, 2021

LGTM, CI fails though.

@SnoopJ
Copy link
Contributor Author

SnoopJ commented Feb 2, 2021

Most of the CI failures were #276 but one was a line-width problem on the warning. Sorry about that!

@mergify mergify bot merged commit 3e22445 into jd:master Feb 2, 2021
@SnoopJ SnoopJ deleted the warn-on-retry_base branch April 1, 2022 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants