Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumPythondataclassesSingle-choice MCQ

By default (eq=True, frozen=False), what happens when you call hash() on a dataclass instance?

from dataclasses import dataclass @dataclass class U: x: int hash(U(1))