Skip to content

Commit e239cf3

Browse files
committed
chore: Format, clean up
1 parent 7824297 commit e239cf3

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

tests/test_extension.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,6 @@ def test_register_every_identifier_alias(plugin: MkdocstringsPlugin, ext_markdow
158158
"""Assert that we don't preemptively register all identifiers of a rendered object."""
159159
handler = plugin._handlers.get_handler("python") # type: ignore[union-attr]
160160
ids = ("id1", "id2", "id3")
161-
# TODO: Remove line when Python handler removes its `get_anchors` method.
162-
handler.get_anchors = lambda _: ids # type: ignore[union-attr]
163161
handler.get_aliases = lambda _: ids # type: ignore[method-assign]
164162
autorefs = ext_markdown.parser.blockprocessors["mkdocstrings"]._autorefs # type: ignore[attr-defined]
165163

tests/test_handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
from typing import TYPE_CHECKING
77

88
import pytest
9+
from dirty_equals import IsStr
910
from jinja2.exceptions import TemplateNotFound
1011
from markdown import Markdown
11-
from dirty_equals import IsStr
1212

1313
from mkdocstrings.handlers.base import Highlighter
1414

0 commit comments

Comments
 (0)