I am looking to generate high quality type stubs for linting my Revit API python code from the RevitAPI.dll file. pyRevit has a built in stub generator, but it is primarily useful for autocomplete. There are various libraries to generate type stubs, but they work to varying degrees. One challenge I have had in generating stubs is getting all the interfaces, enums, iterators, and more to register correctly. Is there a canonical way to generate high quality stubs for linting purposes from a dll file that includes the long-tail of things? Continue reading...