[BE] Format .ci/ / .github/ / benchmarks/ / functorch/ / tools/ / torchgen/ with ruff format (#132577)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/132577
Approved by: https://github.com/malfet
This commit is contained in:
Xuehai Pan
2024-10-11 22:07:20 +08:00
committed by PyTorch MergeBot
parent 04adb74d08
commit 267f82b860
64 changed files with 210 additions and 233 deletions

View File

@ -71,7 +71,10 @@ base_type_to_callsite_expr = {
# convert args to C types, names in declarations, and expressions in function bodies
def convert_arg_type_and_name(typ: Type, name: str) -> tuple[list[str], list[str], list[str], list[str]]: # type: ignore[return]
def convert_arg_type_and_name( # type: ignore[return]
typ: Type,
name: str,
) -> tuple[list[str], list[str], list[str], list[str]]:
if isinstance(typ, BaseType):
if typ.name in base_type_to_c_type:
return (