connection.pyi 415 B

12345678910111213141516
  1. from typing_extensions import Self
  2. from amqp.channel import Channel
  3. class Connection:
  4. def __init__(
  5. self,
  6. host: str = ...,
  7. userid: str | None = ...,
  8. password: str | None = ...,
  9. virtual_host: str = ...,
  10. ssl: bool = ...,
  11. ) -> None: ...
  12. def __enter__(self) -> Self: ...
  13. def __exit__(self, *a: object) -> None: ...
  14. def channel(self) -> Channel: ...