Message390627
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. |
|
Date |
User |
Action |
Args |
2021-04-09 13:57:42 | conchylicultor | set | recipients:
+ conchylicultor, gvanrossum, larry, eric.smith, xtreak, joel.larose |
2021-04-09 13:57:42 | conchylicultor | set | messageid: <1617976662.23.0.149884539152.issue43746@roundup.psfhosted.org> |
2021-04-09 13:57:42 | conchylicultor | link | issue43746 messages |
2021-04-09 13:57:42 | conchylicultor | create | |
|