jayvdb / sre-tools

Assert statement used outside of tests BAN-B101
Security
Major
2 years ago2 years old
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
104            b = b.data
105            type_b = type(b)
106
107        assert type_b == list108        return _val_eq(a.data, b)
109    elif type_b == SubPattern:
110        return _val_eq(b, a)
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
133                return False
134        return True
135
136    assert type_a == tuple, type_a137
138    if length == 2:
139        tok, val = a