MCPcopy Create free account
hub / github.com/nodejs/node / _compare_less_than_equal

Method _compare_less_than_equal

tools/gyp/pylib/packaging/specifiers.py:441–446  ·  view source on GitHub ↗
(self, prospective: Version, spec: str)

Source from the content-addressed store, hash-verified

439 return not self._compare_equal(prospective, spec)
440
441 def _compare_less_than_equal(self, prospective: Version, spec: str) -> bool:
442
443 # NB: Local version identifiers are NOT permitted in the version
444 # specifier, so local version labels can be universally removed from
445 # the prospective version.
446 return Version(prospective.public) <= Version(spec)
447
448 def _compare_greater_than_equal(self, prospective: Version, spec: str) -> bool:
449

Callers

nothing calls this directly

Calls 1

VersionClass · 0.70

Tested by

no test coverage detected