Skip to content

Commit

Permalink
handlers & py.typed (#3321)
Browse files Browse the repository at this point in the history
  • Loading branch information
ordabayevy committed Feb 6, 2024
1 parent df34383 commit 6d2a56f
Show file tree
Hide file tree
Showing 5 changed files with 380 additions and 63 deletions.
4 changes: 2 additions & 2 deletions pyro/poutine/collapse_messenger.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


from functools import reduce, singledispatch
from typing import TYPE_CHECKING, FrozenSet, Tuple
from typing import TYPE_CHECKING, Any, FrozenSet, Tuple

from typing_extensions import Self

Expand Down Expand Up @@ -85,7 +85,7 @@ class CollapseMessenger(TraceMessenger):

_coerce = None

def __init__(self, *args, **kwargs) -> None:
def __init__(self, *args: Any, **kwargs: Any) -> None:
if CollapseMessenger._coerce is None:
import funsor
from funsor.distribution import CoerceDistributionToFunsor
Expand Down

0 comments on commit 6d2a56f

Please sign in to comment.