1) Update to 3.9.17, and hooks & dependencies (#211)

* Use to 3.9.17, and update hooks & dependencies

* Fix `ruff` lints

* Revert some type hint changes (dycw)
(SHA: 3c8ef14fa96a55c5f299392a634ced1876a6b8f6)