[Typing, Pro 3.9.1] delegate default value should be None

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.

Right, I already discovered and fixed this mistake myself a few days ago. In any case, thank you for reporting it!

1 Like