|
11 | 11 | from jax.scipy.special import logsumexp |
12 | 12 | from jax.typing import ArrayLike |
13 | 13 |
|
14 | | -from numpyro._typing import ConstraintT |
15 | 14 | from numpyro.distributions import constraints |
| 15 | +from numpyro.distributions.constraints import Constraint |
16 | 16 | from numpyro.distributions.continuous import ( |
17 | 17 | Cauchy, |
18 | 18 | Laplace, |
@@ -57,7 +57,7 @@ def __init__( |
57 | 57 | super().__init__(batch_shape, validate_args=validate_args) |
58 | 58 |
|
59 | 59 | @constraints.dependent_property(is_discrete=False, event_dim=0) |
60 | | - def support(self) -> ConstraintT: |
| 60 | + def support(self) -> Constraint: |
61 | 61 | return self._support |
62 | 62 |
|
63 | 63 | @lazy_property |
@@ -162,7 +162,7 @@ def __init__( |
162 | 162 | super().__init__(batch_shape, validate_args=validate_args) |
163 | 163 |
|
164 | 164 | @constraints.dependent_property(is_discrete=False, event_dim=0) |
165 | | - def support(self) -> ConstraintT: |
| 165 | + def support(self) -> Constraint: |
166 | 166 | return self._support |
167 | 167 |
|
168 | 168 | @lazy_property |
@@ -259,7 +259,7 @@ def __init__( |
259 | 259 | super().__init__(batch_shape, validate_args=validate_args) |
260 | 260 |
|
261 | 261 | @constraints.dependent_property(is_discrete=False, event_dim=0) |
262 | | - def support(self) -> ConstraintT: |
| 262 | + def support(self) -> Constraint: |
263 | 263 | return self._support |
264 | 264 |
|
265 | 265 | @lazy_property |
@@ -529,7 +529,7 @@ def __init__( |
529 | 529 | ) |
530 | 530 |
|
531 | 531 | @constraints.dependent_property(is_discrete=False, event_dim=0) |
532 | | - def support(self) -> ConstraintT: |
| 532 | + def support(self) -> Constraint: |
533 | 533 | return self._support |
534 | 534 |
|
535 | 535 | @validate_sample |
@@ -1010,7 +1010,7 @@ def __init__( |
1010 | 1010 | ) |
1011 | 1011 |
|
1012 | 1012 | @constraints.dependent_property(is_discrete=False, event_dim=0) |
1013 | | - def support(self) -> ConstraintT: |
| 1013 | + def support(self) -> Constraint: |
1014 | 1014 | return self._support |
1015 | 1015 |
|
1016 | 1016 | @validate_sample |
|
0 commit comments