connection.pyi 343 B

123456789
  1. from typing_extensions import Self
  2. from amqp.channel import Channel
  3. class Connection:
  4. def __init__(self, host: str = ..., userid: str | None = ..., password: str | None = ..., virtual_host: str = ...) -> None: ...
  5. def __enter__(self) -> Self: ...
  6. def __exit__(self, *a: object) -> None: ...
  7. def channel(self) -> Channel: ...