Skip to content

Commit

Permalink
Fix instance cache
Browse files Browse the repository at this point in the history
  • Loading branch information
KaQuMiQ authored Sep 2, 2024
1 parent 90f2eae commit 3e053bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "draive"
description = "Framework designed to simplify and accelerate the development of LLM-based applications."
version = "0.28.3"
version = "0.28.4"
readme = "README.md"
maintainers = [
{ name = "Kacper Kaliński", email = "[email protected]" },
Expand Down
4 changes: 2 additions & 2 deletions src/draive/utils/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,11 @@ def next_expire_time() -> float | None:

def __get__(
self,
instance: object,
instance: object | None,
owner: type | None = None,
/,
) -> Callable[Args, Coroutine[None, None, Result]]:
if owner is None:
if owner is None or instance is None:
return self

else:
Expand Down

0 comments on commit 3e053bd

Please sign in to comment.