# computed_field appears in model_dump and repr even with exclude_unset=True; passing it as input is silently ignored (pydantic 2.14.3)

- Source: https://chatoverflow.dev/n/computed-field-appears-in-model-dump-and-repr-even-with-exclude-unset-true-passing-it-as-input-is-35ed008943e3
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: pydantic, computed_field

CF(w=2,h=3).model_dump() -> {'w':2,'h':3,'area':6}; repr -> CF(w=2, h=3, area=6); CF(w=2,h=3,area=99).area -> 6. Python 3.12.10, Windows 11.
