mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[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:
committed by
PyTorch MergeBot
parent
04adb74d08
commit
267f82b860
@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user