The vtk.py trampoline breaks static analysis
When the vtk-python package switched from vtk
to vtkmodules
, the vtk
package was replaced with the vtk.py
module, which acts as a trampoline to both vtkmodules
and vtkmodules.all
.
The problem is that the trampoline mechanism is inaccessible to static analysis packages, since (by definition) static analysis packages do not execute the code.
Since the vtk.py
module is not going away (this would break most Python apps and packages that use vtk), perhaps instead of being a trampoline to vtkmodules.all
, vtk.py
should simply import all the classes like all
does. Less elegant than a trampoline, but more functional.