Skip to content

Commit

Permalink
mypy wrongly checks type for attribute function assigment - updating …
Browse files Browse the repository at this point in the history
  • Loading branch information
Skitionek committed Jul 13, 2023
1 parent c1ffdad commit be2808a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion appserver/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ verify_ssl = true
[dev-packages]
pytest = "==5.3.5"
pycodestyle = "==2.7.0"
mypy = "==0.910"
types-paramiko = "==2.7.0"
types-redis = "==3.5.8"
types-requests = "==2.25.8"
Expand Down Expand Up @@ -77,6 +76,7 @@ python-arango = "==7.5.2"
gdown = "==4.6.0"
openai = "*"
types-cachetools = "*"
mypy = "==0.981"

[requires]
python_version = "3.9"
Expand Down
4 changes: 2 additions & 2 deletions appserver/neo4japp/services/rcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class RedisCache(Generic[Key, Value], Cache):
def __init__(
self,
*prefixes: str,
dumps: Callable[[Value], str] = json.dumps, # type: ignore
loads: Callable[[str], Value] = json.loads, # type: ignore
dumps: Callable[[Value], str] = json.dumps,
loads: Callable[[str], Value] = json.loads,
maxsize=float('inf'),
getsizeof=None,
**cache_setting
Expand Down

0 comments on commit be2808a

Please sign in to comment.