Skip to content

Commit 2b0522f

Browse files
committed
Apply black
1 parent 29b9ccb commit 2b0522f

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

curtsies/formatstringarray.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,14 @@ def __setitem__(self, slicetuple, value):
199199
raise ValueError(
200200
"""You cannot replace a multi column slice with a
201201
string please use a list [] with strings for the
202-
contents of each row""")
202+
contents of each row"""
203+
)
203204
if slicesize(rowslice) != len(value):
204205
area = slicesize(rowslice) * slicesize(colslice)
205206
val_len = sum(len(i) for i in value)
206-
grid_value = [fmtstr(" ", bg="cyan") * slicesize(colslice)] * slicesize(rowslice)
207+
grid_value = [fmtstr(" ", bg="cyan") * slicesize(colslice)] * slicesize(
208+
rowslice
209+
)
207210
grid_fsarray = (
208211
self.rows[: rowslice.start]
209212
+ [
@@ -231,7 +234,7 @@ def __setitem__(self, slicetuple, value):
231234
colslice.stop - colslice.start,
232235
area,
233236
val_len,
234-
msg
237+
msg,
235238
)
236239
)
237240
self.rows = (
@@ -353,4 +356,3 @@ def assertFSArraysEqualIgnoringFormatting(self, a, b):
353356
a = fsarray(["hey", "there"], bg="cyan")
354357
a.dumb_display()
355358
print(FSArray.diff(a, fsarray(["hey", "there "]), ignore_formatting=True))
356-

0 commit comments

Comments
 (0)