Skip to content

Commit 5f5dd32

Browse files
committed
removed unused type ignores
1 parent 160ab95 commit 5f5dd32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_web_app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)