This comes from python/typeshed#11497 (comment)
# pyright:ignore --> # pyright: ignore
# type:ignore --> # type: ignore
# noqa:Y011 --> # noqa: Y011
This could probably be generalised further, but would likely fall out of scope of flake8-pyi
Formatters (black and Ruff) already take of adding a space after #