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 serhiy.storchaka
Recipients gvanrossum, levkivskyi, serhiy.storchaka
Date 2017-10-26.11:31:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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
Date User Action Args
2017-10-26 11:31:51serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, levkivskyi
2017-10-26 11:31:51serhiy.storchakasetmessageid: <>
2017-10-26 11:31:51serhiy.storchakalinkissue28936 messages
2017-10-26 11:31:51serhiy.storchakacreate