Files
evgeny.bovykinandintellij-monorepo-bot d1cb10773b PY-76822 Fix dataclass default values in conformance test suite protocols_definition.py
Both mypy and pyright don't show an error for the following case

@dataclass(frozen=False)
class Concrete4_Good7:
    val1: Sequence[float] = [0]

However, according to spec, such mutable defaults are not allowed. It will also fail at runtime


(cherry picked from commit ee569653a8f5cf91d6cb87321d63bf8e208d172d)

IJ-MR-174248

GitOrigin-RevId: 275e527ac36ac727dfc23f17bd0b539cff9df8c2
2025-11-19 13:05:44 +00:00
..