Author conchylicultor
Recipients conchylicultor, larry
Date 2021-04-08.15:08:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> 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`
Date User Action Args
2021-04-08 15:08:59conchylicultorsetrecipients: + conchylicultor, larry
2021-04-08 15:08:59conchylicultorsetmessageid: <>
2021-04-08 15:08:59conchylicultorlinkissue43746 messages
2021-04-08 15:08:58conchylicultorcreate