~nch/python-compiler

8433cb32849dbd9be04dc656ee361ee374e3d6d1 — nc 1 year, 6 months ago e7a4a93
small mypy fix
1 files changed, 2 insertions(+), 2 deletions(-)

M compiler.py
M compiler.py => compiler.py +2 -2
@@ 688,10 688,10 @@ def pass2(instructions: List[Union[bytes, Callable, tuple]]) -> bytes:
    '''
    r = b''
    for i in instructions:
        if type(i) == tuple:
        if isinstance(i, tuple):
            for x in i:
                r += x(len(r)) if callable(x) else x
        elif type(i) == bytes:
        elif isinstance(i, bytes):
            r += i
        else:
            assert False