In the [Python documentation](https://docs.python.org/3/library/stdtypes.html#dict), special methods are documented differently. For instance, instead of `__len__`, the documentation reads `len(d)`. How can I get Sphinx to do the same?

It seems like all I have to do is override the logic producing the method name, but I'm not sure how to do that. The existing autodocs events don't seem to allow it.