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

Function parse

tools/gyp/pylib/packaging/version.py:45–54  ·  view source on GitHub ↗

Parse the given version string. >>> parse('1.0.dev1') :param version: The version string to parse. :raises InvalidVersion: When the version string is not a valid version.

(version: str)

Source from the content-addressed store, hash-verified

43
44
45def parse(version: str) -> "Version":
46 """Parse the given version string.
47
48 >>> parse('1.0.dev1')
49 <Version('1.0.dev1')>
50
51 :param version: The version string to parse.
52 :raises InvalidVersion: When the version string is not a valid version.
53 """
54 return Version(version)
55
56
57class InvalidVersion(ValueError):

Callers 2

GetChildrenVspropsFunction · 0.50
mainFunction · 0.50

Calls 1

VersionClass · 0.70

Tested by

no test coverage detected