@field
    def district(self):
        if self.parsed_object in 'District':
            return self.parsed_object['District'].findtext('a')
        else:
            return self.parsed_object[
                'Located within the boundaries of this public school district'
            ].text
dataset/ETHPy150Open codeforsanjose/calischools/data/api/cde.py/CdeSchoolDetail.district/swapped operands of `in`