Commit 8bd407c
committed
spec: clarify that passthrough __new__ is ignored when converting to callable
When __new__ uses only *args and **kwargs, it is a passthrough that does not
constrain the constructor signature. Step 2 of the conversion algorithm
should produce no callable type in this case, leaving __init__ as the sole
source of the constructor's signature.
The conformance test (Class3) already expected this behaviour; the spec
example for class B was inconsistent. Fixes #2158.1 parent ddb5107 commit 8bd407c
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
391 | 394 | | |
392 | 395 | | |
393 | 396 | | |
| |||
454 | 457 | | |
455 | 458 | | |
456 | 459 | | |
457 | | - | |
| 460 | + | |
458 | 461 | | |
459 | 462 | | |
460 | 463 | | |
| |||
0 commit comments