mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-19 03:28:42 +00:00
Avoid showing negations of ranges in error messages (#981)
Closes https://github.com/astral-sh/puffin/issues/980
This commit is contained in:
parent
02ed195982
commit
ae7a2cddc2
2 changed files with 7 additions and 3 deletions
|
|
@ -433,7 +433,11 @@ impl std::fmt::Display for PackageTerm<'_> {
|
|||
let package = self.package;
|
||||
write!(f, "{package}!={version}")
|
||||
} else {
|
||||
write!(f, "!( {} )", PackageRange::compatibility(self.package, set))
|
||||
write!(
|
||||
f,
|
||||
"{}",
|
||||
PackageRange::compatibility(self.package, &set.complement())
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue