Skip to content

Commit

Permalink
fix _setup_server_pool typing information
Browse files Browse the repository at this point in the history
  • Loading branch information
swelborn committed Sep 24, 2024
1 parent 86b5442 commit a15f7c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nats/aio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a15f7c1

Please sign in to comment.