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 an abstactmethod directive to the Python ReST domain #65439
Comments
I'd like to be able to mark abstract methods in the docs more explicitly and have their presentation in the docs be more obvious. So I'd like to propose "abstractmethod" as a new directive to join the existing ones (classmethod, staticmethod, etc.). (This is motivated by msg216314.) |
Here's patch. The new PyAbstractMethod class is basically a subclass of the sphinx.domains.python.PyClassmember class which implements the method, classmethod and staticmethod directives. |
LGTM without having tested it. |
Are you willing to check this in, Berker? Or is it not needed anymore? |
New changeset 1d0d8b27a4e6 by Berker Peksag in branch '3.5': New changeset 84468e1aea61 by Berker Peksag in branch 'default': |
Thanks for reminding me of this issue, Brett. I have also updated numbers and selectors docs to use the new directive. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: