Skip to content

Commit 429b131

Browse files
committed
Format
1 parent 96228ce commit 429b131

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/copyable_task.jl

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,11 +396,19 @@ macro might_produce_kwargs(f)
396396
# `$(might_produce)` or $(Libtask.might_produce) seem more natural but both of
397397
# those cause the entire `Libtask.might_produce` to be treated as a single
398398
# symbol. See https://discourse.julialang.org/t/128613
399-
$(Libtask).might_produce(::Type{<:Tuple{typeof(Core.kwcall),<:NamedTuple,typeof($(esc(f))),Vararg}}) = true
399+
function $(Libtask).might_produce(
400+
::Type{<:Tuple{typeof(Core.kwcall),<:NamedTuple,typeof($(esc(f))),Vararg}}
401+
)
402+
return true
403+
end
400404
for n in possible_n_kwargs
401405
# We only need `Any` and not `<:Any` because tuples are covariant.
402406
kwarg_types = fill(Any, n)
403-
$(Libtask).might_produce(::Type{<:Tuple{<:Function,kwarg_types...,typeof($(esc(f))),Vararg}}) = true
407+
function $(Libtask).might_produce(
408+
::Type{<:Tuple{<:Function,kwarg_types...,typeof($(esc(f))),Vararg}}
409+
)
410+
return true
411+
end
404412
end
405413
end
406414
end

0 commit comments

Comments
 (0)