[BE] typing for decorators - fx/_compatibility (#131568)

See #131429

Pull Request resolved: https://github.com/pytorch/pytorch/pull/131568
Approved by: https://github.com/justinchuby, https://github.com/oulgen, https://github.com/zou3519
This commit is contained in:
Aaron Orenstein
2024-07-25 08:05:29 -07:00
committed by PyTorch MergeBot
parent 709ddf7a9d
commit 193f62fde9
77 changed files with 232 additions and 249 deletions

View File

@ -611,7 +611,7 @@ def return_and_correct_aliasing(func, args, kwargs, out):
return None
def get_arg_from_alias(output_alias, schema_info, args, kwargs):
new_args, new_kwargs = torch.fx.operator_schemas.normalize_function(
new_args, new_kwargs = torch.fx.operator_schemas.normalize_function( # type: ignore[misc]
func, args=args, kwargs=kwargs
)