viable/strict/1788133803: Improve FX CodeGen process_inputs typing (#188287)
- PyTorch: 282 events in the last 90 days
- PyTorch: 279th Release in the last 90 days
- Previous: earlier the same day · viable/strict/1788132170
What happened
Summary Refs #146249 . This narrows the default torch.fx.graph.CodeGen.process_inputs return annotation from Any to tuple[Any, ...] . The implementation already returns args unchanged, and Python collects *args as a tuple, so the annotation now matches the runtime behavior without changing execution: tuple[Any, ...]: return args"> def process_inputs ( self , * args : Any ) -> tuple [ Any , ...]: return args The spec…
Summary assembled by rule from the sources below