Here is the bad code diff
- hsdp_device_mesh: Optional = None,
+ hsdp_device_mesh: Optional[Optional] = None,
Obviously, an untyped Optional is fine, and Optional[Optional] doesn't make much sense here as an autofix.
- version ruff 0.7.0
- ruff check RUF013 --select=RUF013 . --fix --unsafe-fixes