Basic enum flag; its value is an enum class's member.
Inherits From: Flag
tf.compat.v1.flags.EnumClassFlag(
name, default, help, enum_class, short_name=None, **args
)
value__eq____eq__(
other
)
Return self==value.
__ge____ge__(
other, NotImplemented=NotImplemented
)
Return a >= b. Computed by @total_ordering from (not a < b).
__gt____gt__(
other, NotImplemented=NotImplemented
)
Return a > b. Computed by @total_ordering from (not a < b) and (a != b).
__le____le__(
other, NotImplemented=NotImplemented
)
Return a <= b. Computed by @total_ordering from (a < b) or (a == b).
__lt____lt__(
other
)
Return self<value.
flag_typeflag_type()
Returns a str that describes the type of the flag.
NOTE: we use strings, and not the types.*Type constants because our flags can have more exotic types, e.g., 'comma separated list of strings', 'whitespace separated list of strings', etc.
parseparse(
argument
)
Parses string and sets flag value.
argument: str or the correct flag value type, argument to be parsed.serializeserialize()
Serializes the flag.
unparseunparse()