Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/nodejs/node
/ _coerce_version
Function
_coerce_version
tools/gyp/pylib/packaging/specifiers.py:34–37 ·
view source on GitHub ↗
(version: UnparsedVersion)
Source
from the content-addressed store, hash-verified
32
33
34
def
_coerce_version(version: UnparsedVersion) -> Version:
35
if
not isinstance(version, Version):
36
version = Version(version)
37
return
version
38
39
40
class
InvalidSpecifier(ValueError):
Callers
3
contains
Method · 0.85
filter
Method · 0.85
filter
Method · 0.85
Calls
1
Version
Class · 0.70
Tested by
no test coverage detected