chore(ci): using ty for (static) type checking Python files
ty is still in early development and this PR aims at experimenting with it, slowly introducing it to the codebase and eventually replace Pyright (or use both).
Tracking issues:
+ Support for `ParamSpec`: https://github.com/astral-sh/ty/issues/157
+ Pre-commit hook : https://github.com/astral-sh/ty/issues/269
+ Support for `TypeAlias`: https://github.com/astral-sh/ty/issues/544