File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -522,7 +522,7 @@ async def gen(app: web.Application) -> AsyncIterator[None]:
522522 await  g .__anext__ ()
523523
524524 # directly append the primed generator to exits to exercise cleanup path 
525-  app .cleanup_ctx ._exits .append (g )  # type: ignore[attr-defined] 
525+  app .cleanup_ctx ._exits .append (g )
526526
527527 # cleanup should consume the generator (second __anext__ -> StopAsyncIteration) 
528528 await  app .cleanup ()
@@ -538,7 +538,7 @@ async def gen(app: web.Application) -> AsyncIterator[None]:
538538
539539 g  =  gen (app )
540540 await  g .__anext__ ()
541-  app .cleanup_ctx ._exits .append (g )  # type: ignore[attr-defined] 
541+  app .cleanup_ctx ._exits .append (g )
542542
543543 with  pytest .raises (RuntimeError ):
544544 await  app .cleanup ()
@@ -548,7 +548,7 @@ async def test_cleanup_ctx_unknown_entry_records_error() -> None:
548548 app  =  web .Application ()
549549
550550 # append an object of unknown type 
551-  app .cleanup_ctx ._exits .append (object ())  # type: ignore[attr-defined] 
551+  app .cleanup_ctx ._exits .append (object ())
552552
553553 with  pytest .raises (RuntimeError ):
554554 await  app .cleanup ()
                                 You can’t perform that action at this time. 
               
                  
0 commit comments