Fixes: #15642 (closed) See: https://github.com/astral-sh/ruff/issues/10359 See: https://github.com/astral-sh/ruff/issues/10470