Fixes lint error in py3 (#21883)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/21883
ghimport-source-id: c4330d71033929178ef10f2a0fcd8b0b2b468cb5

Test Plan: Imported from OSS

Differential Revision: D15866746

Pulled By: bwasti

fbshipit-source-id: c3d23f3396a95d5b1d689a07662e82e48cb3ab7a
This commit is contained in:
Bram Wasti
2019-06-17 22:14:28 -07:00
committed by Facebook Github Bot
parent 2ba164b943
commit 3ed8acdf59

View File

@ -231,7 +231,10 @@ class TestScript(JitTestCase):
self.checkScript(test_replace, ())
def test_partition():
# type: () -> Tuple[Tuple[str,str,str], Tuple[str,str,str], Tuple[str,str,str], Tuple[str,str,str], Tuple[str,str,str], Tuple[str,str,str], Tuple[str,str,str]]
"""
type: () -> Tuple[Tuple[str,str,str], Tuple[str,str,str], Tuple[str,str,str],
Tuple[str,str,str], Tuple[str,str,str], Tuple[str,str,str], Tuple[str,str,str]]
"""
return (
"hello123abc".partition("llo"),
"ff".partition("f"),
@ -244,7 +247,10 @@ class TestScript(JitTestCase):
self.checkScript(test_partition, ())
def test_rpartition():
# type: () -> Tuple[Tuple[str,str,str], Tuple[str,str,str], Tuple[str,str,str], Tuple[str,str,str], Tuple[str,str,str], Tuple[str,str,str], Tuple[str,str,str]]
"""
type: () -> Tuple[Tuple[str,str,str], Tuple[str,str,str], Tuple[str,str,str], Tuple[str,str,str],
Tuple[str,str,str], Tuple[str,str,str], Tuple[str,str,str]]
"""
return (
"hello123abc".rpartition("llo"),
"ff".rpartition("f"),