MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / __init__

Method __init__

commitizen/version_schemes.py:46–52  ·  view source on GitHub ↗

Initialize a version object from its string representation. :raises InvalidVersion: If the ``version`` does not conform to the scheme in any way.

(self, version: str)

Source from the content-addressed store, hash-verified

44 """Regex capturing this version scheme into a `version` group"""
45
46 def __init__(self, version: str) -> None:
47 """
48 Initialize a version object from its string representation.
49
50 :raises InvalidVersion: If the ``version`` does not conform to the scheme in any way.
51 """
52 raise NotImplementedError("must be implemented")
53
54 def __str__(self) -> str:
55 """A string representation of the version that can be rounded-tripped."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected