Message378865
That's an interesting syntax suggestion, you might want to suggest that in the python-ideas mailing list for other people to read about it rather than post it on python bugs.
IMO, this isn't really an issue since you can specify the type of the elements in generic types via::
my_list: list[int] = [1, 2, 3]
for element in my_list:
process(element)
Your type checker should be able to infer that ``element`` is of type ``int`` (or hopefully, it will in the near future). |
|
Date |
User |
Action |
Args |
2020-10-18 14:34:03 | kj | set | recipients:
+ kj, gaaartner |
2020-10-18 14:34:03 | kj | set | messageid: <1603031643.08.0.661627462563.issue42067@roundup.psfhosted.org> |
2020-10-18 14:34:03 | kj | link | issue42067 messages |
2020-10-18 14:34:02 | kj | create | |
|