Basic enum flag; its value can be any string from list of enum_values.
Inherits From: Flag
tf.compat.v1.flags.EnumFlag(
name, default, help, enum_values, short_name=None, case_sensitive=True, **args
)
Attributes | |
---|---|
value
|
Methods
flag_type
flag_type()
Returns a str that describes the type of the flag.
parse
parse(
argument
)
Parses string and sets flag value.
Args | |
---|---|
argument
|
str or the correct flag value type, argument to be parsed. |
serialize
serialize()
Serializes the flag.
unparse
unparse()
__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.