Skip to content

Commit 856f5df

Browse files
committed
fix lints
1 parent a5c944f commit 856f5df

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

effect/_intents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,5 +199,5 @@ def perform_func(dispatcher, intent):
199199

200200

201201
base_dispatcher = TypeDispatcher(
202-
{Constant: perform_constant, Error: perform_error, Func: perform_func,}
202+
{Constant: perform_constant, Error: perform_error, Func: perform_func}
203203
)

effect/_test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def match(self, actual):
5252
traceback.TracebackException.from_exception(self.expected).format()
5353
)
5454
new = list(traceback.TracebackException.from_exception(actual).format())
55-
tail_equals = lambda a, b: a == b[-len(a) :]
55+
tail_equals = lambda a, b: a == b[-len(a):]
5656
if not tail_equals(expected[1:], new[1:]):
5757
return ReraisedTracebackMismatch(expected_tb=expected, got_tb=new)
5858

effect/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ def perform_get_input_raw_input(dispatcher, intent):
3838

3939

4040
stdio_dispatcher = TypeDispatcher(
41-
{Display: perform_display_print, Prompt: perform_get_input_raw_input,}
41+
{Display: perform_display_print, Prompt: perform_get_input_raw_input}
4242
)

effect/test_intents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def test_parallel_all_errors(self):
8686

8787
dispatcher = ComposedDispatcher(
8888
[
89-
TypeDispatcher({ParallelEffects: perform_parallel_async,}),
89+
TypeDispatcher({ParallelEffects: perform_parallel_async}),
9090
base_dispatcher,
9191
]
9292
)

effect/testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def resolve_effect(effect, result, is_error=False):
268268
is_error, result = guard(cb, result)
269269
if type(result) is Effect:
270270
return Effect(
271-
result.intent, callbacks=result.callbacks + effect.callbacks[i + 1 :]
271+
result.intent, callbacks=result.callbacks + effect.callbacks[i + 1:]
272272
)
273273
if is_error:
274274
raise result

0 commit comments

Comments
 (0)