You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently started using mypy with my project and it says "No library stub file for module 'colorama'".
Do you have any plans to introduce type annotations for colorama? Those could be done in the code as comments, as a separate stub file, or (whenever Python 2 support is dropped), with a proper annotation syntax.
Also, thanks a lot for colorama - it made my life so much easier (especially on Windows) in various projects! 👍
The text was updated successfully, but these errors were encountered:
Currently, the best way of doing this is by adding comments (if Python 2 compatibility is required) or annotations (if Python2 support can be ignored), and adding a py.typed file to the repo (See PEP-561).
Conforming to PEP-561 will make it work out-of-the box with mypy without the need to submitting files to typeshed. AFAIK, typeshed is no longer recommended to use anyway for this very reason.
I recently started using mypy with my project and it says "No library stub file for module 'colorama'".
Do you have any plans to introduce type annotations for colorama? Those could be done in the code as comments, as a separate stub file, or (whenever Python 2 support is dropped), with a proper annotation syntax.
Also, thanks a lot for colorama - it made my life so much easier (especially on Windows) in various projects! 👍
The text was updated successfully, but these errors were encountered: