mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
importlib.metadata: add PathDistribution._path (#10528)
This commit is contained in:
@@ -180,6 +180,7 @@ class MetadataPathFinder(DistributionFinder):
|
||||
def invalidate_caches(cls) -> None: ...
|
||||
|
||||
class PathDistribution(Distribution):
|
||||
_path: Path
|
||||
def __init__(self, path: Path) -> None: ...
|
||||
def read_text(self, filename: StrPath) -> str: ...
|
||||
def locate_file(self, path: StrPath) -> PathLike[str]: ...
|
||||
|
||||
Reference in New Issue
Block a user