It turns out that "where possible" is equivalent to "almost everywhere". There are a very few places where we still have to leave typing aliases in for compatibility with Python versions before 3.9.
[x] I can and do license this contribution under the EFLv2
[x] No issues are reported by make qa (runs make quality and make test)
This also includes running mypy 1.4 under Python 3.8, to make sure none of the changes breaks that version. (I did not bother to test Python 3.7 since it's EOL any day now. Tentatively it's EOL today, but I haven't seen any formal announcement or update to the Python Versions page yet.)
[x] I have tested the functionality of the things this change touches
Notes
Follow-up to #2471; prerequisite for finishing #2477 (so I can extract a very nice, clean file for packaging externally).
Haven't touched remind as it's due to be removed shortly (#2478, replaced by external package).
Description
It turns out that "where possible" is equivalent to "almost everywhere". There are a very few places where we still have to leave
typing
aliases in for compatibility with Python versions before 3.9.Checklist
make qa
(runsmake quality
andmake test
)mypy
1.4 under Python 3.8, to make sure none of the changes breaks that version. (I did not bother to test Python 3.7 since it's EOL any day now. Tentatively it's EOL today, but I haven't seen any formal announcement or update to the Python Versions page yet.)Notes
Follow-up to #2471; prerequisite for finishing #2477 (so I can extract a very nice, clean file for packaging externally).
Haven't touched
remind
as it's due to be removed shortly (#2478, replaced by external package).