bpo-46483: Remove __class_getitem__ from pathlib.PurePath (GH-30848)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
This commit is contained in:
Nikita Sobolev 2022-02-03 12:25:10 +03:00 committed by GitHub
parent 0cbdd21311
commit 7ffe7ba30f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 14 deletions

View file

@ -12,7 +12,6 @@ from errno import ENOENT, ENOTDIR, EBADF, ELOOP
from operator import attrgetter
from stat import S_ISDIR, S_ISLNK, S_ISREG, S_ISSOCK, S_ISBLK, S_ISCHR, S_ISFIFO
from urllib.parse import quote_from_bytes as urlquote_from_bytes
from types import GenericAlias
__all__ = [
@ -604,8 +603,6 @@ class PurePath(object):
return NotImplemented
return self._cparts >= other._cparts
__class_getitem__ = classmethod(GenericAlias)
drive = property(attrgetter('_drv'),
doc="""The drive prefix (letter or UNC path), if any.""")