extend/ENV/super: correct deparallelize signature
The block is optional, so it should be marked `T.nilable`
This commit is contained in:
parent
3fee251765
commit
5b042b8641
@ -304,7 +304,7 @@ module Superenv
|
|||||||
# Removes the MAKEFLAGS environment variable, causing make to use a single job.
|
# Removes the MAKEFLAGS environment variable, causing make to use a single job.
|
||||||
# This is useful for makefiles with race conditions.
|
# 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.
|
# 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)
|
def deparallelize(&block)
|
||||||
old = delete("MAKEFLAGS")
|
old = delete("MAKEFLAGS")
|
||||||
if block
|
if block
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user