(cls, str)
| 15 | |
| 16 | @classmethod |
| 17 | def from_str(cls, str): |
| 18 | try: |
| 19 | return cls[str] |
| 20 | except KeyError: |
| 21 | return cls.Unknown |
| 22 | |
| 23 | def match(self, sd_model): |
| 24 | if sd_model.is_sd1 and self == SDVersion.SD1: |
no outgoing calls
no test coverage detected