Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ exclude = (pylib/anki/_vendor)

[mypy-anki.*]
disallow_untyped_defs = True
[mypy-anki.importing.*]
disallow_untyped_defs = False
[mypy-anki.exporting]
disallow_untyped_defs = False
[mypy-aqt]
strict_optional = True
[mypy-aqt.browser.*]
Expand All @@ -40,8 +36,6 @@ strict_optional = True
strict_optional = True
[mypy-aqt.editor]
strict_optional = True
[mypy-aqt.importing]
strict_optional = True
[mypy-aqt.preferences]
strict_optional = True
[mypy-aqt.overview]
Expand Down
28 changes: 17 additions & 11 deletions docs-site/addons/hooks-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,27 @@ instead.

---

### `media_files_did_export`
### `media_files_did_export` _(Obsolete)_

**Args:** <code>count: int</code>

Only used by legacy .apkg exporter. Will be deprecated in the future.
<Warning>

Obsolete, do not use.

</Warning>

---

### `legacy_export_progress`
### `legacy_export_progress` _(Obsolete)_

**Args:** <code>progress: str</code>

Temporary hook used in transition to new import/export code.
<Warning>

Obsolete, do not use.

</Warning>

---

Expand Down Expand Up @@ -118,17 +126,15 @@ Can modify the resulting text after rendering completes.

---

### `importing_importers`
### `importing_importers` _(Obsolete)_

**Args:** <code>importers: list[tuple[str, Any]]</code>

Allows updating the list of importers.
The resulting list is not saved and should be changed each time the
filter is called.
<Warning>
Obsolete, do not use.

NOTE: Updates to the import/export code are expected in the coming
months, and this hook may be replaced with another solution at that
time. Tracked on https://github.com/ankitects/anki/issues/1018
</Warning>

Comment on lines -129 to 132

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is issue #1018 still relevant or can it be closed by this PR?

---

Expand Down
Loading
Loading