summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--changelog.d/15602.misc1
-rw-r--r--mypy.ini3
2 files changed, 4 insertions, 0 deletions
diff --git a/changelog.d/15602.misc b/changelog.d/15602.misc
new file mode 100644
index 0000000000..cdd0c039bd
--- /dev/null
+++ b/changelog.d/15602.misc
@@ -0,0 +1 @@
+Run mypy type checking with the minimum supported Python version to catch new usage that isn't backwards-compatible.
diff --git a/mypy.ini b/mypy.ini
index 5e7057cfb7..3363c6daee 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -13,6 +13,9 @@ no_implicit_optional = True
 disallow_untyped_defs = True
 strict_equality = True
 warn_redundant_casts = True
+# Run mypy type checking with the minimum supported Python version to catch new usage
+# that isn't backwards-compatible (types, overloads, etc).
+python_version = 3.8
 
 files =
   docker/,