1212
1313import quaxed .numpy as jnp
1414import unxt as u
15- from unxt ._src .units .api import AstropyUnits
1615
1716from .base import AbstractDistance
1817
@@ -46,7 +45,7 @@ class Distance(AbstractDistance):
4645 )
4746 """The value of the `unxt.AbstractQuantity`."""
4847
49- unit : AstropyUnits = eqx .field (static = True , converter = u .unit )
48+ unit : u . AbstractUnit = eqx .field (static = True , converter = u .unit )
5049 """The unit associated with this value."""
5150
5251 _ : KW_ONLY
@@ -103,7 +102,7 @@ class DistanceModulus(AbstractDistance):
103102 )
104103 """The value of the `unxt.AbstractQuantity`."""
105104
106- unit : AstropyUnits = eqx .field (static = True , converter = u .unit )
105+ unit : u . AbstractUnit = eqx .field (static = True , converter = u .unit )
107106 """The unit associated with this value."""
108107
109108 def __check_init__ (self ) -> None :
@@ -138,7 +137,7 @@ class Parallax(AbstractDistance):
138137 To disable this check, set `check_negative=False`.
139138
140139 >>> Parallax(-1, "mas", check_negative=False)
141- Parallax(Array(-1, dtype=int32, ... ), unit='mas', check_negative=False )
140+ Parallax(Array(-1, dtype=int32, weak_type=True ), unit='mas')
142141
143142 """
144143
@@ -147,7 +146,7 @@ class Parallax(AbstractDistance):
147146 )
148147 """The value of the `unxt.AbstractQuantity`."""
149148
150- unit : AstropyUnits = eqx .field (static = True , converter = u .unit )
149+ unit : u . AbstractUnit = eqx .field (static = True , converter = u .unit )
151150 """The unit associated with this value."""
152151
153152 _ : KW_ONLY
0 commit comments