Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Union[NoneType, T] as input type (#51605)
Summary: ghstack-source-id: 32db9661ce0f9441ef7061285bc24967c2808ea6 Pull Request resolved: #51605 Fixes #51582 ========= In Python 3.9+ Union[T, NoneType] and Union[NoneType, T] as OptionalType. Pull Request resolved: #51606 Test Plan: ==== python test/test_jit.py -v TestJit.test_union_to_optional Reviewed By: pbelevich Differential Revision: D26242353 Pulled By: nikithamalgifb fbshipit-source-id: 0ac441fa1bdf2fb1044e3fe131bee47adda90bbb
- Loading branch information
1 parent
f1f9b04
commit ecf8166
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters