From 1575243d30952d384009dd1e23f0bb4f2c6b0f4d Mon Sep 17 00:00:00 2001 From: Thomas Aarholt Date: Tue, 8 Oct 2024 13:01:09 +0200 Subject: [PATCH] Correct type definition for bound_arg_indices Allows optional lower or upper bounds. --- pymc/distributions/continuous.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymc/distributions/continuous.py b/pymc/distributions/continuous.py index 30abbbfc8e..58bca3829f 100644 --- a/pymc/distributions/continuous.py +++ b/pymc/distributions/continuous.py @@ -152,7 +152,7 @@ class BoundedContinuous(Continuous): """Base class for bounded continuous distributions""" # Indices of the arguments that define the lower and upper bounds of the distribution - bound_args_indices: tuple[int, int] | None = None + bound_args_indices: tuple[int | None, int | None] | None = None @_default_transform.register(PositiveContinuous)