<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 21.12.2017 11:22, Terry Reedy wrote:<br>
</div>
<blockquote type="cite" cite="mid:p1g1ta$25f$1@blaine.gmane.org"><br>
<blockquote type="cite">
<blockquote type="cite">@dataclass
<br>
class C:
<br>
    a: int # integer field with no default
<br>
    b: float = 0.0 # float field with a default
<br>
<br>
And the types will be recognized by type checkers such as
mypy.
<br>
<br>
And I think the non-typed examples should go first in the
docs.
<br>
</blockquote>
</blockquote>
<br>
</blockquote>
<br>
I still don't understand why "I don't care" can be defined by
"leaving out"<br>
<br>
@dataclass
<br>
class C:
<br>
    b = 0.0 # float field with a default
<br>
<br>
<br>
For non-default fields, I like ellipsis too.<br>
<br>
Cheer,<br>
Sven<br>
</body>
</html>