If the instance is passed by positional argument, a field named `inst` can be changed.
(self)
| 834 | evolve(1, 2) |
| 835 | |
| 836 | def test_can_change_inst(self): |
| 837 | """ |
| 838 | If the instance is passed by positional argument, a field named `inst` |
| 839 | can be changed. |
| 840 | """ |
| 841 | |
| 842 | @attr.define |
| 843 | class C: |
| 844 | inst: int |
| 845 | |
| 846 | assert C(42) == evolve(C(23), inst=42) |