Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed May 10, 2024
1 parent 65ab115 commit dbd1d44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frappe/tests/test_caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def calculate_area(radius: float) -> float:
frappe.clear_cache()
calculate_area(10)
self.assertEqual(function_call_count, 2)

def test_user_cache(self):
function_call_count = 0
PI = 3.1415
Expand Down
2 changes: 1 addition & 1 deletion frappe/utils/caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def redis_cache(ttl: int | None = 3600, user: str | bool | None = None, shared:
args:
ttl: time to expiry in seconds, defaults to 1 hour
user: `true` should cache be specific to session user.
shared: `true` should cache be shared across sites
shared: `true` should cache be shared across sites
"""

def wrapper(func: Callable | None = None) -> Callable:
Expand Down

0 comments on commit dbd1d44

Please sign in to comment.