Issue:
I need to programmatically analyze a Python codebase and extract type information for specific variables. I am thinking to use pylsp-mypy for this task.
Objective:
I would like to programmatically use pylsp-mypy to analyze Python code and retrieve type information for specific variables.
Approaches Considered:
As pylsp operates as a language server, I am considering to set up a LSP client, starting the pylsp language server with pylsp-mypy enabled, and then sending LSP requests to get type information. However, I'm unsure about the specifics and feasibility of this approach.
Questions:
What's the suggested method for extracting type information programmatically with pylsp-mypy?
Does pylsp-mypy offer any internal APIs or features that can assist in this task?
Thank you for your time and for the fantastic work on pylsp-mypy!
Issue: I need to programmatically analyze a Python codebase and extract type information for specific variables. I am thinking to use pylsp-mypy for this task.
Objective: I would like to programmatically use pylsp-mypy to analyze Python code and retrieve type information for specific variables.
Approaches Considered: As pylsp operates as a language server, I am considering to set up a LSP client, starting the pylsp language server with pylsp-mypy enabled, and then sending LSP requests to get type information. However, I'm unsure about the specifics and feasibility of this approach.
Questions:
Thank you for your time and for the fantastic work on pylsp-mypy!