MCPcopy Index your code
hub / github.com/nodejs/node / _process_version

Method _process_version

tools/gyp/pylib/packaging/metadata.py:544–552  ·  view source on GitHub ↗
(self, value: str)

Source from the content-addressed store, hash-verified

542 return value
543
544 def _process_version(self, value: str) -> version_module.Version:
545 if not value:
546 raise self._invalid_metadata("{field} is a required field")
547 try:
548 return version_module.parse(value)
549 except version_module.InvalidVersion as exc:
550 raise self._invalid_metadata(
551 f"{value!r} is invalid for {{field}}", cause=exc
552 )
553
554 def _process_summary(self, value: str) -> str:
555 """Check the field contains no newlines."""

Callers

nothing calls this directly

Calls 2

_invalid_metadataMethod · 0.95
parseMethod · 0.65

Tested by

no test coverage detected