question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Please add type hints or type stubs

See original GitHub issue

Here’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:closed
  • Created 2 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
JohannesBuchnercommented, Nov 25, 2021
1reaction
JohannesBuchnercommented, Nov 25, 2021

@nh2, imagehash is trying to support python2, which as far as I understand does not ignore these type annotations, but I may be wrong.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found