Skip to content

Commit b5575fb

Browse files
committed
fix mypy
1 parent 42ea6cc commit b5575fb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/_core/_async/test_sqlite_storage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import uuid
22
from dataclasses import replace
33
from datetime import datetime
4-
from typing import Any
4+
from typing import Any, AsyncIterator
55
from unittest.mock import AsyncMock
66
from zoneinfo import ZoneInfo
77

@@ -391,6 +391,7 @@ async def test_incomplete_entries() -> None:
391391
)
392392

393393
# read only part of the stream
394+
assert isinstance(entry.response.stream, AsyncIterator)
394395
await entry.response.stream.__anext__()
395396

396397
# Verify the entry was created but is incomplete, so get_entries should skip it

tests/_core/_sync/test_sqlite_storage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import uuid
22
from dataclasses import replace
33
from datetime import datetime
4-
from typing import Any
4+
from typing import Any, Iterator
55
from unittest.mock import MagicMock
66
from zoneinfo import ZoneInfo
77

@@ -391,6 +391,7 @@ def test_incomplete_entries() -> None:
391391
)
392392

393393
# read only part of the stream
394+
assert isinstance(entry.response.stream, Iterator)
394395
entry.response.stream.__next__()
395396

396397
# Verify the entry was created but is incomplete, so get_entries should skip it

0 commit comments

Comments
 (0)