[New-bugs-announce] [issue42067] Type annotation in for-loops
barak dopama
report at bugs.python.org
Sun Oct 18 08:57:26 EDT 2020
New submission from barak dopama <gaaartner at gmail.com>:
Why do I have to do this:
for element in my_list:
element: ElementType = element
process(element)
And can't do this:
for element: ElementType in my_list:
process(element)
----------
components: Build
messages: 378859
nosy: gaaartner
priority: normal
severity: normal
status: open
title: Type annotation in for-loops
type: behavior
versions: Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42067>
_______________________________________
More information about the New-bugs-announce
mailing list