New submission from barak dopama <gaaart...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue42067>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to