def _get_params(message_obj):
    base_attrs = dir(_MessageType)
    return (
        (n, a) for n, a in message_obj.__dict__.items()
        if base_attrs not in n and not n.startswith('_') and not callable(a)
    )
dataset/ETHPy150Open datastax/python-driver/cassandra/protocol.py/_get_params/swapped operands of `not in`