From 84e124970dda3d4f3399202e7975de307e0631d2 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Fri, 11 Feb 2022 16:36:21 +0000 Subject: [PATCH] bpo-46483: [doc] `pathlib` classes no longer support parameterized generics in 3.11 `__class_getitem__` has been removed from `pathlib.PurePath` due to the fact that it was only added to the class by mistake (the class was never really generic). This means that `PurePath` (and subclasses of `PurePath`) can no longer be parameterized at runtime. Therefore, these `pathlib` classes should be removed from the list in `stdtypes.rst` of classes that can be parameterized at runtime. --- Doc/library/stdtypes.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 3465320c87d8bc..cdc4dad0678143 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -4997,10 +4997,6 @@ list is non-exhaustive. * :class:`functools.cached_property` * :class:`functools.partialmethod` * :class:`os.PathLike` -* :class:`pathlib.Path` -* :class:`pathlib.PurePath` -* :class:`pathlib.PurePosixPath` -* :class:`pathlib.PureWindowsPath` * :class:`queue.LifoQueue` * :class:`queue.Queue` * :class:`queue.PriorityQueue`