mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose() as coroutine methods (GH-20870)
This commit is contained in:
		
							parent
							
								
									5c6619552d
								
							
						
					
					
						commit
						c054e8f78f
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -578,7 +578,7 @@ Functions and classes provided:
 | 
				
			||||||
   The :meth:`close` method is not implemented, :meth:`aclose` must be used
 | 
					   The :meth:`close` method is not implemented, :meth:`aclose` must be used
 | 
				
			||||||
   instead.
 | 
					   instead.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   .. method:: enter_async_context(cm)
 | 
					   .. coroutinemethod:: enter_async_context(cm)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      Similar to :meth:`enter_context` but expects an asynchronous context
 | 
					      Similar to :meth:`enter_context` but expects an asynchronous context
 | 
				
			||||||
      manager.
 | 
					      manager.
 | 
				
			||||||
| 
						 | 
					@ -592,7 +592,7 @@ Functions and classes provided:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      Similar to :meth:`callback` but expects a coroutine function.
 | 
					      Similar to :meth:`callback` but expects a coroutine function.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
   .. method:: aclose()
 | 
					   .. coroutinemethod:: aclose()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      Similar to :meth:`close` but properly handles awaitables.
 | 
					      Similar to :meth:`close` but properly handles awaitables.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue