-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Description
Context
Griffe recently added support for PEP 695 generics. It would b useful for mkdocs-material to support them too.
Description
There are mainly two features that would be worth having:
Documenting type aliases
Currently, trying to include documentation to type aliases (type MyAlias = ...) leads to a runtime exception:
jinja2.exceptions.UndefinedError: 'type_alias' is undefined
In a recent past version, the type_alias.html.jinja template was missing altogether so I imagine this is currently being worked on.
Adding support for "Type Parameters" Sections on Docstrings
Currently, these sections are not shown.
Related links
Use Cases
PEP 695 generics are seeing increasing adoption (since Python 3.12) and require specific mkdocs-material support.
Visuals
No response
Before submitting
- I have read and followed the change request guidelines.
- I have verified that my idea is a change request and not a bug report.
- I have ensured that, to the best of my knowledge, my idea will benefit the entire community.
- I have included relevant links to the documentation, related issues, and discussions to underline the need for my idea.
Metadata
Metadata
Assignees
Labels
No labels