mirror of
				https://github.com/astral-sh/ruff.git
				synced 2025-10-31 12:05:57 +00:00 
			
		
		
		
	[ty] Minor change to diagnostic message for invalid Literal uses (#19482)
This commit is contained in:
		
							parent
							
								
									215a1c55d4
								
							
						
					
					
						commit
						cb60ecef6b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -9965,7 +9965,7 @@ impl<'db> TypeInferenceBuilder<'db, '_> { | ||||||
|                         }; |                         }; | ||||||
|                         builder.into_diagnostic( |                         builder.into_diagnostic( | ||||||
|                             "Type arguments for `Literal` must be `None`, \ |                             "Type arguments for `Literal` must be `None`, \ | ||||||
|                             a literal value (int, bool, str, or bytes), or an enum value",
 |                             a literal value (int, bool, str, or bytes), or an enum member",
 | ||||||
|                         ); |                         ); | ||||||
|                     } |                     } | ||||||
|                     Type::unknown() |                     Type::unknown() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 David Peter
						David Peter