From f208054f6883589239f21d5e46545960c45ece18 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 17 Nov 2021 16:11:44 -0800 Subject: python: fix api annotations (DefaultApi not ApiClient) --- python/fatcat_tools/reviewers/review_common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/fatcat_tools/reviewers/review_common.py') 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()] -- cgit v1.2.3