DavidoTek / ProtonUp-Qt

Install and manage GE-Proton, Luxtorpeda & more for Steam and Wine-GE & more for Lutris with this graphical user interface.
https://davidotek.github.io/protonup-qt
GNU General Public License v3.0
1.16k stars 39 forks source link

CtLoader: Remove deprecated types #416

Closed sonic2kk closed 1 day ago

sonic2kk commented 3 days ago

I've been using basedPyright as my linter and it actually warned me that the List and Tuple types from typing are deprecated in Python 3.9. I knew newer Python versions supported using the syntax of foo: list but I didn't realise it was deprecated.

I was going to open a discussion asking what our stance is on typing and I think I will do after this, however this was a very straightforward drop-in replacement for these types. Further changes and perhaps further explicit typing changes can be made in future, but I will open a discussion around this before going any further :smile: