.. _invalid-field-call: invalid-field-call / E3701 ========================== **Message emitted:** ``Invalid usage of field(), %s`` **Description:** *The dataclasses.field() specifier should only be used as the value of an assignment within a dataclass, or within the make_dataclass() function.* **Problematic code:** .. literalinclude:: /data/messages/i/invalid-field-call/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/i/invalid-field-call/good.py :language: python Created by the `dataclass `__ checker.