[issue45449] Document that collections.abc types are subscriptable

2021-10-19 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Filipe! ✨  ✨

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45449] Document that collections.abc types are subscriptable

2021-10-19 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset a18e4e9c15a0be833e01c3892206661fc91e6918 by Łukasz Langa in 
branch '3.9':
[3.9] bpo-45449: add note about PEP 585 in collections.abc's documentation 
(GH-29047) (GH-29068)
https://github.com/python/cpython/commit/a18e4e9c15a0be833e01c3892206661fc91e6918


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45449] Document that collections.abc types are subscriptable

2021-10-19 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 092ec4b9d144c493cb514df0978638fdd2d9622a by Miss Islington (bot) 
in branch '3.10':
bpo-45449: add note about PEP 585 in collections.abc's documentation (GH-29047) 
(GH-29067)
https://github.com/python/cpython/commit/092ec4b9d144c493cb514df0978638fdd2d9622a


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45449] Document that collections.abc types are subscriptable

2021-10-19 Thread Łukasz Langa

Change by Łukasz Langa :


--
pull_requests: +27335
pull_request: https://github.com/python/cpython/pull/29068

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45449] Document that collections.abc types are subscriptable

2021-10-19 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +27334
pull_request: https://github.com/python/cpython/pull/29067

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45449] Document that collections.abc types are subscriptable

2021-10-19 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 7bafa0cf586227987d3d662264d491e3780024b7 by Filipe Laíns in 
branch 'main':
bpo-45449: add note about PEP 585 in collections.abc's documentation (GH-29047)
https://github.com/python/cpython/commit/7bafa0cf586227987d3d662264d491e3780024b7


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45449] Document that collections.abc types are subscriptable

2021-10-18 Thread Filipe Laíns

Change by Filipe Laíns :


--
keywords: +patch
pull_requests: +27318
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29047

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45449] Document that collections.abc types are subscriptable

2021-10-12 Thread Filipe Laíns

Filipe Laíns  added the comment:

Just to clarify: some type checkers will still allow using them as type hints 
in Python versions before 3.9, but `from __future__ import annotations` needs 
to be used so that we don't error out at ruuntime.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45449] Document that collections.abc types are subscriptable

2021-10-12 Thread Filipe Laíns

New submission from Filipe Laíns :

Since 3.9, the types in collections.abc are subscriptable and can be used as 
type hints, but this is not documented.
We should write something similar to what's on the typing module documentation 
for the deprecated types.

--
assignee: docs@python
components: Documentation
messages: 403744
nosy: FFY00, docs@python, gvanrossum, kj
priority: normal
severity: normal
status: open
title: Document that collections.abc types are subscriptable
type: enhancement
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com