mirror of
				https://github.com/astral-sh/uv.git
				synced 2025-10-31 03:55:33 +00:00 
			
		
		
		
	fix: make query method of interpreter public (#2016)
## 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
This commit is contained in:
		
							parent
							
								
									f487b2e8c1
								
							
						
					
					
						commit
						cd484d5d9b
					
				
					 1 changed files with 1 additions and 5 deletions
				
			
		|  | @ -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!( | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim de Jager
						Tim de Jager