mirror of
				https://github.com/astral-sh/ruff.git
				synced 2025-10-31 12:05:57 +00:00 
			
		
		
		
	
		
			
				
	
	
	
	
		
			236 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			236 B
		
	
	
	
	
	
	
	
Condition with object that implements __bool__ incorrectly
class NotBoolable:
    __bool__: int = 3
# error: [unsupported-bool-conversion] "Boolean conversion is unsupported for type `NotBoolable`"
assert NotBoolable()
