On 4/12/20 12:31 pm, Paul Bryan wrote:
Would it make sense for list's __class_getitem__ (GenericAlias?) to perform similar checking as typing._SpecialGenericAlias (nparams)?

Maybe. It's a slippery slope -- how much of the typing module do we
want to drag into the core of the interpreter?

--
Greg
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to