mirror of
				https://github.com/astral-sh/ruff.git
				synced 2025-10-31 03:55:09 +00:00 
			
		
		
		
	[ty] Add "kind" to completion suggestions
This makes use of the new `Type` field on `Completion` to figure out the "kind" of a `Completion`. The mapping here is perhaps a little suspect for some cases. Closes astral-sh/ty#775
This commit is contained in:
		
							parent
							
								
									fea84e8777
								
							
						
					
					
						commit
						1eff0300d3
					
				
					 3 changed files with 134 additions and 6 deletions
				
			
		|  | @ -15,7 +15,7 @@ pub use program::{ | |||
|     PythonVersionWithSource, SearchPathSettings, | ||||
| }; | ||||
| pub use python_platform::PythonPlatform; | ||||
| pub use semantic_model::{Completion, HasType, NameKind, SemanticModel}; | ||||
| pub use semantic_model::{Completion, CompletionKind, HasType, NameKind, SemanticModel}; | ||||
| pub use site_packages::{PythonEnvironment, SitePackagesPaths, SysPrefixPathOrigin}; | ||||
| pub use util::diagnostics::add_inferred_python_version_hint_to_diagnostic; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andrew Gallant
						Andrew Gallant