diff --git a/overrides/default.nix b/overrides/default.nix index 7efb61e98..1aade6f95 100644 --- a/overrides/default.nix +++ b/overrides/default.nix @@ -1153,7 +1153,7 @@ lib.composeManyExtensions [ url = "https://github.com/python/mypy/commit/e7869f05751561958b946b562093397027f6d5fa.patch"; sha256 = "sha256-waIZ+m3tfvYE4HJ8kL6rN/C4fMjvLEe9UoPbt9mHWIM="; }) - ] ++ lib.optionals (lib.strings.versionAtLeast old.version "0.960") [ + ] ++ lib.optionals ((lib.strings.versionAtLeast old.version "0.960") && (lib.strings.versionOlder old.version "0.971")) [ (pkgs.fetchpatch { url = "https://github.com/python/mypy/commit/2004ae023b9d3628d9f09886cbbc20868aee8554.patch"; sha256 = "sha256-y+tXvgyiECO5+66YLvaje8Bz5iPvfWNIBJcsnZ2nOdI=";