Skip to content

Commit

Permalink
Do not use free-threaded interpreters without a free-threaded request
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Oct 14, 2024
1 parent 01c44af commit 22b4288
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/uv-python/src/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1798,7 +1798,7 @@ impl VersionRequest {

/// Check if a interpreter matches the requested Python version.
pub(crate) fn matches_interpreter(&self, interpreter: &Interpreter) -> bool {
if self.is_freethreaded() && !interpreter.gil_disabled() {
if self.is_freethreaded() != interpreter.gil_disabled() {
return false;
}
match self {
Expand Down

0 comments on commit 22b4288

Please sign in to comment.