summaryrefslogtreecommitdiffstats
path: root/tools/testing/kunit/mypy.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/kunit/mypy.ini')
-rw-r--r--tools/testing/kunit/mypy.ini6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/testing/kunit/mypy.ini b/tools/testing/kunit/mypy.ini
new file mode 100644
index 0000000000..ddd288309e
--- /dev/null
+++ b/tools/testing/kunit/mypy.ini
@@ -0,0 +1,6 @@
+[mypy]
+strict = True
+
+# E.g. we can't write subprocess.Popen[str] until Python 3.9+.
+# But kunit.py tries to support Python 3.7+, so let's disable it.
+disable_error_code = type-arg