(
        self,
        api_name: str,
        transport_class: Type["Transport"],
        transport_type: str,
        transport_config: NamedTuple,
        config: "Config",
    )
Set the transport pool for a specific API
Set the transport pool for a specific API
Set the transport pool for a specific API
def _set_transport(
        self,
        api_name: str,
        transport_class: Type["Transport"],
        transport_type: str,
        transport_config: NamedTuple,
        config: "Config",
    ):
        """Set the transport pool for a specific API"""
        from lightbus.transports import Transport

        assert issubclass(
            transport_class, Transport
        ), f"Must be a subclass for Transport, was {transport_class}"

        self._registry.setdefault(api_name, self._RegistryEntry())
        transport_pool = self._instantiate_transport_pool(transport_class, transport_config, config)
        self._registry[api_name] = self._registry[api_name]._replace(
            **{transport_type: transport_pool}
        )
def _set_transport ( self , api_name : str , transport_class : Type [ "Transport" ] , transport_type : str , transport_config : NamedTuple , config : "Config" , ) : from lightbus . transports import Transport assert issubclass ( transport_class , Transport ) , f"Must be a subclass for Transport, was {transport_class}" self . _registry . setdefault ( api_name , self . _RegistryEntry ( ) ) transport_pool = self . _instantiate_transport_pool ( transport_class , transport_config , config ) self . _registry [ api_name ] = self . _registry [ api_name ] . _replace ( * * { transport_type : transport_pool } )