build: use mypy<1.11.0 until #682 is fixed (#683) * build: use mypy<1.11.0 until #682 is fixed * add comment