Issue #1485 new
Florian Bruhin
created an issue

I recently started using mypy with my project and it says "No library stub file for module 'pygments'" (same for pygments.lexers and pygments.formatters).

Do you have any plans to introduce type annotations for pygments? 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 pygments! I've been using it for a while now, and never had any trouble with it.

Comments (1)

  1. Georg Brandl repo owner

    Thanks for the kind words :)

    Personally, I have no plans to introduce type hints; I haven't worked with them so far. I'm not opposed to it, but it's possibly a better time to do that after 2.7 gets unsupported and we can just use the proper syntax throughout.

  2. Log in to comment