4 ms·
One of the examples in the documentation uses a method. https://docs.python.org/3/library/typing.html#typing.NamedTuple https://docs.python.org/3/library/typing
by kevinmgranger 9y ago
One of the examples in the documentation uses a method.
https://docs.python.org/3/library/typing.html#typing.NamedTuple https://docs.python.org/3/library/typing.html#typing.NamedTu...
- caioariede 9y agoYeah, you're right. You just cannot overwrite __init__: > AttributeError: Cannot overwrite NamedTuple attribute __init__