Skip to content

Commit 71ed457

Browse files
CodemodService FBSourceBlackLinterBotfacebook-github-bot
CodemodService FBSourceBlackLinterBot
authored andcommitted
[AutoAccept][Codemod][FBSourceBlackLinter] Daily arc lint --take BLACK
Reviewed By: ivanmurashko Differential Revision: D37103342 fbshipit-source-id: adc908c790a413384bd88a75d3c2b4b0974c6674
1 parent 19d9328 commit 71ed457

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

test/torchaudio_unittest/transforms/transforms_test_impl.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import torch
22
import torchaudio.transforms as T
3-
from torchaudio.functional.functional import _get_sinc_resample_kernel
43
from parameterized import param, parameterized
4+
from torchaudio.functional.functional import _get_sinc_resample_kernel
55
from torchaudio_unittest.common_utils import (
66
get_spectrogram,
77
get_whitenoise,
@@ -160,9 +160,6 @@ def test_pitch_shift_resample_kernel(self):
160160
trans(torch.randn(2, 8000, dtype=self.dtype, device=self.device))
161161

162162
expected, _ = _get_sinc_resample_kernel(
163-
trans.orig_freq,
164-
sample_rate,
165-
trans.gcd,
166-
device=self.device,
167-
dtype=self.dtype)
163+
trans.orig_freq, sample_rate, trans.gcd, device=self.device, dtype=self.dtype
164+
)
168165
self.assertEqual(trans.kernel, expected)

torchaudio/functional/functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import math
55
import warnings
66
from collections.abc import Sequence
7-
from typing import Optional, Tuple, Union, List
7+
from typing import List, Optional, Tuple, Union
88

99
import torch
1010
import torchaudio

torchaudio/transforms/_transforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
from torchaudio import functional as F
1313
from torchaudio.functional.functional import (
1414
_apply_sinc_resample_kernel,
15+
_fix_waveform_shape,
1516
_get_sinc_resample_kernel,
1617
_stretch_waveform,
17-
_fix_waveform_shape,
1818
)
1919

2020
__all__ = []

0 commit comments

Comments
 (0)