sphinx-codeautolink icon indicating copy to clipboard operation
sphinx-codeautolink copied to clipboard

Use mypy for type resolving..? 🤔

Open felix-hilden opened this issue 2 years ago • 2 comments

Wild idea... could we use mypy for resolving types in code examples? It is static analysis after all, and very comprehensive. I wonder if there is mypy internal we could use instead of parsing ourselves.

felix-hilden avatar Jan 27 '23 18:01 felix-hilden

I explored various ways of doing this for libcst: https://github.com/Instagram/LibCST/issues/947 there are ways of achieving it, but nothing that's super clean.

jakkdl avatar May 15 '24 09:05 jakkdl

Interesting, thank you!

felix-hilden avatar May 15 '24 10:05 felix-hilden