Skip to content

Commit f035736

Browse files
committed
backward compatible typing
1 parent ba38657 commit f035736

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_asyncio/test_sentinel_managed_connection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import socket
2+
from typing import Tuple
23
from unittest.mock import AsyncMock
34

45
import pytest
@@ -71,7 +72,7 @@ async def connect(self) -> None:
7172

7273

7374
class SentinelManagedConnectionMockForMasterMode(SentinelManagedConnectionMock):
74-
async def connect_to(self, address: tuple[str, int]) -> None:
75+
async def connect_to(self, address: Tuple[str, int]) -> None:
7576
"""
7677
This simulates the behavior of connect_to when
7778
:py:class:`~redis.SentinelConnectionPool`

0 commit comments

Comments
 (0)