Eric V. Smith <e...@trueblade.com> added the comment:
example_text is not a field, since you're not giving it a type. It's just a normal class member. The only field in the NamedTuple is example_int. You can't specify any other field in the call to MyTestedTuple(). To see this, help(MyTestedTuple) starts with: class MyTestedTuple(builtins.tuple) | MyTestedTuple(example_int: int = 3) ---------- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37782> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com