From 1e397f7472653b136bea0632e989905f8e94b748 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sun, 1 Nov 2026 13:33:44 +0100 Subject: [PATCH] Fix the inactivity_threshold, fixes #257 --- parso/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parso/cache.py b/parso/cache.py index 5592a9f..1771d99 100644 --- a/parso/cache.py +++ b/parso/cache.py @@ -219,7 +219,7 @@ def clear_inactive_cache( if not version_path.is_dir(): continue for file in os.scandir(version_path): - if file.stat().st_atime + _CACHED_FILE_MAXIMUM_SURVIVAL <= time.time(): + if file.stat().st_atime + inactivity_threshold <= time.time(): try: os.remove(file.path) except OSError: # silently ignore all failures