bpo-44241: Incorporate changes from importlib_metadata 4.1. (#26382)

This commit is contained in:
Jason R. Coombs 2021-05-26 13:40:05 -04:00 committed by GitHub
parent 90a6c07cb2
commit 06ac3a4742
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 8 deletions

View file

@ -27,3 +27,21 @@ class PackageMetadata(Protocol):
"""
A JSON-compatible form of the metadata.
"""
class SimplePath(Protocol):
"""
A minimal subset of pathlib.Path required by PathDistribution.
"""
def joinpath(self) -> 'SimplePath':
... # pragma: no cover
def __div__(self) -> 'SimplePath':
... # pragma: no cover
def parent(self) -> 'SimplePath':
... # pragma: no cover
def read_text(self) -> str:
... # pragma: no cover