@@ -1328,16 +1328,20 @@ impl PyType {
13281328 guard. contains_key ( setitem) || guard. contains_key ( delitem)
13291329 } ;
13301330 if has_own {
1331- self . slots . as_sequence . ass_item . store ( Some ( sequence_setitem_wrapper) ) ;
1332- } else if let Some ( func) = self . lookup_slot_in_mro ( name, ctx, |sf| {
1333- match sf {
1334- SlotFunc :: SeqSetItem ( f) | SlotFunc :: SeqDelItem ( f) => Some ( * f) ,
1335- _ => None ,
1336- }
1331+ self . slots
1332+ . as_sequence
1333+ . ass_item
1334+ . store ( Some ( sequence_setitem_wrapper) ) ;
1335+ } else if let Some ( func) = self . lookup_slot_in_mro ( name, ctx, |sf| match sf {
1336+ SlotFunc :: SeqSetItem ( f) | SlotFunc :: SeqDelItem ( f) => Some ( * f) ,
1337+ _ => None ,
13371338 } ) {
13381339 self . slots . as_sequence . ass_item . store ( Some ( func) ) ;
13391340 } else {
1340- self . slots . as_sequence . ass_item . store ( Some ( sequence_setitem_wrapper) ) ;
1341+ self . slots
1342+ . as_sequence
1343+ . ass_item
1344+ . store ( Some ( sequence_setitem_wrapper) ) ;
13411345 }
13421346 } else {
13431347 accessor. inherit_from_mro ( self ) ;
@@ -1369,16 +1373,20 @@ impl PyType {
13691373 guard. contains_key ( setitem) || guard. contains_key ( delitem)
13701374 } ;
13711375 if has_own {
1372- self . slots . as_mapping . ass_subscript . store ( Some ( mapping_setitem_wrapper) ) ;
1373- } else if let Some ( func) = self . lookup_slot_in_mro ( name, ctx, |sf| {
1374- match sf {
1375- SlotFunc :: MapSetSubscript ( f) | SlotFunc :: MapDelSubscript ( f) => Some ( * f) ,
1376- _ => None ,
1377- }
1376+ self . slots
1377+ . as_mapping
1378+ . ass_subscript
1379+ . store ( Some ( mapping_setitem_wrapper) ) ;
1380+ } else if let Some ( func) = self . lookup_slot_in_mro ( name, ctx, |sf| match sf {
1381+ SlotFunc :: MapSetSubscript ( f) | SlotFunc :: MapDelSubscript ( f) => Some ( * f) ,
1382+ _ => None ,
13781383 } ) {
13791384 self . slots . as_mapping . ass_subscript . store ( Some ( func) ) ;
13801385 } else {
1381- self . slots . as_mapping . ass_subscript . store ( Some ( mapping_setitem_wrapper) ) ;
1386+ self . slots
1387+ . as_mapping
1388+ . ass_subscript
1389+ . store ( Some ( mapping_setitem_wrapper) ) ;
13821390 }
13831391 } else {
13841392 accessor. inherit_from_mro ( self ) ;
0 commit comments