[pre-commit.ci] pre-commit autoupdate
<!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.0 → v0.5.6](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.0...v0.5.6)
- [github.com/asottile/pyupgrade: v3.16.0 → v3.17.0](https://github.com/asottile/pyupgrade/compare/v3.16.0...v3.17.0)
<!--pre-commit.ci end-->
@mroeschke - locally I'm seeing pyright 1.1.374 not report any errors regarding this change, but pinned to 1.1.352 gives ` error: "Generator" expects 3 type arguments, but 1 given`. However I get other errors/warnings on 1.1.374 too. OK given the inconsistency in pyright with maybe another package, let's just skip this pre-commit update for now. We can revisit this in next month's update 