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:
I've been using basedPyright as my linter and it actually warned me that the
List
andTuple
types fromtyping
are deprecated in Python 3.9. I knew newer Python versions supported using the syntax offoo: 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: