Please see: https://github.com/diffpy/diffpy.snmf/pull/120#issuecomment-2439753739 Maybe we could use `mypy` for static type checking