mirror of
				https://github.com/astral-sh/ruff.git
				synced 2025-10-31 12:05:57 +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
 | /// ## Example
 | ||||||
| /// ```python
 | /// ```python
 | ||||||
|  | /// import asyncio
 | ||||||
|  | ///
 | ||||||
| /// DONE = False
 | /// DONE = False
 | ||||||
| ///
 | ///
 | ||||||
| ///
 | ///
 | ||||||
|  | @ -26,6 +28,8 @@ use crate::rules::flake8_async::helpers::AsyncModule; | ||||||
| ///
 | ///
 | ||||||
| /// Use instead:
 | /// Use instead:
 | ||||||
| /// ```python
 | /// ```python
 | ||||||
|  | /// import asyncio
 | ||||||
|  | ///
 | ||||||
| /// DONE = asyncio.Event()
 | /// DONE = asyncio.Event()
 | ||||||
| ///
 | ///
 | ||||||
| ///
 | ///
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 GiGaGon
						GiGaGon