Skip to content

Commit bc43b98

Browse files
committed
Merge remote-tracking branch 'origin/torfjelde/code-warntype' into torfjelde/code-warntype
2 parents 52b4301 + a6584c4 commit bc43b98

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/debug_utils.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -698,13 +698,13 @@ function model_warntype(
698698
model::Model,
699699
varinfo::AbstractVarInfo=VarInfo(model),
700700
context::AbstractContext=DefaultContext();
701-
optimize::Bool=false
701+
optimize::Bool=false,
702702
)
703703
args, kwargs = DynamicPPL.make_evaluate_args_and_kwargs(model, varinfo, context)
704704
return if isempty(kwargs)
705-
InteractiveUtils.@code_warntype optimize=optimize model.f(args...)
705+
InteractiveUtils.@code_warntype optimize = optimize model.f(args...)
706706
else
707-
InteractiveUtils.@code_warntype optimize=optimize model.f(args...; kwargs...)
707+
InteractiveUtils.@code_warntype optimize = optimize model.f(args...; kwargs...)
708708
end
709709
end
710710

@@ -727,13 +727,13 @@ function model_codetyped(
727727
model::Model,
728728
varinfo::AbstractVarInfo=VarInfo(model),
729729
context::AbstractContext=DefaultContext();
730-
optimize::Bool=true
730+
optimize::Bool=true,
731731
)
732732
args, kwargs = DynamicPPL.make_evaluate_args_and_kwargs(model, varinfo, context)
733733
return if isempty(kwargs)
734-
InteractiveUtils.@code_typed optimize=optimize model.f(args...)
734+
InteractiveUtils.@code_typed optimize = optimize model.f(args...)
735735
else
736-
InteractiveUtils.@code_typed optimize=optimize model.f(args...; kwargs...)
736+
InteractiveUtils.@code_typed optimize = optimize model.f(args...; kwargs...)
737737
end
738738
end
739739

0 commit comments

Comments
 (0)