This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author conchylicultor
Recipients conchylicultor, eric.smith, gvanrossum, joel.larose, larry, xtreak
Date 2021-04-09.13:57:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1617976662.23.0.149884539152.issue43746@roundup.psfhosted.org>
In-reply-to
Content
Yes, I know I can rename the closure, or wrap the annotation in 'quote'.

I just wanted to point this out as it felt confusing to me.
For instance, it feels inconsistent with:

```
def fn(datetime: datetime.Time):  # Works as expected
```

Or:

```
@dataclass
class A:
  datetime: datetime.Time = field(default_factory=datetime.Time.now)
```

The `datetime.Time.now` and the `datetime.Time` of the same statement refer to different objects.

This might be the expected behavior, but this is confusing nonetheless.
History
Date User Action Args
2021-04-09 13:57:42conchylicultorsetrecipients: + conchylicultor, gvanrossum, larry, eric.smith, xtreak, joel.larose
2021-04-09 13:57:42conchylicultorsetmessageid: <1617976662.23.0.149884539152.issue43746@roundup.psfhosted.org>
2021-04-09 13:57:42conchylicultorlinkissue43746 messages
2021-04-09 13:57:42conchylicultorcreate