mypy: Fix errors with release >= v0.900

This commit is contained in:
Antoine Lambert 2021-06-09 14:02:23 +02:00
parent de23a2219e
commit bf7d44db3c
3 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,6 @@
pytest
pytest-mock
requests_mock
types-click
types-pyyaml
types-requests

View file

@ -1,4 +1,4 @@
from pkgutil import extend_path
from typing import Iterable
from typing import List
__path__ = extend_path(__path__, __name__) # type: Iterable[str]
__path__: List[str] = extend_path(__path__, __name__)

View file

@ -67,7 +67,7 @@ class BitbucketLister(Lister[BitbucketListerState, List[Dict[str, Any]]]):
self.incremental = incremental
self.url_params = {
self.url_params: Dict[str, Any] = {
"pagelen": page_size,
# only return needed JSON fields in bitbucket API responses
# (also prevent errors 500 when listing)