MCPcopy Create free account
hub / github.com/OpenRaiser/NanoResearch / _parse_patch

Method _parse_patch

nanoresearch/evolution/skills.py:172–177  ·  view source on GitHub ↗
(version: str)

Source from the content-addressed store, hash-verified

170
171 @staticmethod
172 def _parse_patch(version: str) -> tuple[int, int, int]:
173 try:
174 major, minor, patch = [int(part) for part in str(version).split(".")[:3]]
175 return major, minor, patch
176 except Exception:
177 return 0, 1, 0
178
179 def _bump_patch(self, version: str) -> str:
180 major, minor, patch = self._parse_patch(version)

Callers 1

_bump_patchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected