Y
Hacker News
new
|
ask
|
show
|
jobs
by
kevinmgranger
2982 days ago
One of the examples in the documentation uses a method.
https://docs.python.org/3/library/typing.html#typing.NamedTu...
1 comments
caioariede
2982 days ago
Yeah, you're right. You just cannot overwrite __init__:
> AttributeError: Cannot overwrite NamedTuple attribute __init__
link
> AttributeError: Cannot overwrite NamedTuple attribute __init__