File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1210,9 +1210,9 @@ def get_expr_length(expr: Expression) -> int | None:
1210
1210
elif fullname == "builtins.zip" and expr .args :
1211
1211
arg_lengths = [get_expr_length (arg ) for arg in expr .args ]
1212
1212
if all (arg is not None for arg in arg_lengths ):
1213
- return min (arg_lengths )
1213
+ return min (arg_lengths ) # type: ignore [type-var]
1214
1214
elif fullname == "builtins.range" and all (isinstance (arg , IntExpr ) for arg in expr .args ):
1215
- return len (range (* (arg .value for arg in expr .args )))
1215
+ return len (range (* (arg .value for arg in expr .args ))) # type: ignore [attr-defined]
1216
1216
1217
1217
# TODO: extend this, passing length of listcomp and genexp should have worthwhile
1218
1218
# performance boost and can be (sometimes) figured out pretty easily. set and dict
You can’t perform that action at this time.
0 commit comments