def value_phrase(self): """Value with unit""" #return value_element(self.unit) return value_element_plain()
def value_with_optional_unit(self): """Value possibly followed by a unit""" value = value_element_plain() #return Group(value + Optional(self.unit)) return value