[issue33075] typing.NamedTuple does not deduce Optional[] from using None as default field value
Ivan Levkivskyi
report at bugs.python.org
Wed Mar 14 12:13:14 EDT 2018
Ivan Levkivskyi <levkivskyi at gmail.com> added the comment:
This is actually an intended behaviour. Moreover, the implicit optionality of arguments that default to `None` is deprecated and will be removed in one of the future versions. (Note that since typing module is still provisional, this will likely happen without any additional notice.)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33075>
_______________________________________
More information about the Python-bugs-list
mailing list