Creating type evaluation annotation

Jon Ribbens jon+usenet at unequivocal.eu
Sun Dec 9 11:37:10 EST 2018


On 2018-12-09, Marek Mosiewicz <marek.mosiewicz at jotel.com.pl> wrote:
> I'm talking about this https://docs.python.org/3/library/typing.html
>
> I'm not talking about new language. I think it could be nice to have
> standard PEP annotations for classes to make type validation or type
> hints when writing code. 
...
> This class valiadtors would be optional and run only when developer
> wants to validate or write code, not in production as it is heavy.

Yes, I think that's exactly what http://www.mypy-lang.org/ is.
It is not a new language, despite the rather strange choice of
domain name for it.


More information about the Python-list mailing list