Showing content from http://mail.python.org/pipermail/python-dev/attachments/20171211/4059d471/attachment.html below:
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">.<br><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><span></span></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span></blockquote></blockquote><span></span><span>I see a couple of options:</span><br><span>1a: Use a default type annotation, if one is not is supplied. typing.Any would presumably make the most sense.</span><br><span>1b: Use None if not type is supplied.</span><br><span>2: Rework the code to not require annotations at all.</span><br><span></span><br><span>I think I'd prefer 1a, since it's easy. </span></blockquote><div><br></div><div>2) would be great :-)</div><div><br></div><div>I find this bit of âtyping creepâ makes me nervousâ Typing should Never be required!</div><div><br></div><div>I understand that the intent here is that the user could ignore typing and have it all still work. But Iâd rather is was not still there under the hood.</div><div><br></div><div>Just because standardized way to do something is included in core Python doesnât mean the standard library has to use it.</div><div><br></div><blockquote type="cite"><span>However, typing is not currently imported by dataclasses.py. </span></blockquote><div><br></div><div>And there you have an actual reason besides my uneasiness :-)</div><div><br></div>- CHB<div><br></div><div><br><div><div><blockquote type="cite"><br></blockquote></div></div></div></body></html>
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4