<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, 4 Jul 2018 at 22:07 Greg Ewing <<a href="mailto:greg.ewing@canterbury.ac.nz">greg.ewing@canterbury.ac.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Shawn Chen wrote:<br>
> The PEP 484 is proposing a type hint which can annotate the type of each <br>
> parameters. How ever code written in this format can not be run for <br>
> python3.5 and below.<br>
<br>
You're a bit late. Parameter annotations have been a part<br>
of the language since at least 3.1. PEP 484 just codifies<br>
a way of using them to represent types.<br>
<br>
Also, PEP 484 does specify a way of using comments to<br>
indicate types.<br></blockquote><div><br></div><div>Actually it does in <a href="https://www.python.org/dev/peps/pep-0484/#suggested-syntax-for-python-2-7-and-straddling-code">https://www.python.org/dev/peps/pep-0484/#suggested-syntax-for-python-2-7-and-straddling-code</a> and <a href="https://www.python.org/dev/peps/pep-0484/#type-comments">https://www.python.org/dev/peps/pep-0484/#type-comments</a>. So the OP's desire to specify in a comment is already specified. <br></div></div></div>