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

Method _canonical_spec

tools/gyp/pylib/packaging/specifiers.py:331–336  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

329
330 @property
331 def _canonical_spec(self) -> Tuple[str, str]:
332 canonical_version = canonicalize_version(
333 self._spec[1],
334 strip_trailing_zero=(self._spec[0] != "~="),
335 )
336 return self._spec[0], canonical_version
337
338 def __hash__(self) -> int:
339 return hash(self._canonical_spec)

Callers

nothing calls this directly

Calls 1

canonicalize_versionFunction · 0.85

Tested by

no test coverage detected