Message411374
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. |
|
| Date |
User |
Action |
Args |
| 2022-01-23 14:52:11 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, BTaskaya, sobolevn, kj |
| 2022-01-23 14:52:11 | serhiy.storchaka | set | messageid: <1642949531.22.0.746516053096.issue46483@roundup.psfhosted.org> |
| 2022-01-23 14:52:11 | serhiy.storchaka | link | issue46483 messages |
| 2022-01-23 14:52:11 | serhiy.storchaka | create | |
|