From acf9d418e5201ee93e9d1e0df454135aaefa6d33 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 5 Jan 2024 21:38:00 -1000 Subject: [PATCH] lint --- aiosqlite/core.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/aiosqlite/core.py b/aiosqlite/core.py index a70d7d1..c2f7449 100644 --- a/aiosqlite/core.py +++ b/aiosqlite/core.py @@ -63,9 +63,7 @@ def __init__( self._running = True self._connection: Optional[sqlite3.Connection] = None self._connector = connector - self._tx: SimpleQueue[ - Optional[Tuple[asyncio.Future, Callable[[], None]]] - ] = SimpleQueue() + self._tx: SimpleQueue[Tuple[asyncio.Future, Callable[[], Any]]] = SimpleQueue() self._iter_chunk_size = iter_chunk_size if loop is not None: @@ -76,7 +74,8 @@ def __init__( def _stop_running(self): self._running = False - self._tx.put_nowait(_STOP_RUNNING_SENTINEL) + # PEP 661 is not accepted yet, so we cannot type a sentinel + self._tx.put_nowait(_STOP_RUNNING_SENTINEL) # type: ignore[arg-type] @property def _conn(self) -> sqlite3.Connection: