mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 03:41:28 +08:00
Small fix for pkg_resources StrPath (#12015)
This commit is contained in:
@@ -384,7 +384,7 @@ class Distribution(NullProvider):
|
||||
) -> None: ...
|
||||
@classmethod
|
||||
def from_location(
|
||||
cls, location: str, basename: str, metadata: _MetadataType = None, *, precedence: int = 3
|
||||
cls, location: str, basename: StrPath, metadata: _MetadataType = None, *, precedence: int = 3
|
||||
) -> Distribution: ...
|
||||
@property
|
||||
def hashcmp(self) -> tuple[parse_version, int, str, str | None, str, str]: ...
|
||||
@@ -405,7 +405,7 @@ class Distribution(NullProvider):
|
||||
def activate(self, path: list[str] | None = None, replace: bool = False) -> None: ...
|
||||
def egg_name(self) -> str: ... # type: ignore[override] # supertype's egg_name is a variable, not a method
|
||||
@classmethod
|
||||
def from_filename(cls, filename: StrOrBytesPath, metadata: _MetadataType = None, *, precedence: int = 3) -> Distribution: ...
|
||||
def from_filename(cls, filename: StrPath, metadata: _MetadataType = None, *, precedence: int = 3) -> Distribution: ...
|
||||
def as_requirement(self) -> Requirement: ...
|
||||
def load_entry_point(self, group: str, name: str) -> _ResolvedEntryPoint: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user