Hello, Paul.

The docs for __class_getitem__ are here:

https://docs.python.org/3/reference/datamodel.html#emulating-generic-types

I think the Data Model chapter is the right place for it.

Cheers,

Luciano

On Thu, May 6, 2021 at 2:14 AM Paul Bryan <pbr...@anode.ca> wrote:
>
> I'm looking through the documentation, and not finding any good reference for 
> type hints for __class_getitem__ in the collections.abc module.
>
> I do see some of it covered in the typing module documentation, but those are 
> deprecated, and some are somewhat cryptic (e.g. Coroutine).
>
> Make sense to open a BPO and start a PR for doc updates?
>
> Paul
>
> _______________________________________________
> Python-Dev mailing list -- python-dev@python.org
> To unsubscribe send an email to python-dev-le...@python.org
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at 
> https://mail.python.org/archives/list/python-dev@python.org/message/U3QIWBXHKRSWNVE6F4QKOT2OJULNZBWY/
> Code of Conduct: http://python.org/psf/codeofconduct/



-- 
Luciano Ramalho
|  Author of Fluent Python (O'Reilly, 2015)
|     http://shop.oreilly.com/product/0636920032519.do
|  Technical Principal at ThoughtWorks
|  Twitter: @ramalhoorg
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/4W7L3WX73VQHGCWCRFABH3JF45WWY7NW/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to