[Python] Is it possible to call Pyright from code (as an API)?

Discussão em 'Python' iniciado por Stack, Julho 22, 2025.

  1. Stack

    Stack Membro Participativo

    It seems that Pyright (the Python type checker made by Microsoft) can only be used as a command line tool or from VS Code. But is it possible to call pyright from code (as an API)?

    For example, mypy supports usage like:

    import sys
    from mypy import api

    result = api.run("your code")

    Continue reading...

Compartilhe esta Página