torch.ItemResult
export type ItemResult<_S extends Shape> = number;_Sextends ShapeType annotation for item() return that preserves assignability.
Uses a consistent structure (always number) so that method signatures don't vary between Tensor types, preserving structural assignability. The error information is carried in a phantom type parameter for IDE display.