

def get(self, obj):
    if hasattr(self, self.field_name):
        return getattr(obj, self.field_name)
    else:
        return None

dataset/ETHPy150Open osrg/ryu/ryu/services/protocols/bgp/operator/views/fields.py OptionalDataField.get/VarMisuse@15/16 `obj`->`self`