mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-27 18:36:44 +00:00
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
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue