Please add type hints or type stubs
See original GitHub issueHere’s an autogenerated type stub. I’ve already filled in phash since that’s the one thing I use: imagehash/__init__.pyi
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Are there plans to add type hints or library stubs for MyPy? #31
I'm using your library right now in a FastAPI app, and since everything's heavily typed in FastAPI (and Pydantic), I have MyPy enabled...
Read more >Why is mypy finding "no type hints or library stubs" for any of ...
This error is because mypy was not able to find the module you are trying to import, whether it comes bundled with type...
Read more >Typechecking with a Python Library That Has No Type Hints
Type hints in Python allow statically verifying the code is correct, with tools like ... It's easy to work around this by adding...
Read more >Type Stubs — typing documentation - Static Typing with Python
Type stubs for libraries that support multiple Python versions can use version checks to supply version-specific type hints. Type stubs for different Python ......
Read more >PEP 484 – Type Hints - Python Enhancement Proposals
This PEP aims to provide a standard syntax for type annotations, opening up Python code to easier static analysis and refactoring, potential runtime...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
aha, there is a way: https://mypy.readthedocs.io/en/stable/python2.html
@nh2, imagehash is trying to support python2, which as far as I understand does not ignore these type annotations, but I may be wrong.