Message277164
Here is the patch for 3.6 with requested changes.
While playing with this a bit more, I discovered that the error message in this case (if no value is actually assigned):
def f():
x: int
global x
could be misleading. Therefore I changed the order of DEF_LOCAL and DEF_ANNOT to get a more clear error message for such cases (this does not spoil error messages in other cases). |
|
Date |
User |
Action |
Args |
2016-09-21 15:37:15 | levkivskyi | set | recipients:
+ levkivskyi, christian.heimes |
2016-09-21 15:37:15 | levkivskyi | set | messageid: <1474472235.15.0.00627268510913.issue28100@psf.upfronthosting.co.za> |
2016-09-21 15:37:15 | levkivskyi | link | issue28100 messages |
2016-09-21 15:37:15 | levkivskyi | create | |
|