Skip to content

Commit

Permalink
chore: Prepare signature filter for overloads
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Sep 5, 2023
1 parent eed51ee commit 7f38da3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mkdocstrings_handlers/python/rendering.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 7f38da3

Please sign in to comment.