Fix pkg_resource functions (#5177)

This commit is contained in:
Sam Bull
2021-04-08 03:48:51 +01:00
committed by GitHub
parent cb03e90323
commit 7d2427bc52
2 changed files with 6 additions and 6 deletions

View File

@@ -5,4 +5,4 @@ flake8==3.8.4
flake8-bugbear==20.1.4
flake8-pyi==20.10.0
isort==5.5.3
pytype>=2021.01.28
pytype>=2021.4.1

View File

@@ -38,12 +38,12 @@ class WorkingSet:
self, plugin_env: Environment, full_env: Optional[Environment] = ..., fallback: bool = ...
) -> Tuple[List[Distribution], Dict[Distribution, Exception]]: ...
working_set: WorkingSet
working_set: WorkingSet = ...
def require(*requirements: _NestedStr) -> Sequence[Distribution]: ...
def run_script(requires: str, script_name: str) -> None: ...
def iter_entry_points(group: str, name: Optional[str] = ...) -> Generator[EntryPoint, None, None]: ...
def add_activation_listener(callback: Callable[[Distribution], None]) -> None: ...
require = working_set.require
run_script = working_set.run_script
iter_entry_points = working_set.iter_entry_points
add_activation_listener = working_set.subscribe
class Environment:
def __init__(