Closed eric-wieser closed 3 years ago
Since it seems we're vendoring that extension, I'll reopen the issue until someone looked into updating that and rebuilding the docs.
@Thom1729 ?
It's not that you're vendoring it, but that I've extracted your implementation (with history + license) to a standalone package so that I can use it in my own docs.
It would probably make sense to unvendor after I've done a release, but I'd like to make contact with @Thom1729 first.
Ah, that makes sense. I just noticed it being under the "sphinx-contrib" org. I see now that you git-subtree'd the extension.
Unvendoring after the extension is released sounds sensible.
I've released this as https://pypi.org/project/sphinxcontrib-prettyspecialmethods/.
There are a few you missed that could be added:
__call__(...)
→self(...)
__getattr__(attr)
→getattr(self, attr)
__setattr__(attr, value)
→setattr(self, attr, value)
__detattr__(attr)
→detattr(self, attr)
__index__()
→operator.index(self)
__length_hint__()
→operator.length_hint(self)
__ceil__()
→math.ceil(self)
__floor__()
→math.floor(self)
__trunc__()
→math.trunc(self)