Files
pytorch/test/expect/TestScript.test_annot_string_mypy_method.expect
Ansley Ussery 6831d8e379 Support Union in TorchScript (#64234)
Summary:
This PR is created to replace https://github.com/pytorch/pytorch/pull/53180 PR stack, which has all the review discussions. Reason for needing a replacement is due to a messy Sandcastle issue.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/64234

Reviewed By: gmagogsfm

Differential Revision: D30656444

Pulled By: ansley

fbshipit-source-id: 77536c8bcc88162e2c72636026ca3c16891d669a
2021-09-03 06:12:24 -07:00

10 lines
536 B
Plaintext

foo( self, Tensor x, (Tensor, Tensor) y) -> ((Tensor, Tensor))
foo( self, Tensor x, (Tensor, Tensor) y) -> ((Tensor, Tensor))
foo( self, str x, (Tensor, Tensor) y) -> ((str, str))
foo( self, int x, (Tensor, Tensor) y) -> ((int, int))
foo( self, bool x, (Tensor, Tensor) y) -> ((bool, bool))
foo( self, float[3] x, (Tensor, Tensor) y) -> ((float[], float[]))
foo( self, int[2] x, (Tensor, Tensor) y) -> ((int[], int[]))
foo( self, int[] x, (Tensor, Tensor) y) -> ((int[], int[]))
foo( self, int? x, (Tensor, Tensor) y) -> ((int?, int?))