mypy: add typing annotations for novel lister abstractions

This commit is contained in:
Stefano Zacchiroli 2019-10-18 17:32:03 +02:00
parent 7dfd811e16
commit 6159faa2f5
3 changed files with 7 additions and 6 deletions

View file

@ -77,7 +77,7 @@ class CRANLister(SimpleLister):
"""
return None
def list_packages(self, *args) -> List[Mapping[str, str]]:
def list_packages(self, response) -> List[Mapping[str, str]]:
"""Runs R script which uses inbuilt API to return a json response
containing data about the R packages.