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

Method fmt

crates/ruff_python_ast/src/python_version.rs:125–128  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

123
124impl fmt::Display for PythonVersion {
125 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
126 let PythonVersion { major, minor } = self;
127 write!(f, "{major}.{minor}")
128 }
129}
130
131#[derive(thiserror::Error, Debug, PartialEq, Eq, Clone)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected