Author conchylicultor
Recipients conchylicultor, larry
Date 2021-04-08.15:08:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617894539.49.0.0148829337222.issue43746@roundup.psfhosted.org>
In-reply-to
Content
> Do you have an actual use case for self-referential annotations?

I'm not sure I understand the question. My use case is the following:

```
from ... import losses

class A:
  losses: losses.Losses = losses.Losses()
```

Currently this is failing be cause this get resolved as:

```
class A:
  name: <module losses>.Losses().Losses = <module losses>.Losses()
```
Instead of what I want/expected:
```
class A:
  name: <module losses>.Losses = <module losses>.Losses()
```

I would expect that both "losses.Losses" on the left and right of the `=` refer to the outer module (`name: <module losses>.Losses`), while currently it is resolved as `name: name.Losses`
History
Date User Action Args
2021-04-08 15:08:59conchylicultorsetrecipients: + conchylicultor, larry
2021-04-08 15:08:59conchylicultorsetmessageid: <1617894539.49.0.0148829337222.issue43746@roundup.psfhosted.org>
2021-04-08 15:08:59conchylicultorlinkissue43746 messages
2021-04-08 15:08:58conchylicultorcreate