

def __init__(self, query_instance, place_data):
    self._query_instance = query_instance
    self._place_id = place_data['place_id']
    query_instance._id = place_data.get('id', '')
    self._reference = place_data.get('reference', '')
    self._name = place_data.get('name', '')
    self._vicinity = place_data.get('vicinity', '')
    self._geo_location = place_data['geometry']['location']
    self._rating = place_data.get('rating', '')
    self._types = place_data.get('types', '')
    self._icon = place_data.get('icon', '')
    if (place_data.get('address_components') is None):
        self._details = None
    else:
        self._details = place_data

dataset/ETHPy150Open slimkrazy/python-google-places/googleplaces/__init__.py Place.__init__/VarMisuse@29/47 `self`->`query_instance`