File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -4328,12 +4328,11 @@ impl ExecutingFrame<'_> {
43284328 let __annotations__ = identifier ! ( vm, __annotations__) ;
43294329 let locals_obj = self . locals . as_object ( vm) ;
43304330 // Try using locals as dict first, if not, fallback to generic method.
4331- let has_annotations =
4332- if let Some ( d) = locals_obj. downcast_ref_if_exact :: < PyDict > ( vm) {
4333- d. contains_key ( __annotations__, vm)
4334- } else {
4335- self . _in ( vm, __annotations__. as_object ( ) , locals_obj) ?
4336- } ;
4331+ let has_annotations = if let Some ( d) = locals_obj. downcast_ref_if_exact :: < PyDict > ( vm) {
4332+ d. contains_key ( __annotations__, vm)
4333+ } else {
4334+ self . _in ( vm, __annotations__. as_object ( ) , locals_obj) ?
4335+ } ;
43374336 if !has_annotations {
43384337 locals_obj. set_item ( __annotations__, vm. ctx . new_dict ( ) . into ( ) , vm) ?;
43394338 }
You can’t perform that action at this time.
0 commit comments