Skip to content

@retry decorator makes function untyped according to mypy #5786

Closed

Description

@gitpushdashf

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

Activity

  1. hauntsaninja commented on Jul 15, 2021

    @hauntsaninja
    Collaborator

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

  2. gitpushdashf commented on Jul 15, 2021

    @gitpushdashf
    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.

  3. JelleZijlstra commented on Apr 17, 2022

    @JelleZijlstra
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions