Skip to content

Commit 0d142ec

Browse files
authored
test: work around missing method error in JET (#75)
1 parent 4c4e47b commit 0d142ec

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/jobsubmission.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,12 @@ function submit_job(
12461246
else
12471247
c.env
12481248
end
1249-
args = merge(get(app, :args, Dict()), args)
1249+
args = merge(
1250+
# Note: we need to ::Dict type assertion here to avoid JET complaining with:
1251+
# no matching method found `convert(::Type{Dict}, ::NamedTuple)`: convert(JuliaHub.Dict, _26::NamedTuple)
1252+
get(app, :args, Dict())::Dict,
1253+
args,
1254+
)
12501255

12511256
projectid = isnothing(c.project) ? nothing : string(c.project)
12521257

0 commit comments

Comments
 (0)