-
Notifications
You must be signed in to change notification settings - Fork 281
Closed
Labels
resolution: wontfixA valid issue that most likely won't be resolved for reasons described in the issueA valid issue that most likely won't be resolved for reasons described in the issue
Description
I naively thought that since I can write
class A(NamedTuple):
x: int
y: intI would also be able to subclass this:
class B(A):
z: intThat is accepted syntactically and at runtime but no new __new__ method is generated so calling B(1, 2, 3) is flagged as an error (too many arguments) by both mypy and runtime.
leahein, jdrake, ReblochonMasque, petered, kku39 and 69 moreKevinHock, montreal91, jaywhy13, RishabhBhatnagar, samuela and 10 more
Metadata
Metadata
Assignees
Labels
resolution: wontfixA valid issue that most likely won't be resolved for reasons described in the issueA valid issue that most likely won't be resolved for reasons described in the issue