update missed storage._Collection references

This commit is contained in:
Damien Elmes 2020-05-20 19:45:46 +10:00
parent 50fdf9b03d
commit e2bb5cd14a
4 changed files with 4 additions and 4 deletions

View file

@ -363,7 +363,7 @@ class _NotesWillBeDeletedHook:
def append( def append(
self, cb: Callable[["anki.collection.Collection", List[int]], None] self, cb: Callable[["anki.collection.Collection", List[int]], None]
) -> None: ) -> None:
"""(col: anki.storage._Collection, ids: List[int])""" """(col: anki.collection.Collection, ids: List[int])"""
self._hooks.append(cb) self._hooks.append(cb)
def remove( def remove(

View file

@ -22,7 +22,7 @@ hooks = [
Hook(name="schema_will_change", args=["proceed: bool"], return_type="bool"), Hook(name="schema_will_change", args=["proceed: bool"], return_type="bool"),
Hook( Hook(
name="notes_will_be_deleted", name="notes_will_be_deleted",
args=["col: anki.storage._Collection", "ids: List[int]"], args=["col: anki.collection.Collection", "ids: List[int]"],
legacy_hook="remNotes", legacy_hook="remNotes",
), ),
Hook( Hook(

View file

@ -705,7 +705,7 @@ class _CollectionDidLoadHook:
_hooks: List[Callable[["anki.collection.Collection"], None]] = [] _hooks: List[Callable[["anki.collection.Collection"], None]] = []
def append(self, cb: Callable[["anki.collection.Collection"], None]) -> None: def append(self, cb: Callable[["anki.collection.Collection"], None]) -> None:
"""(col: anki.storage._Collection)""" """(col: anki.collection.Collection)"""
self._hooks.append(cb) self._hooks.append(cb)
def remove(self, cb: Callable[["anki.collection.Collection"], None]) -> None: def remove(self, cb: Callable[["anki.collection.Collection"], None]) -> None:

View file

@ -370,7 +370,7 @@ hooks = [
Hook(name="profile_will_close", legacy_hook="unloadProfile"), Hook(name="profile_will_close", legacy_hook="unloadProfile"),
Hook( Hook(
name="collection_did_load", name="collection_did_load",
args=["col: anki.storage._Collection"], args=["col: anki.collection.Collection"],
legacy_hook="colLoading", legacy_hook="colLoading",
), ),
Hook( Hook(