Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Jan 6, 2024
1 parent 8981651 commit acf9d41
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions aiosqlite/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit acf9d41

Please sign in to comment.