MCPcopy Create free account
hub / github.com/numpy/numpy / __init__

Method __init__

numpy/_utils/_pep440.py:166–168  ·  view source on GitHub ↗
(self, version)

Source from the content-addressed store, hash-verified

164class LegacyVersion(_BaseVersion):
165
166 def __init__(self, version):
167 self._version = str(version)
168 self._key = _legacy_cmpkey(self._version)
169
170 def __str__(self):
171 return self._version

Callers

nothing calls this directly

Calls 1

_legacy_cmpkeyFunction · 0.85

Tested by

no test coverage detected