Re: [Python-Dev] Adding Type[C] to PEP 484

2016年5月20日 03:59:01 -0700

On 15.05.2016 19:30, Guido van Rossum wrote:
Right. I still have no good intuition for what Type[BasicUser, ProUser] would mean so I think you should be required to use the Union, which is clear. Type[] should only allow one parameter.
Type[A, B] reminds me of isinstance(obj, (A, B)).
Sven
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to