-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Python type parameter lists #366
Conversation
a11336f
to
3da9c2d
Compare
This is basically feature complete but still needs some work on documentation and testing. |
ea315d9
to
4d8f8d5
Compare
The build failure due to undefined reference |
4d8f8d5
to
fd8029d
Compare
b3dea3a
to
28ef75d
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #366 +/- ##
==========================================
- Coverage 63.03% 63.00% -0.03%
==========================================
Files 67 68 +1
Lines 8207 8502 +295
==========================================
+ Hits 5173 5357 +184
- Misses 3034 3145 +111 ☔ View full report in Codecov by Sentry. |
CI now passes. |
28ef75d
to
76ab811
Compare
e11db38
to
81b5961
Compare
Sphinx has partial support for type parameter lists: they are supported by the Python domain in signatures, but are not supported by autodoc. This adds the following support: - Sphinx Python domain for type parameter fields in docstrings, with sphinx.ext.napoleon support as well. - Support for type parameters as Sphinx objects, with cross-linking, like the existing support for function parameters as Sphinx objects. - Support in apigen for PEP 695 type parameters, and for displaying pre-PEP 695 separately-defined TypeVar types as PEP 695 type parameters. Co-authored-by: Brendan <2bndy5@gmail.com>
81b5961
to
640b5c7
Compare
Sphinx has partial support for type parameter lists: they are supported by the Python domain in signatures, but are not supported by autodoc.
This adds the following support:
Sphinx Python domain for type parameter fields in docstrings, with sphinx.ext.napoleon support as well.
Support for type parameters as Sphinx objects, with cross-linking, like the existing support for function parameters as Sphinx objects.
Support in apigen for PEP 695 type parameters, and for displaying pre-PEP 695 separately-defined TypeVar types as PEP 695 type parameters.