This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients BTaskaya, gvanrossum, kj, serhiy.storchaka, sobolevn
Date 2022-01-23.14:52:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642949531.22.0.746516053096.issue46483@roundup.psfhosted.org>
In-reply-to
Content
Why __class_getitem__ was added in PurePath at first place? PurePath should not be a generic class, unlike to os.PathLike. For os.PathLike the type parameters represent the returning type of os.fspath() (either str or bytes), but the pathlib module only supports paths as strings, so no parametrization is needed.

I think PurePath.__class_getitem__ should be removed.
History
Date User Action Args
2022-01-23 14:52:11serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, BTaskaya, sobolevn, kj
2022-01-23 14:52:11serhiy.storchakasetmessageid: <1642949531.22.0.746516053096.issue46483@roundup.psfhosted.org>
2022-01-23 14:52:11serhiy.storchakalinkissue46483 messages
2022-01-23 14:52:11serhiy.storchakacreate