[issue40606] Copy property return annotations to __annotations__

2020-05-15 Thread Ivan Levkivskyi
Change by Ivan Levkivskyi : -- nosy: +levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40606] Copy property return annotations to __annotations__

2020-05-12 Thread Eric Wieser
Change by Eric Wieser : -- keywords: +patch nosy: +Eric.Wieser nosy_count: 1.0 -> 2.0 pull_requests: +19361 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20052 ___ Python tracker

[issue40606] Copy property return annotations to __annotations__

2020-05-12 Thread Eric Wieser
New submission from Eric Wieser : Consider a class like class MyClass: x: int y: int Which has >>> MyClass.__annotations__ {'x': int, 'y': int} In future, it might change to class MyClass: @property def x(self) -> int: ...