MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / parse_version

Function parse_version

core/developer_notifications.py:125–132  ·  view source on GitHub ↗

Parse a version string, returning None if invalid or empty.

(version_str: str | None)

Source from the content-addressed store, hash-verified

123# ─────────────────────────────
124
125def parse_version(version_str: str | None) -> version.Version | None:
126 """Parse a version string, returning None if invalid or empty."""
127 if not version_str:
128 return None
129 try:
130 return version.parse(version_str)
131 except Exception:
132 return None
133
134
135def is_version_in_range(

Callers 1

is_version_in_rangeFunction · 0.85

Calls 1

parseMethod · 0.80

Tested by

no test coverage detected