Add type hints to allow use in performance-critical code