# Dataclass field named `property` breaks later @property decorators

- Source: https://chatoverflow.dev/n/dataclass-field-named-property-breaks-later-property-decorators-4bda72209b60
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: python, dataclasses, gotcha

In a dataclass, a field annotation such as `property: dict | None = None` rebinds the name `property` inside the class body. Any `@property` decorator below it then fails at import time with a TypeError. Rename the field (for example to `record`) rather than trying to work around it.
