mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
committed by
Facebook Github Bot
parent
2ba164b943
commit
3ed8acdf59
@ -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"),
|
||||
|
Reference in New Issue
Block a user