Re: [Python-Dev] Type annotations and metaclasses

2017-03-03 Thread Ivan Levkivskyi
Hi Thomas, I think this question is more appropriate for mypy or typing trackers: https://github.com/python/mypy/issues https://github.com/python/typing/issues -- Ivan On 3 March 2017 at 22:56, Thomas Hauk wrote: > I’ve read through PEPs 483, 484, and 526, but I don’t

[Python-Dev] Type annotations and metaclasses

2017-03-03 Thread Thomas Hauk
I've read through PEPs 483, 484, and 526, but I don't see any discussion of how type hints should work when the type of a class member differs from the type of an instance member, like when metaclasses are used to create instances. e.g.: >>> from django.db import models >>> class