title: How napoleon and autodoc interact documenting members
body: <p>I noticed a change in behavior in how Sphinx renders class descriptions. Given this code</p>
  <pre class="lang-py prettyprint-override"><code># my example happens to be a dataclass, but the behavior for 
  # regular classes is the same
  @dataclass
  class TestClass:
      &quot;&quot;&quot;This is a test class for dataclasses.
  
      This is the body of the docstring description.
      &quot;&quot;&quot;
      var_int: int
      var_str: str
  </code></pre>
  <p>plus some generic Sphinx settings, I used to get this about two years ago</p>
  <p><a href="https://i.stack.imgur.com/14K5s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/14K5s.png" alt="Documentation shows just the docstring" /></a></p>
  <p>And am now getting this</p>
  <p><a href="https://i.stack.imgur.com/BS7GX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BS7GX.png" alt="Documentation shows class variables as if they were in the docstring" /></a></p>
  <p>Is there a way to tell Sphinx not to add the class variables to the bottom of the class definition? It's particularly annoying that it assumes their values to be <code>None</code>, just because they don't have defaults.</p>
  <hr />
  <p>This issue came up during discussions on <a href="https://stackoverflow.com/a/51131941/962190">this post</a>, which also contains a bit more context in comments regarding Sphinx configuration etc.</p>