Skip to content

Render class type parameters in signatures - #351

Open
itisrmk wants to merge 1 commit into
mkdocstrings:mainfrom
itisrmk:devin/1795854839-render-generic-class-parameters
Open

itisrmk wants to merge 1 commit into
mkdocstrings:mainfrom
itisrmk:devin/1795854839-render-generic-class-parameters

Conversation

@itisrmk

@itisrmk itisrmk commented Nov 28, 2026

Copy link
Copy Markdown

For reviewers

  • I did not use AI
  • I used AI and thoroughly reviewed every code/docs change

Devin drafted the patch and regression tests.

Description of the change

With show_signature_type_parameters enabled, generic classes now render as Box[T], or Pair[T](first, second) when the constructor is merged. This works in inline headings and separate signature blocks on both the Material and Read the Docs themes. Regression tests cover those layouts, constructor merging, and the disabled option. make test and make check pass on Python 3.13.

Relevant resources

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Generic class signatures never show their type parameters

1 participant