)
from collections.abc import *
from contextlib import AbstractContextManager, AbstractAsyncContextManager
+from itertools import chain
from os import DirEntry
from re import Pattern, Match
from types import GenericAlias, MappingProxyType
Mapping, MutableMapping, MappingView,
KeysView, ItemsView, ValuesView,
Sequence, MutableSequence,
- MappingProxyType, DirEntry
+ MappingProxyType, DirEntry,
+ chain,
):
tname = t.__name__
with self.subTest(f"Testing {tname}"):
reduce_doc},
{"__setstate__", (PyCFunction)chain_setstate, METH_O,
setstate_doc},
+ {"__class_getitem__", (PyCFunction)Py_GenericAlias,
+ METH_O|METH_CLASS, PyDoc_STR("See PEP 585")},
{NULL, NULL} /* sentinel */
};