From 5b042b86412a62bf69f1fbe2389ee0219e0becef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= Date: Fri, 21 Jul 2023 16:46:32 -0300 Subject: [PATCH] extend/ENV/super: correct `deparallelize` signature The block is optional, so it should be marked `T.nilable` --- Library/Homebrew/extend/ENV/super.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb index f797e4bc23..e21fe93968 100644 --- a/Library/Homebrew/extend/ENV/super.rb +++ b/Library/Homebrew/extend/ENV/super.rb @@ -304,7 +304,7 @@ module Superenv # Removes the MAKEFLAGS environment variable, causing make to use a single job. # This is useful for makefiles with race conditions. # When passed a block, MAKEFLAGS is removed only for the duration of the block and is restored after its completion. - sig { params(block: T.proc.returns(T.untyped)).returns(T.untyped) } + sig { params(block: T.nilable(T.proc.returns(T.untyped))).returns(T.untyped) } def deparallelize(&block) old = delete("MAKEFLAGS") if block