mirror of
				https://github.com/astral-sh/ruff.git
				synced 2025-10-30 19:47:52 +00:00 
			
		
		
		
	[ty] Implement non-stdlib stub mapping for classes and functions (#19471)
This implements mapping of definitions in stubs to definitions in the "real" implementation using the approach described in https://github.com/astral-sh/ty/issues/788#issuecomment-3097000287 I've tested this with goto-definition in vscode with code that uses `colorama` and `types-colorama`. Notably this implementation does not add support for stub-mapping stdlib modules, which can be done as an essentially orthogonal followup in the implementation of `resolve_real_module`. Part of https://github.com/astral-sh/ty/issues/788
This commit is contained in:
		
							parent
							
								
									6d4687c9af
								
							
						
					
					
						commit
						c82fa94e0a
					
				
					 9 changed files with 881 additions and 49 deletions
				
			
		|  | @ -4,7 +4,7 @@ pub use module::{KnownModule, Module}; | |||
| pub use path::SearchPathValidationError; | ||||
| pub use resolver::SearchPaths; | ||||
| pub(crate) use resolver::file_to_module; | ||||
| pub use resolver::resolve_module; | ||||
| pub use resolver::{resolve_module, resolve_real_module}; | ||||
| use ruff_db::system::SystemPath; | ||||
| 
 | ||||
| use crate::Db; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Aria Desires
						Aria Desires