-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements to the location of the return type (#300)
* Improvements to the location of the return type The current strategy to place the rtype is still not fully satisfactory on my own documentation. I think this improves it to avoid any need for fudging. 1. If there is an existing :rtype: don't add another 2. If there is a :returns: anywhere, either add directly before it or modify the :returns: line as appropriate 3. If there is a block of :param: documentation, add directly after this 4. If there is a .. directive, add before the directive 5. Add at the end Step 4 could be refined further, we would really only like to break at directives that introduce headings * Use docutils tree to figure out where params end * Fix changelog * Fix test * Update comment * Update comment
- Loading branch information
Showing
6 changed files
with
293 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Changelog | ||
|
||
## 1.21.2 | ||
## 1.21.3 | ||
|
||
- Use format_annotation to render class attribute type annotations | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
addnodes | ||
ast3 | ||
astext | ||
autodoc | ||
autouse | ||
backfill | ||
|