3 ms·
I don't have experience with it, but pytype can do that: https://github.com/google/pytype https://github.com/google/pytype After typechecking it leaves provisi
by duckerude 7y ago
I don't have experience with it, but pytype can do that: https://github.com/google/pytype https://github.com/google/pytype
After typechecking it leaves provisional stubs in .pytype/pyi/, and it has a tool to merge them into the original code.
mypy has stubgen: https://mypy.readthedocs.io/en/latest/stubgen.html https://mypy.readthedocs.io/en/latest/stubgen.html
As far as I know it's less powerful since mypy isn't really built for unannotated code and pytype is.