News for hackers. Stuff that matters.
Re:Dynamic type systems are not inherently more open by duckerude on Sunday January 19, 2020 @11:35AM (#22092264)
I don't have experience with it, but pytype can do that: 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

As far as I know it's less powerful since mypy isn't really built for unannotated code and pytype is.

There are no comments on this comment yet.