mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
update missed storage._Collection references
This commit is contained in:
parent
50fdf9b03d
commit
e2bb5cd14a
4 changed files with 4 additions and 4 deletions
|
@ -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(
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue