Python type hints

You provide all the stub files for the VTK C++ objects, but I cannot find the type hints or stub files for the Python files in the web module: https://gitlab.kitware.com/vtk/vtk/-/tree/master/Web/Python/vtkmodules/web

Is there a reason? Should we generate them on our side?

The .pyi files are generated for C++ modules in order to make autocompletion work on editors like VSCode and PyCharm. For .py modules, autocompletion will generally work even without type annotations.

Neither the .pyi or .py files in the VTK distro are suitable for use with type checking utilities like mypy, nearly all of VTK’s Python code was written years before static type checking even existed in Python. You can search for “pyi” in VTK’s gitlab for more details.