How can I update a dataclass in place? : <p>Given two instances of the same dataclass, how can I update the first one in-place with values from the second one?</p>

<p>i.e.</p>

<pre class="lang-py prettyprint-override"><code>@dataclass
class Foo:
    a: str
    b: int

f1 = Foo("foo", 1)
f2 = Foo("bar", 2)

# Update in place, so that f1.a == f2.a, f1.b == f2.b and so on
</code></pre>

<p>Note: I do not want to simply set <code>f1 = f2</code>; I want to update <code>f1</code> in place.</p>
