google / pytype

A static type analyzer for Python code

Home Page:https://google.github.io/pytype

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for typeshed?

theahura opened this issue · comments

Does pytype support type inference using typeshed types? I notice that pytype can often be very slow for larger repositories, and I'm wondering if I can speed it up by using pre-built typing packages for third party libraries

Pytype has supported typeshed from the start. It doesn't support standalone stub packages (#151), but that shouldn't cause any slowness. With large repositories, a lot of time goes into loading stubs for the repository itself into memory. Internally, pytype uses pickle to get around this, but I haven't gotten around to integrating pickle support into the opensource infrastructure yet.