@@ -109,7 +109,6 @@ def _init_load_profile(
109109
110110 def _init_load_collection (self ) -> None :
111111 """Load the Anki collection"""
112- # pylint: disable=import-outside-toplevel
113112 from anki .collection import Collection
114113 from anki .errors import DBError
115114
@@ -132,7 +131,6 @@ def _init_load_collection(self) -> None:
132131 @staticmethod
133132 def _init_load_config () -> None :
134133 """Load custom configuration"""
135- # pylint: disable=import-outside-toplevel
136134 from anki import latex
137135
138136 # Update LaTeX commands
@@ -160,7 +158,6 @@ def __exit__(
160158
161159 def sync (self ) -> None :
162160 """Sync collection to AnkiWeb"""
163- # pylint: disable=import-outside-toplevel
164161 from anki .sync import SyncAuth
165162
166163 if self ._profile is None :
@@ -230,7 +227,6 @@ def sync(self) -> None:
230227
231228 def check_media (self ) -> None :
232229 """Check media (will rebuild missing LaTeX files)"""
233- # pylint: disable=import-outside-toplevel
234230 from anki .notes import NoteId
235231
236232 with cd (self .col .media .dir ()):
@@ -289,7 +285,6 @@ def delete_notes(self, ids: NoteId | list[NoteId]) -> None:
289285
290286 def get_model (self , model_name : str ) -> Optional [NotetypeDict ]:
291287 """Get model from model name"""
292- # pylint: disable=import-outside-toplevel
293288 from anki .models import NotetypeId
294289
295290 model_id = self .model_name_to_id .get (model_name )
0 commit comments