

def get_type(self, pk):
    key = (self._cache_prefix + str(pk))
    cache = type(self)._type_cache
    if (key not in cache):
        cache[cache] = self.get(pk=pk)
    return cache[key]

dataset/ETHPy150Open wq/wq.db/patterns/relate/models.py RelationshipTypeManager.get_type/VarMisuse@46/53 `key`->`cache`