Skip to content

Commit 7f38da3

Browse files
committed
chore: Prepare signature filter for overloads
1 parent eed51ee commit 7f38da3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/mkdocstrings_handlers/python/rendering.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,17 @@ def do_format_signature(
8888
function: Function,
8989
line_length: int,
9090
*,
91+
annotations: bool | None = None, # noqa: ARG001
9192
crossrefs: bool = False, # noqa: ARG001
9293
) -> str:
9394
"""Format a signature using Black.
9495
9596
Parameters:
97+
context: Jinja context, passed automatically.
9698
callable_path: The path of the callable we render the signature of.
99+
function: The function we render the signature of.
97100
line_length: The line length to give to Black.
101+
annotations: Whether to show type annotations.
98102
crossrefs: Whether to cross-reference types in the signature.
99103
100104
Returns:
@@ -126,6 +130,7 @@ def do_format_attribute(
126130
"""Format an attribute using Black.
127131
128132
Parameters:
133+
context: Jinja context, passed automatically.
129134
attribute_path: The path of the callable we render the signature of.
130135
attribute: The attribute we render the signature of.
131136
line_length: The line length to give to Black.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy