mirror of
				https://github.com/astral-sh/ruff.git
				synced 2025-10-31 03:55:09 +00:00 
			
		
		
		
	[flake8-async] Make ASYNC110 example error out-of-the-box (#18975)
				
					
				
			This commit is contained in:
		
							parent
							
								
									1874d52eda
								
							
						
					
					
						commit
						85b2a08b5c
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -16,6 +16,8 @@ use crate::rules::flake8_async::helpers::AsyncModule; | |||
| ///
 | ||||
| /// ## Example
 | ||||
| /// ```python
 | ||||
| /// import asyncio
 | ||||
| ///
 | ||||
| /// DONE = False
 | ||||
| ///
 | ||||
| ///
 | ||||
|  | @ -26,6 +28,8 @@ use crate::rules::flake8_async::helpers::AsyncModule; | |||
| ///
 | ||||
| /// Use instead:
 | ||||
| /// ```python
 | ||||
| /// import asyncio
 | ||||
| ///
 | ||||
| /// DONE = asyncio.Event()
 | ||||
| ///
 | ||||
| ///
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 GiGaGon
						GiGaGon