Skip to content

feature: Option to hide implementation signature in case of overloads #213

Closed

Description

@pawamoy

Is your feature request related to a problem? Please describe.

See #182 (comment). Implementations often combine all parameters and their types together and can be hard to read, compared to overloads with their clean signatures.

Describe the solution you'd like

An option to hide the implementation signature and only render the overloads.

With separated signatures, easy, just render the overloads, then the docstring of the implementation (or something else depending on how overloads rendering evolves).

With signatures in heading, just don't render the implementation signature in the heading.

Describe alternatives you've considered

Overriding templates, but our templates and their blocks still not allow lightweight customization. They often require to copy-paste big blocks of Jinja code, which in the long-term is not great for maintenance (no easy way to get recent updates while maintaining your own changes).

Additional context

/

Activity

  1. added
    feature
    insiders
    fund
    on Dec 3, 2024
  2. self-assigned this
    on Dec 3, 2024
  3. removed
    fund
    on Mar 2, 2025
  4. pawamoy commented on Jun 30, 2025

    @pawamoy
    MemberAuthor

    Implementation guidance:

    • add an option into config.py, in RecursiveOptions (default to false)
    • add relevant documentation in the docs
    • update the material/base/function.html.jinja template to use the option
  5. johnslavik commented on Jul 1, 2025

    @johnslavik
    Member

    in RecursiveOptions (default to false)

    Note, we decided on PythonInputOptions for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featureinsiders

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions