Skip to content

Commit 7e12644

Browse files
committed
fixup
1 parent 77f23ea commit 7e12644

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

docs/usage/configuration/headings.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,6 @@ To customize symbols, see [Customizing symbol types](../customization.md/#symbol
202202

203203
- **:octicons-package-24: Type [`bool`][] :material-equal: `False`{ title="default value" }**
204204

205-
Here's a ref-style link: [title][[ref]]
206-
207-
[[ref]]: https://example.com
208-
209205
Whether to render headings for generic class, function/method and type alias
210206
type parameters.
211207

src/mkdocstrings_handlers/python/_internal/rendering.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
DocstringSectionTypeAliases,
3131
DocstringTypeAlias,
3232
Object,
33+
TypeAlias,
3334
)
3435
from jinja2 import TemplateNotFound, pass_context, pass_environment
3536
from markupsafe import Markup

tests/test_rendering.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def test_format_signature(name: Markup, signature: str) -> None:
5151
signature: Signature to format.
5252
"""
5353
for length in (5, 100):
54-
assert rendering._format_signature(name, signature, "def", length)
54+
assert rendering._format_signature(name, signature, length)
5555

5656

5757
@dataclass
@@ -78,7 +78,7 @@ def test_filter_objects(names: list[str], filter_params: dict[str, Any], expecte
7878
expected_names: Names expected to be kept.
7979
"""
8080
objects = {name: _FakeObject(name) for name in names}
81-
filtered = rendering.do_filter_objects(objects, **filter_params)
81+
filtered = rendering.do_filter_objects(objects, **filter_params) # type: ignore[arg-type]
8282
filtered_names = {obj.name for obj in filtered}
8383
assert set(filtered_names) == set(expected_names)
8484

0 commit comments

Comments
 (0)