diff --git a/nats/aio/client.py b/nats/aio/client.py index 08f9a119..397866ae 100644 --- a/nats/aio/client.py +++ b/nats/aio/client.py @@ -1334,7 +1334,7 @@ async def _flush_pending( except asyncio.CancelledError: pass - def _setup_server_pool(self, connect_url: Union[List[str]]) -> None: + def _setup_server_pool(self, connect_url: Union[str, List[str]]) -> None: if isinstance(connect_url, str): try: if "nats://" in connect_url or "tls://" in connect_url: