From 284805f0958199b2483f876edbc2a3bdece86cae Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 27 Apr 2022 09:29:38 +1000 Subject: [PATCH] Avoid re-exporting protobuf msgs we only use internally --- pylib/anki/collection.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pylib/anki/collection.py b/pylib/anki/collection.py index a0c023f54..0b8979739 100644 --- a/pylib/anki/collection.py +++ b/pylib/anki/collection.py @@ -12,7 +12,6 @@ from anki import ( generic_pb2, import_export_pb2, links_pb2, - notes_pb2, search_pb2, stats_pb2, ) @@ -35,9 +34,6 @@ BrowserRow = search_pb2.BrowserRow BrowserColumns = search_pb2.BrowserColumns StripHtmlMode = card_rendering_pb2.StripHtmlRequest ImportLogWithChanges = import_export_pb2.ImportAnkiPackageResponse -ExportAnkiPackageRequest = import_export_pb2.ExportAnkiPackageRequest -Empty = generic_pb2.Empty -NoteIds = notes_pb2.NoteIds import copy import os @@ -379,7 +375,7 @@ class Collection(DeprecatedNamesMixin): with_scheduling: bool, with_media: bool, ) -> int: - request = ExportAnkiPackageRequest( + request = import_export_pb2.ExportAnkiPackageRequest( out_path=out_path, with_scheduling=with_scheduling, with_media=with_media,