Skip to content

Commit

Permalink
Type cache delete functions to return bool (#1310)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaeppe authored Jan 5, 2023
1 parent 2e504df commit c1794be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django-stubs/core/cache/backends/base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class BaseCache:
async def aset(self, key: Any, value: Any, timeout: float | None = ..., version: int | None = ...) -> None: ...
def touch(self, key: Any, timeout: float | None = ..., version: int | None = ...) -> bool: ...
async def atouch(self, key: Any, timeout: float | None = ..., version: int | None = ...) -> bool: ...
def delete(self, key: Any, version: int | None = ...) -> None: ...
async def adelete(self, key: Any, version: int | None = ...) -> None: ...
def delete(self, key: Any, version: int | None = ...) -> bool: ...
async def adelete(self, key: Any, version: int | None = ...) -> bool: ...
def get_many(self, keys: Iterable[Any], version: int | None = ...) -> dict[Any, Any]: ...
async def aget_many(self, keys: Iterable[Any], version: int | None = ...) -> dict[Any, Any]: ...
def get_or_set(
Expand Down

0 comments on commit c1794be

Please sign in to comment.