<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Dec 17, 2017 at 2:11 AM, Julien Salort <span dir="ltr"><<a href="mailto:listes@salort.eu" target="_blank">listes@salort.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Le 15/12/2017 à 22:14, Paul Moore a écrit :<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Annotations and the annotation syntax are fundamental to the design.<br>
But that's core Python syntax. But I wouldn't describe types as being<br>
that significant to the design, it's more "if you supply them we'll<br>
make use of them".<br>
</blockquote></span>
Naive question from a lurker: does it mean that it works also if one<br>
annotates with something that is not a type, e.g. a comment,<br>
<br>
@dataclass<br>
class C:<br>
    a: "This represents the amplitude" = 0.0<br>
    b: "This is an offset" = 0.0</blockquote></div><div class="gmail_extra"><br></div>I would personally not use the notation for this, but it is legal code. However static type checkers like mypy won't be happy with this.<br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)</div>
</div></div>