Skip to content

Commit c28a549

Browse files
squash! Update black
Update some unit test that relied on how black formats
1 parent 22f90c4 commit c28a549

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tests/unit/profiles/test_black.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -392,12 +392,10 @@ def test_black_pyi_file():
392392
import numpy as np
393393
394394
395-
def add(a: np.ndarray, b: np.ndarray) -> np.ndarray:
396-
...
395+
def add(a: np.ndarray, b: np.ndarray) -> np.ndarray: ...
397396
398397
399-
def sub(a: np.ndarray, b: np.ndarray) -> np.ndarray:
400-
...
398+
def sub(a: np.ndarray, b: np.ndarray) -> np.ndarray: ...
401399
""",
402400
"""# comment
403401
@@ -408,12 +406,10 @@ def sub(a: np.ndarray, b: np.ndarray) -> np.ndarray:
408406
import numpy as np
409407
410408
411-
def add(a: np.ndarray, b: np.ndarray) -> np.ndarray:
412-
...
409+
def add(a: np.ndarray, b: np.ndarray) -> np.ndarray: ...
413410
414411
415-
def sub(a: np.ndarray, b: np.ndarray) -> np.ndarray:
416-
...
412+
def sub(a: np.ndarray, b: np.ndarray) -> np.ndarray: ...
417413
""",
418414
is_pyi=False,
419415
lines_before_imports=2,

0 commit comments

Comments
 (0)