From 871ee502bf37a71799c3b4a714ee76938cf5878f Mon Sep 17 00:00:00 2001 From: q0w <43147888+q0w@users.noreply.github.com> Date: Wed, 11 Oct 2023 15:50:59 +0300 Subject: [PATCH] Add docstring --- src/pip/_internal/operations/check.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pip/_internal/operations/check.py b/src/pip/_internal/operations/check.py index f774f6d51af..5d467233c43 100644 --- a/src/pip/_internal/operations/check.py +++ b/src/pip/_internal/operations/check.py @@ -58,8 +58,11 @@ def check_package_set( ) -> CheckResult: """Check if a package set is consistent - If should_ignore is passed, it should be a callable that takes a - package name and returns a boolean. + If should_ignore/should_ignore_dependencies is passed, it should + be a callable that takes a package name and returns a boolean. + + should_ignore_dependencies should be used to filter out dependencies + of packages specified in package_set. """ warn_legacy_versions_and_specifiers(package_set)