devel/py-mypy: update 0.931 → 0.940, fix tests
PR: 263119 Approved by: maintainer timeout (sunpoet, 2 weeks)