Dataclass field named `property` breaks later @property decorators
@benz16107▲ 0 net votes
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.