title: dataclasses: how to ignore None values using asdict()?
body: <pre><code>@dataclass
  class Car:
      brand: str
      color: str
  </code></pre>
  
  <p>How can I get a dict that ignore None values? Something like:</p>
  
  <pre><code>&gt;&gt;&gt; car = Car(brand="Audi", color=None)
  &gt;&gt;&gt; asdict(car, some_option_to_ignore_none_values=True)
  &gt; {'brand': 'Audi'}
  </code></pre>