Skip to content

Commit 3857021

Browse files
committed
refactor: patch stringify_annotation with arbitrary *args and **kwargs
1 parent 9befcdf commit 3857021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sphinx_autodoc_typehints/attributes_patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
orig_handle_signature = PyAttribute.handle_signature
4343

4444

45-
def _stringify_annotation(app: Sphinx, annotation: Any, mode: str = "") -> str: # noqa: ARG001
45+
def _stringify_annotation(app: Sphinx, annotation: Any, *args: Any, **kwargs: Any) -> str: # noqa: ARG001
4646
# Format the annotation with sphinx-autodoc-typehints and inject our magic prefix to tell our patched
4747
# PyAttribute.handle_signature to treat it as rst.
4848
from . import format_annotation # noqa: PLC0415

0 commit comments

Comments
 (0)