forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JIT][write path] Make NoneType annotation_str emit
NoneType
instea…
…d of `None` (pytorch#54746) Summary: Pull Request resolved: pytorch#54746 Test Plan: Imported from OSS Reviewed By: SplitInfinity Differential Revision: D27350331 Pulled By: jamesr66a fbshipit-source-id: 3f44d6589c29f39378432d0b6b281d96bb4829e7
- Loading branch information
1 parent
a3c06e6
commit 68e0796
Showing
5 changed files
with
15 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
def foo(a: Tensor) -> None: | ||
def foo(a: Tensor) -> NoneType: | ||
print("hi\016") | ||
return None |
2 changes: 1 addition & 1 deletion
2
test/expect/TestJit.test_pretty_printer-print_weird_test.expect
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
def print_weird_test(y: Tensor) -> None: | ||
def print_weird_test(y: Tensor) -> NoneType: | ||
print("hi\016") | ||
return None |
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