(value: SchemaVersionOrStr)
| 59 | type Error = crate::types::Error; |
| 60 | |
| 61 | fn try_from(value: SchemaVersionOrStr) -> Result<Self, Self::Error> { |
| 62 | match value { |
| 63 | SchemaVersionOrStr::SchemaVersion(v) => Ok(v.into()), |
| 64 | SchemaVersionOrStr::Str(s) => { |
| 65 | let v = alpm_types::SchemaVersion::from_str(&s)?; |
| 66 | Ok(v) |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | #[pymodule(gil_used = false, name = "schema", submodule)] |
nothing calls this directly
no test coverage detected