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 May 10, 2023
1 parent b7e79c9 commit b0baae2
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 33 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 @@ -78,6 +77,7 @@ python-arango = "==7.5.2"
gdown = "==4.6.0"
openai = "*"
types-cachetools = "*"
mypy = "==0.981"

[requires]
python_version = "3.9"
Expand Down
69 changes: 39 additions & 30 deletions appserver/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions appserver/neo4japp/services/rcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,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 b0baae2

Please sign in to comment.