<div dir="ltr"><div>Hi Armin,</div><div><br></div><div>thanks for the tip. I actually need the annotations in runtime to do serialization / deserialization (using two my libraries, cattrs and another one for which I haven't written the docs yet). I use annotated attrs classes. Usually I just move the type annotations from the annotation syntax to "attr.ib(type=...)" using sed so it's not that big of a deal, but it's still a chore.</div><div><br></div><div>Cheers :)<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 8, 2018 at 12:23 AM Armin Rigo <<a href="mailto:armin.rigo@gmail.com">armin.rigo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Tin,<br>
<br>
On 7 June 2018 at 18:38, Tin Tvrtković <<a href="mailto:tinchester@gmail.com" target="_blank">tinchester@gmail.com</a>> wrote:<br>
> it'd be great if we could get variable annotations in PyPy even before PyPy<br>
> 3.6 comes out. There's predecent with f-strings. I'm asking because it's a<br>
> major chore to strip out variable annotations while trying out PyPy,<br>
> (mostly) everything else can be worked around with imports etc.<br>
<br>
Look at tools that do the stripping automatically. Maybe<br>
<a href="https://pypi.org/project/strip-hints/" rel="noreferrer" target="_blank">https://pypi.org/project/strip-hints/</a> with the option<br>
--only-assigns-and-defs ?<br>
<br>
<br>
A bientôt,<br>
<br>
Armin.<br>
</blockquote></div>