Skip to content

Commit 7c41977

Browse files
Upgrade mypy to the last version supporting Python 3.6
Upgrade mypy to 0.971, which is the last version that supports Python 3.6 (the oldest Python version that we currently run on the CI). This fixes the error ``` framework/scripts/mbedtls_framework/outcome_analysis.py:119: error: Incompatible return value type (got "IO[Any]", expected "TextIO") framework/scripts/mbedtls_framework/outcome_analysis.py:121: error: Incompatible return value type (got "IO[Any]", expected "TextIO") ``` As far as I can tell the fix is python/mypy#9275 which was released in mypy 0.940. Signed-off-by: Gilles Peskine <[email protected]>
1 parent ce8a2eb commit 7c41977

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/ci.requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
# 2.4.4 is the version in Ubuntu 20.04. It supports Python >=3.5.
88
pylint == 2.4.4
99

10-
# Use the earliest version of mypy that works with our code base.
11-
# See https://github.com/Mbed-TLS/mbedtls/pull/3953 .
12-
mypy >= 0.780
10+
# Use the last version of mypy that is compatible with Python 3.6.
11+
# Newer versions should be ok too.
12+
mypy >= 0.971
1313

1414
# At the time of writing, only needed for tests/scripts/audit-validity-dates.py.
1515
# It needs >=35.0.0 for correct operation, and that requires Python >=3.6,

0 commit comments

Comments
 (0)