mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 12:55:05 +00:00
[red-knot] Add support for --system-site-packages
virtual environments (#12759)
This commit is contained in:
parent
83db48d316
commit
37b9bac403
11 changed files with 770 additions and 199 deletions
|
@ -59,6 +59,15 @@ pub struct PythonVersion {
|
|||
pub minor: u8,
|
||||
}
|
||||
|
||||
impl PythonVersion {
|
||||
pub fn free_threaded_build_available(self) -> bool {
|
||||
self >= PythonVersion {
|
||||
major: 3,
|
||||
minor: 13,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl TryFrom<(&str, &str)> for PythonVersion {
|
||||
type Error = std::num::ParseIntError;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue