mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 10:45:00 +00:00
style: Format code with black
This commit is contained in:
parent
7f1f2cb7ba
commit
2570a4d193
2 changed files with 8 additions and 3 deletions
|
@ -458,7 +458,9 @@ class Model(ModelSettings):
|
|||
cache_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
current_time = time.time()
|
||||
cache_age = current_time - cache_file.stat().st_mtime if cache_file.exists() else float('inf')
|
||||
cache_age = (
|
||||
current_time - cache_file.stat().st_mtime if cache_file.exists() else float("inf")
|
||||
)
|
||||
|
||||
if cache_file.exists() and cache_age < 86400: # 86400 seconds = 1 day
|
||||
content = safe_read_json(cache_file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue