Skip to content

Commit

Permalink
Ignore mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
hbcarlos committed Oct 5, 2023
1 parent 6f84e6f commit 32c9063
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ypy_websocket/stores/file_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async def exists(self, path: str) -> bool:

return await anyio.Path(self._get_document_path(path)).exists()

async def list(self) -> AsyncIterator[str]:
async def list(self) -> AsyncIterator[str]: # type: ignore[override]
"""
Returns a list with the name/path of the documents stored.
"""
Expand Down
6 changes: 3 additions & 3 deletions ypy_websocket/stores/sqlite_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import time
from logging import Logger, getLogger
from typing import AsyncIterator, Awaitable, Callable
from typing import Any, AsyncIterator, Awaitable, Callable

import aiosqlite
import anyio
Expand Down Expand Up @@ -130,7 +130,7 @@ async def exists(self, path: str) -> bool:
)
return (await cursor.fetchone()) is not None

async def list(self) -> AsyncIterator[str]:
async def list(self) -> AsyncIterator[str]: # type: ignore[override]
"""
Returns a list with the name/path of the documents stored.
"""
Expand Down Expand Up @@ -166,7 +166,7 @@ async def get(self, path: str, updates: bool = False) -> dict | None:
if doc is None:
return None

list_updates = []
list_updates: Any = []
if updates:
cursor = await db.execute(
"SELECT yupdate, metadata, timestamp FROM yupdates WHERE path = ?",
Expand Down

0 comments on commit 32c9063

Please sign in to comment.