Skip to content
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

@retry decorator makes function untyped according to mypy #5786

Closed
gitpushdashf opened this issue Jul 15, 2021 · 3 comments
Closed

@retry decorator makes function untyped according to mypy #5786

gitpushdashf opened this issue Jul 15, 2021 · 3 comments

Comments

@gitpushdashf
Copy link

Using mypy 0.910's --strict mode, using the retry's module's @retry decorator will mark a function as untyped. I installed the decorator module and that's still the case.

types-retry 0.1.3

Possibly related: #5035

@hauntsaninja
Copy link
Collaborator

I think this might actually be the same thing as #5751

@gitpushdashf
Copy link
Author

Interesting, thank you.

One other option for some may be to use tenacity instead of retry: https://github.com/jd/tenacity#tenacity

It's already typed and mostly compatible. retry isn't maintained anymore.

@JelleZijlstra
Copy link
Member

This was likely #5751, which should not be an issue with newer releases of mypy. If there's something typeshed can do to fix this, leave a comment and reopen.

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

No branches or pull requests

3 participants