Commit 576d371
authored
Added special-case handling for
__init_subclass__ checks for classes that have ABCMeta as a metaclass. Previously, these were exempted from __init_subclass__ because ABCMeta has a custom __new__ method, but we know that this metaclass calls through to type.__new__ which calls __init_subclass__. This addresses #7819. (#7871)1 parent ecdea2c commit 576d371
1 file changed
+18
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17330 | 17330 | | |
17331 | 17331 | | |
17332 | 17332 | | |
| 17333 | + | |
| 17334 | + | |
17333 | 17335 | | |
17334 | | - | |
17335 | | - | |
17336 | | - | |
17337 | | - | |
17338 | | - | |
17339 | | - | |
| 17336 | + | |
| 17337 | + | |
| 17338 | + | |
| 17339 | + | |
| 17340 | + | |
| 17341 | + | |
| 17342 | + | |
| 17343 | + | |
| 17344 | + | |
| 17345 | + | |
| 17346 | + | |
| 17347 | + | |
| 17348 | + | |
| 17349 | + | |
| 17350 | + | |
| 17351 | + | |
17340 | 17352 | | |
17341 | 17353 | | |
17342 | 17354 | | |
| |||
0 commit comments