Skip to content

Commit f219276

Browse files
abitrollylayday
andauthored
docs: first argument for _has_dependency is a name (#970)
* docs: first argument for _has_dependency is a name * Avoid confusion with importable packages Co-authored-by: layday <layday@protonmail.com> --------- Co-authored-by: layday <layday@protonmail.com>
1 parent 7adb29e commit f219276

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/build/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def make_extra_environ(self) -> Mapping[str, str] | None:
4141

4242
def _has_dependency(name: str, minimum_version_str: str | None = None, /, **distargs: object) -> bool | None:
4343
"""
44-
Given a path, see if a package is present and return True if the version is
44+
Given a distribution name, see if it is present and return True if the version is
4545
sufficient for build, False if it is not, None if the package is missing.
4646
"""
4747
from packaging.version import Version

0 commit comments

Comments
 (0)