typing: minimal changes to make a no-op mypy run pass

This commit is contained in:
Stefano Zacchiroli 2019-10-11 15:15:09 +02:00
parent 78105940ff
commit 974f80f966
18 changed files with 135 additions and 47 deletions

View file

@ -6,6 +6,8 @@
import re
import time
from typing import Any
from swh.lister.core.indexing_lister import IndexingHttpLister
from swh.lister.github.models import GitHubModel
@ -17,7 +19,7 @@ class GitHubLister(IndexingHttpLister):
API_URL_INDEX_RE = re.compile(r'^.*/repositories\?since=(\d+)')
LISTER_NAME = 'github'
instance = 'github' # There is only 1 instance of such lister
default_min_bound = 0
default_min_bound = 0 # type: Any
def get_model_from_repo(self, repo):
return {