Fix `__doc__` on unbound method (#2958)

3 files changed