Skip to content

Fix pkg_resource functions #5177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements-tests-py3.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 5 additions & 5 deletions stubs/pkg_resources/pkg_resources/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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__(
Expand Down