Author conchylicultor
Recipients conchylicultor
Date 2021-04-06.10:37:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617705463.18.0.247710543326.issue43746@roundup.psfhosted.org>
In-reply-to
Content
I observe some strange closure behavior for typing annotations when the name is defined

```
x: x = 1  # Works, __annotation__ == {'x': 1}
```

This creates issue, for example:

```
from ... import losses

class A:
  # AttributeError: 'Losses' object has no attribute 'Losses'
  losses: losses.Losses = losses.Losses()
```
History
Date User Action Args
2021-04-06 10:37:43conchylicultorsetrecipients: + conchylicultor
2021-04-06 10:37:43conchylicultorsetmessageid: <1617705463.18.0.247710543326.issue43746@roundup.psfhosted.org>
2021-04-06 10:37:43conchylicultorlinkissue43746 messages
2021-04-06 10:37:43conchylicultorcreate