mirror of https://github.com/astral-sh/uv
Improve display of interpreter implementation names (#3749)
e.g. instead of ``` ❯ uv venv --python pypy@3.10 × No interpreter found for pypy 3.10 in search path ``` we say ``` ❯ uv venv --python pypy@3.10 × No interpreter found for PyPy 3.10 in search path ```
This commit is contained in:
parent
845d788c91
commit
d5ac2f53d3
|
|
@ -46,6 +46,9 @@ impl FromStr for ImplementationName {
|
|||
|
||||
impl Display for ImplementationName {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.write_str(self.as_str())
|
||||
match self {
|
||||
Self::CPython => f.write_str("CPython"),
|
||||
Self::PyPy => f.write_str("PyPy"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue