Skip to content

Commit

Permalink
fix: make query method of interpreter public (#2016)
Browse files Browse the repository at this point in the history
## Summary

Made the `query` method public again, as I believe this currently the
only way to query a intepreter with a custom location.

Closes: #2015
  • Loading branch information
tdejager authored Feb 27, 2024
1 parent f487b2e commit cd484d5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/uv-interpreter/src/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ pub struct Interpreter {

impl Interpreter {
/// Detect the interpreter info for the given Python executable.
pub(crate) fn query(
executable: &Path,
platform: &Platform,
cache: &Cache,
) -> Result<Self, Error> {
pub fn query(executable: &Path, platform: &Platform, cache: &Cache) -> Result<Self, Error> {
let info = InterpreterInfo::query_cached(executable, cache)?;

debug_assert!(
Expand Down

0 comments on commit cd484d5

Please sign in to comment.