mirror of
https://github.com/ROCm/jax.git
synced 2025-04-24 19:56:05 +00:00

Without this type hint, some tools (including PyCharm) infer the more generic return type from typing.NamedTuple. To improve user experience, I've added a narrower type hint. However, the typing of this method is still 'flawed' as the only properly supported input is another Rotation. This is a narrower input type and therefore violates the Liskov substitution principle. Therefore I left the input parameter untyped. For more info: https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides