mirror of
				https://github.com/astral-sh/ruff.git
				synced 2025-10-31 12:05:57 +00:00 
			
		
		
		
	 fd36754beb
			
		
	
	
		fd36754beb
		
			
		
	
	
	
	
		
			
			## Summary We had an early `continue` in this loop, and we weren't setting `comparator = next;` when continuing... This PR removes the early continue altogether for clarity. Closes https://github.com/astral-sh/ruff/issues/9374. ## Test Plan `cargo test`
		
			
				
	
	
		
			55 lines
		
	
	
	
		
			707 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
	
		
			707 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| #: E711
 | |
| if res == None:
 | |
|     pass
 | |
| #: E711
 | |
| if res != None:
 | |
|     pass
 | |
| #: E711
 | |
| if None == res:
 | |
|     pass
 | |
| #: E711
 | |
| if None != res:
 | |
|     pass
 | |
| #: E711
 | |
| if res[1] == None:
 | |
|     pass
 | |
| #: E711
 | |
| if res[1] != None:
 | |
|     pass
 | |
| #: E711
 | |
| if None != res[1]:
 | |
|     pass
 | |
| #: E711
 | |
| if None == res[1]:
 | |
|     pass
 | |
| 
 | |
| if x == None != None:
 | |
|     pass
 | |
| 
 | |
| #: Okay
 | |
| if x not in y:
 | |
|     pass
 | |
| 
 | |
| if not (X in Y or X is Z):
 | |
|     pass
 | |
| 
 | |
| if not (X in Y):
 | |
|     pass
 | |
| 
 | |
| if x is not y:
 | |
|     pass
 | |
| 
 | |
| if X is not Y is not Z:
 | |
|     pass
 | |
| 
 | |
| if TrueElement.get_element(True) == TrueElement.get_element(False):
 | |
|     pass
 | |
| 
 | |
| if (True) == TrueElement or x == TrueElement:
 | |
|     pass
 | |
| 
 | |
| assert (not foo) in bar
 | |
| assert {"x": not foo} in bar
 | |
| assert [42, not foo] in bar
 | |
| 
 | |
| assert x in c > 0 == None
 |