Skip to content

Conversation

@juanitorduz
Copy link
Collaborator

Related to #2036

@juanitorduz juanitorduz marked this pull request as draft January 20, 2026 21:04
@juanitorduz juanitorduz added the enhancement New feature or request label Jan 20, 2026
@juanitorduz juanitorduz self-assigned this Jan 20, 2026
from jax.scipy.stats import norm as jax_norm
from jax.typing import ArrayLike

from numpyro._typing import DistributionT
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we just depend on Distribution, instead of DistributionT? We have some success in constraints.py and transforms.py, which do not use ConstraintT and TransformT. We want to reduce the scope of using DistributionT through the library. Ideally, it's great to not use those protocols at all to avoid confusion.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed them in 3303b4a :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe grep DistributionT and remove at other scripts too? :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure! Started on c27121b and fixing edge cases in the following commits :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@juanitorduz juanitorduz marked this pull request as ready for review January 21, 2026 19:44
@juanitorduz juanitorduz requested a review from fehiepsi January 21, 2026 19:44
Copy link
Member

@fehiepsi fehiepsi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Do you also want to remove ConstraintT and TransformT? I'll try to make a release this weekend.

@fehiepsi fehiepsi merged commit e7e1d42 into pyro-ppl:master Jan 22, 2026
8 checks passed
@juanitorduz juanitorduz deleted the types-distributions branch January 22, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants