Skip to content

Commit a5e6a34

Browse files
Revert changes in rng_fn signatures
Co-authored-by: Ricardo Vieira <[email protected]>
1 parent 05d1f04 commit a5e6a34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc/distributions/continuous.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ class FlatRV(RandomVariable):
344344
_print_name = ("Flat", "\\operatorname{Flat}")
345345

346346
@classmethod
347-
def rng_fn(cls, rng, *args):
347+
def rng_fn(cls, rng, size):
348348
raise NotImplementedError("Cannot sample from flat variable")
349349

350350

@@ -415,7 +415,7 @@ class HalfFlatRV(RandomVariable):
415415
_print_name = ("HalfFlat", "\\operatorname{HalfFlat}")
416416

417417
@classmethod
418-
def rng_fn(cls, rng, *args):
418+
def rng_fn(cls, rng, size):
419419
raise NotImplementedError("Cannot sample from half_flat variable")
420420

421421

0 commit comments

Comments
 (0)