diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-17 16:11:44 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-23 17:39:02 -0800 |
commit | f208054f6883589239f21d5e46545960c45ece18 (patch) | |
tree | a58de9b342d22b8980f67e14ac8144e273835ffb /python/fatcat_tools/importers/ingest.py | |
parent | 16e0a5cef642f1d180354fa1da9ea568ebdd3946 (diff) | |
download | fatcat-f208054f6883589239f21d5e46545960c45ece18.tar.gz fatcat-f208054f6883589239f21d5e46545960c45ece18.zip |
python: fix api annotations (DefaultApi not ApiClient)
Diffstat (limited to 'python/fatcat_tools/importers/ingest.py')
-rw-r--r-- | python/fatcat_tools/importers/ingest.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/python/fatcat_tools/importers/ingest.py b/python/fatcat_tools/importers/ingest.py index 4f1cc3c4..3dea0446 100644 --- a/python/fatcat_tools/importers/ingest.py +++ b/python/fatcat_tools/importers/ingest.py @@ -3,7 +3,7 @@ from typing import Any, Dict, List, Optional import fatcat_openapi_client from fatcat_openapi_client import ( - ApiClient, + DefaultApi, FileEntity, FilesetEntity, FilesetUrl, @@ -16,7 +16,7 @@ from .common import EntityImporter, make_rel_url class IngestFileResultImporter(EntityImporter): def __init__( - self, api: fatcat_openapi_client.ApiClient, require_grobid: bool = True, **kwargs + self, api: fatcat_openapi_client.DefaultApi, require_grobid: bool = True, **kwargs ) -> None: eg_desc = ( @@ -369,7 +369,7 @@ class SavePaperNowFileImporter(IngestFileResultImporter): them for further human review (as opposed to accepting by default). """ - def __init__(self, api: ApiClient, submit_mode: bool = True, **kwargs) -> None: + def __init__(self, api: DefaultApi, submit_mode: bool = True, **kwargs) -> None: eg_desc = ( kwargs.pop("editgroup_description", None) @@ -408,7 +408,7 @@ class IngestWebResultImporter(IngestFileResultImporter): into webcapture objects. """ - def __init__(self, api: ApiClient, **kwargs) -> None: + def __init__(self, api: DefaultApi, **kwargs) -> None: eg_desc = ( kwargs.pop("editgroup_description", None) @@ -576,7 +576,7 @@ class SavePaperNowWebImporter(IngestWebResultImporter): Like SavePaperNowFileImporter, but for webcapture (HTML) ingest. """ - def __init__(self, api: ApiClient, submit_mode: bool = True, **kwargs) -> None: + def __init__(self, api: DefaultApi, submit_mode: bool = True, **kwargs) -> None: eg_desc = ( kwargs.pop("editgroup_description", None) @@ -628,7 +628,7 @@ class IngestFilesetResultImporter(IngestFileResultImporter): results into fileset objects. """ - def __init__(self, api: ApiClient, **kwargs) -> None: + def __init__(self, api: DefaultApi, **kwargs) -> None: eg_desc = ( kwargs.pop("editgroup_description", None) @@ -854,7 +854,7 @@ class SavePaperNowFilesetImporter(IngestFilesetResultImporter): Like SavePaperNowFileImporter, but for fileset/dataset ingest. """ - def __init__(self, api: ApiClient, submit_mode: bool = True, **kwargs) -> None: + def __init__(self, api: DefaultApi, submit_mode: bool = True, **kwargs) -> None: eg_desc = ( kwargs.pop("editgroup_description", None) |