cpython/Misc/NEWS.d/next/Documentation/2020-10-21-02-21-14.bpo-420...

5 lines
236 B
ReStructuredText

Clarify that subscription expressions are also valid for certain
:term:`classes <class>` and :term:`types <type>` in the standard library, and
for user-defined classes and types if the classmethod
:meth:`__class_getitem__` is provided.