@@ -207,7 +207,15 @@ def resolve(item, dim):
207207
208208
209209class Tracked (AtomicSlicer ):
210- def __init__ (self , o : Any , dim : Union [int , List , None , str ] = "auto" ):
210+ """ Tracked defines an object that slicer wraps."""
211+
212+ def __init__ (self , o : Any , dim : Union [int , List , tuple , None , str ] = "auto" ):
213+ """ Defines an object that will be wrapped by slicer.
214+
215+ Args:
216+ o: Object that will be tracked for slicer.
217+ dim: Target dimension(s) slicer will index on for this object.
218+ """
211219 super ().__init__ (o )
212220
213221 # Protected attribute that can be overriden.
@@ -226,14 +234,14 @@ def __init__(self, o: Any, dim: Union[int, List, None, str] = "auto"):
226234 raise ValueError (f"Cannot handle dim of type: { type (dim )} " )
227235
228236
229- # TODO: Document.
230237class Obj (Tracked ):
238+ """ An object that slicer wraps. """
231239 def __init__ (self , o , dim = "auto" ):
232240 super ().__init__ (o , dim )
233241
234242
235- # NOTE: Alias is different at init as dim is now required.
236243class Alias (Tracked ):
244+ """ Defines a tracked object as well as additional __getitem__ keys. """
237245 def __init__ (self , o , dim ):
238246 if not (
239247 isinstance (dim , int ) or isinstance (dim , list ) and len (dim ) <= 1
0 commit comments