MCPcopy Create free account
hub / github.com/astral-sh/ruff / from

Method from

crates/ruff_python_ast/src/python_version.rs:106–109  ·  view source on GitHub ↗
(value: (u8, u8))

Source from the content-addressed store, hash-verified

104
105impl From<(u8, u8)> for PythonVersion {
106 fn from(value: (u8, u8)) -> Self {
107 let (major, minor) = value;
108 Self { major, minor }
109 }
110}
111
112impl TryFrom<(i64, i64)> for PythonVersion {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected