pytorch
b7298f49 - Annotate NoneType as Optional[type] (#60383)

Commit
3 years ago
Annotate NoneType as Optional[type] (#60383) Summary: ------------ Infer NoneType as Optional[torch.Tensor] for monkeytype type inference Pull Request resolved: https://github.com/pytorch/pytorch/pull/60383 Test Plan: ------ python test/test_jit.py -k TestPDT.test_nonetype_as_optional_of_type Reviewed By: gmagogsfm Differential Revision: D29341513 Pulled By: nikithamalgifb fbshipit-source-id: 9a96670cb5cf2560cd4e19962faef5fecea8b24a
Author
nikithamalgi
Parents
Loading