title: Documentation of functions defined with functools partialmethod
body: <p>I have tried to somehow get a documentation for a partialmethod to work. My current code is</p>
  
  <pre><code>from functools import partialmethod
  
  class Fun(object):
  
    def test(self, num):
      """
      I have a documentation
      """
      return num
  
    test2 = partialmethod(test, num=10)
    test2.__doc__ = """Blub"""
  
    test3 = partialmethod(test, num=20)
  </code></pre>
  
  <p>But if I run</p>
  
  <pre><code>a = Fun()
  a.test2.__doc__ # only returns the partials documentation not "Blub"
  Fun.test2.__doc__ # gives nothing
  </code></pre>
  
  <p>and Sphinx lists them using <code>autoclass</code> as <code>undocumented members</code>.</p>
  
  <p>I have read <a href="https://docs.python.org/3/library/functools.html#partial-objects" rel="nofollow">https://docs.python.org/3/library/functools.html#partial-objects</a> and <a href="https://docs.python.org/3/library/functools.html#functools.partialmethod" rel="nofollow">https://docs.python.org/3/library/functools.html#functools.partialmethod</a> but does that mean that there is <em>no way</em> of getting documentations into partialmethods or am I just too stupid about it?</p>