[Python-Dev] Re: Documenting collections.abc __class_getitem__ type hints

2021年5月06日 07:12:56 -0700

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 <[email protected]> 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 -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at 
> https://mail.python.org/archives/list/[email protected]/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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/4W7L3WX73VQHGCWCRFABH3JF45WWY7NW/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to