class documentation

class TimeUnit(bb.Union): (source)

View In Hierarchy

This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method.

Method is_days Check if the union tag is ``days``.
Method is_hours Check if the union tag is ``hours``.
Method is_milliseconds Check if the union tag is ``milliseconds``.
Method is_minutes Check if the union tag is ``minutes``.
Method is_months Check if the union tag is ``months``.
Method is_other Check if the union tag is ``other``.
Method is_seconds Check if the union tag is ``seconds``.
Method is_weeks Check if the union tag is ``weeks``.
Method is_years Check if the union tag is ``years``.
Class Variable days Undocumented
Class Variable hours Undocumented
Class Variable milliseconds Undocumented
Class Variable minutes Undocumented
Class Variable months Undocumented
Class Variable other Undocumented
Class Variable seconds Undocumented
Class Variable weeks Undocumented
Class Variable years Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
def is_days(self): (source)

Check if the union tag is ``days``. :rtype: bool

def is_hours(self): (source)

Check if the union tag is ``hours``. :rtype: bool

def is_milliseconds(self): (source)

Check if the union tag is ``milliseconds``. :rtype: bool

def is_minutes(self): (source)

Check if the union tag is ``minutes``. :rtype: bool

def is_months(self): (source)

Check if the union tag is ``months``. :rtype: bool

def is_other(self): (source)

Check if the union tag is ``other``. :rtype: bool

def is_seconds(self): (source)

Check if the union tag is ``seconds``. :rtype: bool

def is_weeks(self): (source)

Check if the union tag is ``weeks``. :rtype: bool

def is_years(self): (source)

Check if the union tag is ``years``. :rtype: bool

Undocumented

Undocumented

milliseconds = (source)

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

def _process_custom_annotations(self, annotation_type, field_path, processor): (source)

Undocumented

_catch_all: str = (source)

Undocumented