- Notifications
You must be signed in to change notification settings - Fork262
Closed
Description
I naively thought that since I can write
classA(NamedTuple):x:inty:int
I would also be able to subclass this:
classB(A):z:int
That is accepted syntactically and at runtime but no new__new__
method is generated so callingB(1, 2, 3)
is flagged as an error (too many arguments) by both mypy and runtime.