Block mypy 0.940

It breaks test_mypy.

See also https://github.com/python/mypy/issues/12339
2 files changed