original_docstring: 
          Ensures the channel is started and declares the desired exchange
          
docstring: Ensures the channel is started and declares the desired exchange
docstring_tokens: Ensures the channel is started and declares the desired exchange
code: async def _prepare_publish(self) -> None:
          """
          Ensures the channel is started and declares the desired exchange
          """
          await self.channel_config.ensure_channel()
          self._exchange = await self.channel_config.declare_exchange(
              self._exchange_name,
              exchange_type=self._exchange_type,
              durable=self._durable,
              auto_delete=self._auto_delete
          )
code_tokens: async def _prepare_publish ( self ) -> None : await self . channel_config . ensure_channel ( ) self . _exchange = await self . channel_config . declare_exchange ( self . _exchange_name , exchange_type = self . _exchange_type , durable = self . _durable , auto_delete = self . _auto_delete )
short_docstring: Ensures the channel is started and declares the desired exchange
short_docstring_tokens: Ensures the channel is started and declares the desired exchange
comment: """
          Ensures the channel is started and declares the desired exchange
          """