diff options
Diffstat (limited to 'python/fatcat_tools/reviewers')
-rw-r--r-- | python/fatcat_tools/reviewers/review_common.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/fatcat_tools/reviewers/review_common.py b/python/fatcat_tools/reviewers/review_common.py index d599b31f..c20b79ea 100644 --- a/python/fatcat_tools/reviewers/review_common.py +++ b/python/fatcat_tools/reviewers/review_common.py @@ -5,7 +5,7 @@ from collections import Counter from typing import Any, List, Optional import fatcat_openapi_client -from fatcat_openapi_client import ApiClient, Editgroup, EditgroupAnnotation, EntityEdit +from fatcat_openapi_client import DefaultApi, Editgroup, EditgroupAnnotation, EntityEdit """ checks should return: @@ -106,7 +106,7 @@ class EditCheck: class ReviewBot: - def __init__(self, api: fatcat_openapi_client.ApiClient, verbose: bool = False, **kwargs): + def __init__(self, api: fatcat_openapi_client.DefaultApi, verbose: bool = False, **kwargs): self.api = api self.checks: List[EditCheck] = [] @@ -281,7 +281,7 @@ class DummyReviewBot(ReviewBot): This bot reviews everything and always passes. """ - def __init__(self, api: ApiClient, **kwargs): + def __init__(self, api: DefaultApi, **kwargs): super().__init__(api, **kwargs) self.checks = [DummyCheck()] |