sopel-irc / sopel

:robot::speech_balloon: An easy-to-use and highly extensible IRC Bot framework. Formerly Willie.
https://sopel.chat
Other
950 stars 405 forks source link

mypy: use generic types instead of `typing` aliases where possible #2480

Closed dgw closed 1 year ago

dgw commented 1 year ago

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

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).