mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-44241: Incorporate changes from importlib_metadata 4.1. (#26382)
This commit is contained in:
parent
90a6c07cb2
commit
06ac3a4742
4 changed files with 30 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue