Skip to content

Commit d4fcb66

Browse files
committed
Another linitng round
1 parent 66598b1 commit d4fcb66

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/tools/hash.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from typing import Union
2-
31
import numpy as np
42
from redis.exceptions import RedisError
53

@@ -9,7 +7,7 @@
97

108
@mcp.tool()
119
async def hset(
12-
name: str, key: str, value: Union[str, int, float], expire_seconds: int = None
10+
name: str, key: str, value: str | int | float, expire_seconds: int = None
1311
) -> str:
1412
"""Set a field in a hash stored at key with an optional expiration time.
1513

src/tools/json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import json
2-
from typing import Union, Mapping, List, TYPE_CHECKING, Any
2+
from typing import Union, Mapping, List, TYPE_CHECKING
33
from redis.exceptions import RedisError
44

55
from src.common.connection import RedisConnectionManager

0 commit comments

Comments
 (0)