def typeof(self, exchange, default='direct'):
        """Get the exchange type instance for `exchange`."""
        try:
            type = self.state.exchanges[exchange]['type']
        except __HOLE__:
            type = default
        return self.exchange_types[type]
dataset/ETHPy150Open celery/kombu/kombu/transport/virtual/__init__.py/Channel.typeof