mosquito / aio-pika

AMQP 0.9 client designed for asyncio and humans.
https://aio-pika.readthedocs.org/
Apache License 2.0
1.18k stars 186 forks source link

error in pyright with strict mode for connect_robust #476

Closed tvallois closed 1 year ago

tvallois commented 1 year ago

Hi,

We'd like to pass our project to strict mode with pyright however he's complaining about unknown key and values for Dict in ssl_options.

Type of "connect_robust" is partially unknown
  Type of "connect_robust" is "(url: str | URL = None, *, host: str = "localhost", port: int = 5672, login: str = "guest", password: str = "guest", virtualhost: str = "/", ssl: bool = False, loop: AbstractEventLoop = None, ssl_options: dict[Unknown, Unknown] = None, timeout: int | float | None = None, client_properties: Dict[str, bool | bytearray | Decimal | List[FieldValue] | FieldTable | float | int | str | datetime | None] = None, connection_class: Type[AbstractRobustConnection] = RobustConnection, **kwargs: Any) -> Coroutine[Any, Any, AbstractRobustConnection]"

I can make a PR to fix that if you want.

mosquito commented 1 year ago

Ok. Let’s try