<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">Cyril,
<div><br /></div>
<div>We have lots of doc strings in rst format and many of them already have the `@param` and `@type` tags. Does the mypy support this format or we should to rewrite doc string and add the `type:` tags just for mypy?</div>
</div>
<div name="messageSignatureSection"><br />
<div class="matchFont">
<div style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">--</div>
Sergey Vilgelm
<div style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">
<div style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><a href="https://www.vilgelm.info" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">https://www.vilgelm.info</a></div>
</div>
</div>
</div>
<div name="messageReplySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">On Jan 26, 2019, 9:07 AM -0600, Cyril Roelandt <cyril@redhat.com>, wrote:<br />
<blockquote type="cite" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">Hello Doug,<br />
<br />
On 01/26/19 09:02, Doug Hellmann wrote:<br />
<blockquote type="cite" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #e67e22;">We're still required to support python 2 through the beginning of the U<br />
cycle [5]. Is it possible to apply the type hints in a way that allows<br />
us to maintain that support?<br />
<br />
[5] https://governance.openstack.org/tc/resolutions/20180529-python2-deprecation-timeline.html<br /></blockquote>
<br />
There are two ways to apply type hints:<br />
1) Use a new syntax that only works with Python 3<br />
2) Use comments (see my github branch, where comments starting with<br />
"type:" can be found)<br />
<br />
I used the second approach in order to not break Python 2 compatibility.<br />
<br />
<br />
Regards,<br />
Cyril<br />
<br /></blockquote>
</div>
</body>
</html>