Merge pull request #15726 from elopez/deparallelize-fix

extend/ENV/super: correct `deparallelize` signature
This commit is contained in:
Bo Anderson 2023-07-21 21:32:28 +01:00 committed by GitHub
commit 5226cd4344
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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