Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions redis/asyncio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ class Redis(

@classmethod
def from_url(
cls,
cls: type[_RedisT],
url: str,
single_connection_client: bool = False,
auto_close_connection_pool: Optional[bool] = None,
**kwargs,
):
) -> _RedisT:
"""
Return a Redis client object configured from the given URL

Expand Down
4 changes: 2 additions & 2 deletions redis/asyncio/utils.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from typing import TYPE_CHECKING
from typing import Any, TYPE_CHECKING

if TYPE_CHECKING:
from redis.asyncio.client import Pipeline, Redis


def from_url(url, **kwargs):
def from_url(url: str, **kwargs: Any) -> "Redis":
"""
Returns an active Redis client generated from the given database URL.
Expand Down
Loading