Skip to content

Commit 6d30d75

Browse files
Invalidate cache when --enable-incomplete-feature changes (fixes #20845) (#20849)
Fixes #20845 This PR ensures that the mypy cache is invalidated when the --enable-incomplete-feature flag changes. Previously, enabling or disabling incomplete features did not affect the cache key, so users could get stale results unless they manually cleared the cache. Now, the enable_incomplete_feature option is included in the cache key logic, so the cache is properly refreshed when this flag changes. --------- Co-authored-by: Ivan Levkivskyi <levkivskyi@gmail.com>
1 parent 688121a commit 6d30d75

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypy/options.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class BuildType:
7676
"strict_bytes",
7777
"fixed_format_cache",
7878
"untyped_calls_exclude",
79+
"enable_incomplete_feature",
7980
}
8081
) - {"debug_cache"}
8182

0 commit comments

Comments
 (0)