Skip to content

Commit e49153f

Browse files
committed
py/compile: Remove unreachable code.
1 parent 7f0e563 commit e49153f

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

py/compile.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2836,12 +2836,10 @@ STATIC void compile_scope_func_annotations(compiler_t *comp, mp_parse_node_t pn)
28362836
// no annotation
28372837
return;
28382838
}
2839-
} else if (MP_PARSE_NODE_STRUCT_KIND(pns) == PN_typedargslist_dbl_star) {
2839+
} else {
2840+
assert(MP_PARSE_NODE_STRUCT_KIND(pns) == PN_typedargslist_dbl_star);
28402841
// double star with possible annotation
28412842
// fallthrough
2842-
} else {
2843-
// no annotation
2844-
return;
28452843
}
28462844

28472845
mp_parse_node_t pn_annotation = pns->nodes[1];

0 commit comments

Comments
 (0)