Message305045
| 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 |
<1509017511.8.0.213398074469.issue28936@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年10月26日 11:31:51 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, levkivskyi |
| 2017年10月26日 11:31:51 | serhiy.storchaka | set | messageid: <1509017511.8.0.213398074469.issue28936@psf.upfronthosting.co.za> |
| 2017年10月26日 11:31:51 | serhiy.storchaka | link | issue28936 messages |
| 2017年10月26日 11:31:51 | serhiy.storchaka | create |
|