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

Method from_str

commitizen/exceptions.py:45–48  ·  view source on GitHub ↗
(cls, value: str)

Source from the content-addressed store, hash-verified

43
44 @classmethod
45 def from_str(cls, value: str) -> ExitCode:
46 if value.isdecimal():
47 return cls(int(value))
48 return cls[value.strip()]
49
50
51class CommitizenException(Exception):

Calls

no outgoing calls