title: Can I get Sphinx to pull docstrings from imports?
body: <p>I have a python package with an <code>__init__.py</code> file that just contains a bunch of imports of important functions from files in the package. I'm trying to document this with Sphinx, and I'm hoping to have a page for the package that includes docstrings for the important functions. Is this possible?</p>
  <p>File structure:</p>
  <pre><code>my_package
    __init__.py
    module1.py
    module2.py
  </code></pre>
  <p><code>__init__.py</code> looks like this:</p>
  <pre><code>&quot;&quot;&quot;A module for doing thing 1 and thing 2.&quot;&quot;&quot;
  from module1 import function1
  from module2 import function2
  </code></pre>
  <p><code>module1.py</code>:</p>
  <pre><code>def function1():
      &quot;&quot;&quot;docstring for function1&quot;&quot;&quot;
      pass
  
  def other_function():
      &quot;&quot;&quot;docstring for other_function&quot;&quot;&quot;
      pass
  </code></pre>
  <p><code>module2.py</code>:</p>
  <pre><code>def function1():
      &quot;&quot;&quot;docstring for function2&quot;&quot;&quot;
      pass
  
  def other_function2():
      &quot;&quot;&quot;docstring for other_function2&quot;&quot;&quot;
      pass
  </code></pre>
  <p>My desired sphinx page:</p>
  <pre><code>my_package
  ==========
  
  [my_package module docstring]
  
  [autofunction documentation for function1]
  
  [autofunction documentation for function2]
  
  [nothing here about other_function1/2]
  </code></pre>