DEV Community

Programmers Quickie

👀Python Dataclasses

The dataclass() decorator examines the class to find fields. A field is defined as a class variable that has a type annotation. With two exceptions described below, nothing in dataclass() examines the type specified in the variable annotation.

Episode source