Messages arguments

pytidyhtml5.MessageArg(Message message)

A pytidyhtml5.Message format value.

Getters

MessageArg.type

Type of the argument’s value.

Returns

  • pytidyhtml.FormatParameterType – The value type.

  • None – The message expired.

MessageArg.value

Value of the argument.

Returns

  • int|str|float – The value.

  • None – The message expired.

MessageArg.format

C format string to format the value.

Miscellaneous

MessageArg.__bool__()

A MessageArg is truthy iff its Message is truthy.

Getters as methods

All getters exist as methods, too:

pytidyhtml5.MessageArg.get_type(self)

Type of the argument’s value.

pytidyhtml5.MessageArg.get_value(self)

Value of the argument.

pytidyhtml5.MessageArg.get_format(self)

C format string to format the value.