stories icon indicating copy to clipboard operation
stories copied to clipboard

Story steps should be of the same kind.

Open proofit404 opened this issue 4 years ago • 0 comments

a1s1 can't be coroutine while a1s2 is a function.

A suggested implementation:

steps = ['a1s1','a1s2','b1']
methods = {'a1s1': f, 'a1s2': async f}
kinds = {is_coroutine_function, methods.values()} # set generator
if kinds == {True, False}:
    raise exception (class has mixed methods)

proofit404 avatar Apr 02 '21 17:04 proofit404