Skip to content
Prev Previous commit
Next Next commit
fix lints
  • Loading branch information
radix committed Nov 24, 2019
commit 856f5df50a8e5fa965596c4ff92ccc4a86fd34d2
2 changes: 1 addition & 1 deletion effect/_intents.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,5 +199,5 @@ def perform_func(dispatcher, intent):


base_dispatcher = TypeDispatcher(
{Constant: perform_constant, Error: perform_error, Func: perform_func,}
{Constant: perform_constant, Error: perform_error, Func: perform_func}
)
2 changes: 1 addition & 1 deletion effect/_test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def match(self, actual):
traceback.TracebackException.from_exception(self.expected).format()
)
new = list(traceback.TracebackException.from_exception(actual).format())
tail_equals = lambda a, b: a == b[-len(a) :]
tail_equals = lambda a, b: a == b[-len(a):]
if not tail_equals(expected[1:], new[1:]):
return ReraisedTracebackMismatch(expected_tb=expected, got_tb=new)

Expand Down
2 changes: 1 addition & 1 deletion effect/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ def perform_get_input_raw_input(dispatcher, intent):


stdio_dispatcher = TypeDispatcher(
{Display: perform_display_print, Prompt: perform_get_input_raw_input,}
{Display: perform_display_print, Prompt: perform_get_input_raw_input}
)
2 changes: 1 addition & 1 deletion effect/test_intents.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def test_parallel_all_errors(self):

dispatcher = ComposedDispatcher(
[
TypeDispatcher({ParallelEffects: perform_parallel_async,}),
TypeDispatcher({ParallelEffects: perform_parallel_async}),
base_dispatcher,
]
)
Expand Down
2 changes: 1 addition & 1 deletion effect/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def resolve_effect(effect, result, is_error=False):
is_error, result = guard(cb, result)
if type(result) is Effect:
return Effect(
result.intent, callbacks=result.callbacks + effect.callbacks[i + 1 :]
result.intent, callbacks=result.callbacks + effect.callbacks[i + 1:]
)
if is_error:
raise result
Expand Down