MCPcopy Index your code
hub / github.com/commitizen-tools/commitizen / from_value

Method from_value

commitizen/version_increment.py:27–33  ·  view source on GitHub ↗
(cls, value: object)

Source from the content-addressed store, hash-verified

25
26 @classmethod
27 def from_value(cls, value: object) -> VersionIncrement:
28 if not isinstance(value, str):
29 return VersionIncrement.NONE
30 try:
31 return cls[value]
32 except KeyError:
33 return VersionIncrement.NONE

Callers 2

__call__Method · 0.80

Calls

no outgoing calls

Tested by 1