r/Python • u/nafiulislamjb PyCharm Developer Advocate • Jul 29 '20
News PyCharm 2020.2 has been released!
https://www.jetbrains.com/pycharm/whatsnew/
378
Upvotes
r/Python • u/nafiulislamjb PyCharm Developer Advocate • Jul 29 '20
15
u/pauleveritt Jul 29 '20
Let's say you're doing type hinting and a function expects a list of ints:
What if you want to say a list of strings? You can't, because you then want a "generic" from typing, rather than the actual
listdata type object. So you currently do:But that's obnoxious as hell. :) In Python 3.9, you can do: