From: Richard Si <63936253+ichard26@users.noreply.github.com> Date: Mon, 28 Dec 2020 02:38:11 +0000 (-0500) Subject: Bump mypy to 0.780 in pre-commit config (#1887) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/a497570fcb364b40e0d952d3133e8d4f2d329fea?hp=a497570fcb364b40e0d952d3133e8d4f2d329fea Bump mypy to 0.780 in pre-commit config (#1887) To avoid hitting a mypy bug causes pre-commit to always fail on CPython 3.9. Even though it's still an outdated version, the bug effectively blocks development on CPython 3.9 so that's why this commit exists instead of waiting for cooperlees to finish his bump to 0.790 PR. Also this fixes primer to ensure it always raises CalledProcessError with an int error code. I stole the patch from cooperlees's mypy bump PR. It's funny how mypy 0.790 is already asked for in our Pipfile.lock file, but oh well mypy is probably more commonly run through pre-commit than standalone I guess. Oh and if you're curious why the bug doesn't up on CPython 3.8 or lower: there was some subscription AST changes in CPython 3.9. ---