mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Annotate load_entry_point() (#4775)
This commit is contained in:
4
third_party/3/pkg_resources/__init__.pyi
vendored
4
third_party/3/pkg_resources/__init__.pyi
vendored
@@ -79,7 +79,7 @@ class Requirement:
|
||||
def __contains__(self, item: Union[Distribution, str, Tuple[str, ...]]) -> bool: ...
|
||||
def __eq__(self, other_requirement: Any) -> bool: ...
|
||||
|
||||
def load_entry_point(dist: _EPDistType, group: str, name: str) -> None: ...
|
||||
def load_entry_point(dist: _EPDistType, group: str, name: str) -> Any: ...
|
||||
def get_entry_info(dist: _EPDistType, group: str, name: str) -> Optional[EntryPoint]: ...
|
||||
@overload
|
||||
def get_entry_map(dist: _EPDistType) -> Dict[str, Dict[str, EntryPoint]]: ...
|
||||
@@ -155,7 +155,7 @@ class Distribution(IResourceProvider, IMetadataProvider):
|
||||
def get_entry_map(self) -> Dict[str, Dict[str, EntryPoint]]: ...
|
||||
@overload
|
||||
def get_entry_map(self, group: str) -> Dict[str, EntryPoint]: ...
|
||||
def load_entry_point(self, group: str, name: str) -> None: ...
|
||||
def load_entry_point(self, group: str, name: str) -> Any: ...
|
||||
|
||||
EGG_DIST: int
|
||||
BINARY_DIST: int
|
||||
|
||||
Reference in New Issue
Block a user