fix mypy findings

This commit is contained in:
David Lord 2024-05-01 06:41:20 -07:00
parent 2e8bbca767
commit 6fcf463011
No known key found for this signature in database
GPG Key ID: 7A1C87E3F5BC42A8

View File

@ -55,7 +55,7 @@ def optimizeconst(f: F) -> F:
return f(self, node, frame, **kwargs)
return update_wrapper(t.cast(F, new_func), f)
return update_wrapper(new_func, f) # type: ignore[return-value]
def _make_binop(op: str) -> t.Callable[["CodeGenerator", nodes.BinExpr, "Frame"], None]: