This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kj
Recipients gaaartner, kj
Date 2020-10-18.14:34:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1603031643.08.0.661627462563.issue42067@roundup.psfhosted.org>
In-reply-to
Content
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).
History
Date User Action Args
2020-10-18 14:34:03kjsetrecipients: + kj, gaaartner
2020-10-18 14:34:03kjsetmessageid: <1603031643.08.0.661627462563.issue42067@roundup.psfhosted.org>
2020-10-18 14:34:03kjlinkissue42067 messages
2020-10-18 14:34:02kjcreate