(cls, value: object)
| 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 |
no outgoing calls