From 7f38da334ce5b718117e50e3cf0b061c2add5a14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Tue, 5 Sep 2023 13:47:41 +0200 Subject: [PATCH] chore: Prepare signature filter for overloads --- src/mkdocstrings_handlers/python/rendering.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mkdocstrings_handlers/python/rendering.py b/src/mkdocstrings_handlers/python/rendering.py index b2869bf..46b34c0 100644 --- a/src/mkdocstrings_handlers/python/rendering.py +++ b/src/mkdocstrings_handlers/python/rendering.py @@ -88,13 +88,17 @@ def do_format_signature( function: Function, line_length: int, *, + annotations: bool | None = None, # noqa: ARG001 crossrefs: bool = False, # noqa: ARG001 ) -> str: """Format a signature using Black. Parameters: + context: Jinja context, passed automatically. callable_path: The path of the callable we render the signature of. + function: The function we render the signature of. line_length: The line length to give to Black. + annotations: Whether to show type annotations. crossrefs: Whether to cross-reference types in the signature. Returns: @@ -126,6 +130,7 @@ def do_format_attribute( """Format an attribute using Black. Parameters: + context: Jinja context, passed automatically. attribute_path: The path of the callable we render the signature of. attribute: The attribute we render the signature of. line_length: The line length to give to Black.