Repository navigation
Commit 504a08b
Defer custom-MRO subclass publication until initialization succeeds (#9527)
* Publish custom-MRO subclasses only after initialization
Keep a type whose custom MRO failed out of its bases subclass lists until its MRO and slots are initialized. Register current bases under the type lock and reuse the cached callback-free weak reference to avoid duplicate registration after reentrant __bases__ assignment.
Assisted-by: OpenAI Codex: model version unavailable
* Use Self for the deferred publication type lock
Address clippy::use_self without changing initialization or locking behavior.
Assisted-by: OpenAI Codex: model version unavailable
---------
Co-authored-by: Codex <codex@openai.com>1 parent ef023bc commit 504a08b
1 file changed
Lines changed: 29 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1152 | 1152 | | |
1153 | 1153 | | |
1154 | 1154 | | |
1155 | | - | |
1156 | 1155 | | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
1164 | | - | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
1165 | 1165 | | |
1166 | 1166 | | |
1167 | 1167 | | |
| |||
2423 | 2423 | | |
2424 | 2424 | | |
2425 | 2425 | | |
| 2426 | + | |
| 2427 | + | |
| 2428 | + | |
| 2429 | + | |
| 2430 | + | |
| 2431 | + | |
| 2432 | + | |
| 2433 | + | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
2426 | 2446 | | |
2427 | 2447 | | |
2428 | 2448 | | |
| |||
0 commit comments