Bug 1758345 [wpt PR 33082] - Bump mypy from 0.812 to 0.931 in /tools, a=testonly
commit72ea158e7c508831afa36a60c94ba7a84cce960c
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Fri, 18 Mar 2022 10:45:45 +0000 (18 10:45 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 21 Mar 2022 06:52:05 +0000 (21 06:52 +0000)
treed55d2c026c32b5871f2d7484579f3aa71eaf01d9
parent2a7ef0679e0ad210febfad8e638d3da6ce0e1581
Bug 1758345 [wpt PR 33082] - Bump mypy from 0.812 to 0.931 in /tools, a=testonly

Automatic update from web-platform-tests
Bump mypy from 0.812 to 0.931 in /tools (#33082)

Changes to adapt:

 * Deals with changes in how mypy handles metaclasses

 * Prefers sys.platform == "win32" due to
   https://github.com/python/mypy/issues/8166 and mypy not having
   WindowsError defined by default any more

 * Installs various typestubs

 * Rewrites tox.ini to avoid duplicating everything, and allowing new
   versions of Python to be easily tested (as tox -e py310-mypy will
   now work without further changes).

 * Make mypy warn when it thinks code is unreachable.

Co-authored-by: Sam Sneddon <gsnedders@apple.com>
Co-authored-by: Philip Jägenstedt <philip@foolip.org>
--

wpt-commits: 51ad530bef4a8396c5706f508e46f256c21b2a57
wpt-pr: 33082
testing/web-platform/tests/tools/gitignore/gitignore.py
testing/web-platform/tests/tools/gitignore/tests/test_gitignore.py
testing/web-platform/tests/tools/manifest/item.py
testing/web-platform/tests/tools/manifest/sourcefile.py
testing/web-platform/tests/tools/manifest/typedata.py
testing/web-platform/tests/tools/manifest/utils.py
testing/web-platform/tests/tools/manifest/vcs.py
testing/web-platform/tests/tools/mypy.ini
testing/web-platform/tests/tools/requirements_mypy.txt
testing/web-platform/tests/tools/tox.ini
testing/web-platform/tests/tools/webdriver/webdriver/bidi/transport.py