<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 22 December 2017 at 20:55, Brett Cannon <span dir="ltr"><<a href="mailto:brett@python.org" target="_blank">brett@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Dec 22, 2017, 11:38 Chris Barker, <<a href="mailto:chris.barker@noaa.gov" target="_blank">chris.barker@noaa.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Dec 22, 2017 at 8:49 AM, Brett Cannon <span dir="ltr"><<a href="mailto:brett@python.org" target="_blank">brett@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_-615670375930620652m_-7625807583791829315HOEnZb"><div class="m_-615670375930620652m_-7625807583791829315h5"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><span style="color:rgb(34,34,34)">I  think it's worth reminding people that if they don't like the fact dataclasses (ab)use type hints for their succinct syntax that you can always use attrs instead to avoid type hints.</span></div></div></div></div></blockquote></div></div></div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>sure -- but this doesn't really address the issue, the whole reason this is even a discussion is because dataclasses is going into the standard library. Third party packages can do whatever they want, of course.</div><div><br></div><div>And the concern is that people (in particular newbies) will get confused / the wrong impression / other-negative-response by the (semi) use of typing in a standard library module.</div></div></div></div></blockquote></div><div><br></div></span><div>I'm still not worried. Type hints are part of the syntax and so are no worse off than async/await and asyncio IMO.</div><span class=""><div><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>As for those who feel dataclasses will force them to teach type hints and they simply don't want to, maybe we could help land protocols</div></blockquote><div><br></div></div></div></div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Could you please clarify what this is about ???</div></div></div></div></blockquote></div><div><br></div></span><div>There's a PEP by Ivan (on my phone else I would look up the number).</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></blockquote><div><br></div><div>If anyone is curious this is PEP 544. It is actually already fully supported by mypy, so that one can play with it<br></div><div>(you will need to also install typing_extensions, where Protocol class lives until the PEP is approved).</div><div><br></div><div>--</div><div>Ivan</div><div><br></div><div><br></div></div></div></div>