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
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ jobs:
- name: Setup Poetry
uses: matrix-org/setup-python-poetry@v1
with:
# We set this as our minimum supported Python version. We use the oldest
# Python version because later Python versions can include some overloads
# which don't work in the older versions.
python-version: '3.8'
MadLittleMods marked this conversation as resolved.
Show resolved Hide resolved
# We want to make use of type hints in optional dependencies too.
extras: all
# We have seen odd mypy failures that were resolved when we started
Expand Down
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.