in ovito.modifiers.__init__.pyi
:2896 (Ovito Pro 3.9.1, OS independent)
delegate: Optional[ovito.pipeline.ModifierInterface]
should be
delegate: Optional[ovito.pipeline.ModifierInterface] = None
Otherwise using the PythonScripModifier with anything other than a delegate requires setting delegate=None to pass static typecheckers.