rholder / retrying

Retrying is an Apache 2.0 licensed general-purpose retrying library, written in Python, to simplify the task of adding retry behavior to just about anything.
Apache License 2.0
1.91k stars 157 forks source link

Add type hints #96

Open pietermarsman opened 2 years ago

pietermarsman commented 2 years ago

I use mypy and want to have type hints for retrying to fix this error:

error: Skipping analyzing "retrying": module is installed, but missing library stubs or py.typed marker  [import]
note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

Current non-optimal solution is to ignore by adding the following lines to the mypy.ini config.

[mypy-retrying.*]
ignore_missing_imports = True