update mypy, ruff versions and consume minor reformat corrections done by the ruff. Change-Id: I2a59eb07264ce394d93895a759c43217c6795796
update mypy, ruff versions and consume minor reformat corrections done by the ruff. Change-Id: I2a59eb07264ce394d93895a759c43217c6795796