Skip slice error for invalid TypeVar calls

This commit is contained in:
Charlie Marsh 2022-09-08 11:40:55 -04:00
parent c61ff9a947
commit f1acd28f08
1 changed files with 2 additions and 2 deletions

View File

@ -781,10 +781,10 @@ where
} => {
if match_name_or_attr(func, "TypeVar") {
self.visit_expr(func);
for expr in &args[1..] {
for expr in args.iter().skip(1) {
self.visit_annotation(expr);
}
for keyword in &keywords[..] {
for keyword in keywords {
let KeywordData { arg, value } = &keyword.node;
if let Some(id) = arg {
if id == "bound" {