Skip to content

Commit d810993

Browse files
committed
[no ci] Add type bound on MHContext rng
1 parent 5f0b381 commit d810993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mcmc/mh.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ function AbstractMCMC.step(
406406
return Transition(model, new_state.varinfo, nothing), new_state
407407
end
408408

409-
struct MHContext{R} <: DynamicPPL.AbstractContext
409+
struct MHContext{R<:AbstractRNG} <: DynamicPPL.AbstractContext
410410
rng::R
411411
end
412412
DynamicPPL.NodeTrait(::MHContext) = DynamicPPL.IsLeaf()

0 commit comments

Comments
 (0)