Guido van Rossum <gu...@python.org> added the comment:

Maybe historically constrained type vars predated bound type vars. This could 
have influenced the way PEP 484 was written and then the docs were derived from 
the PEP.

But yes, this should be fixed in as many places as possible (including the mypy 
docs, probably).

I would even support a minor update to PEP 484 to help people find the right 
way (the PEP is still widely cited). It would have to be just be a textual 
change, not a spec change.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46769>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to