Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Run mypy type checking with the minimum supported Python version #15602

Merged
1 change: 1 addition & 0 deletions changelog.d/15602.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Run mypy type checking with the minimum supported Python version to catch new usage that isn't backwards-compatible.
3 changes: 3 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aha, excellent spot!


files =
docker/,
Expand Down