Skip to content
Snippets Groups Projects
Commit 37335275 authored by Sybren A. Stüvel's avatar Sybren A. Stüvel
Browse files

Fixed type annotation

parent a63c6975
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@ for efficient conversion of Python objects into a binary data blob.
import asyncio
import pickle
import sqlite3
import typing
import attr
......@@ -90,7 +91,7 @@ class TaskUpdateQueue:
await self.flush_and_catch(loop=loop)
self._log.warning('Stopping work loop')
def _queue(self) -> (int, str, object):
def _queue(self) -> typing.Iterable[typing.Tuple[int, str, object]]:
"""Yields (rowid, url, unpickled payload) tuples from the database."""
if self._db is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment