namedtuple in Python 3 does not provide a __dict__ attribute. See https://bugs.python.org/issue24931 for rationale why. As such, if we want to render keys in namedtuples, we need to use its _asdict method.
Coverage remained the same at 100.0% when pulling 2a9dcdeb8fefae44de19a94d09bffb44eadd9e13 on tchebb:fix-py3-namedtuple into 78f1a384eddef16906732d8db66deea6d37049b7 on noahmorrison:master.
namedtuple
in Python 3 does not provide a__dict__
attribute. See https://bugs.python.org/issue24931 for rationale why. As such, if we want to render keys innamedtuple
s, we need to use its_asdict
method.