Serhiy Storchaka <[email protected]> added the comment:
Is it correct that the parameter can be annotated in the function body?
def f(x):
x: int
Or that the local variable can be annotated after assignment?
def f():
x = 1
x: int
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue28936>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com