Skip to content

Commit

Permalink
fix type hints
Browse files Browse the repository at this point in the history
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
  • Loading branch information
nstarman committed Jul 17, 2023
1 parent 176a468 commit 1bc9918
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/stream_ml/pytorch/_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class MixtureModel(ModelsBase, CoreMixtureModel[Array, NNModel]):
The neural network that is used to combine the components.
"""

net: NNField[NNModel] = NNField(default=MISSING)
net: NNField[NNModel, NNModel] = NNField(default=MISSING)

def __new__(cls: type[Self], *args: Any, **kwargs: Any) -> Self: # noqa: ARG003
"""Initialize the model. This is needed for PyTorch."""
Expand Down
4 changes: 2 additions & 2 deletions src/stream_ml/pytorch/builtin/_isochrone.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
if TYPE_CHECKING:
from scipy.interpolate import CubicSpline

from stream_ml.core.typing import BoundsT, NNModel
from stream_ml.core.typing import BoundsT

from stream_ml.pytorch.params import Params
from stream_ml.pytorch.typing import Array, ArrayNamespace
from stream_ml.pytorch.typing import Array, ArrayNamespace, NNModel

dm_sigma_const: Final = 5 / xp.log(xp.asarray(10))
# Constant for first order error propagation of parallax -> distance modulus
Expand Down

0 comments on commit 1bc9918

Please sign in to comment.