//python/api:attr_builders.bzl

Public, attribute building APIs for Python rules.

attrb.Bool(**kwargs)

Creates a builder forattr.bool.

Args:
Returns:

Bool

attrb.Int(**kwargs)

Creates a builder forattr.int.

Args:
Returns:

Int

attrb.IntList(**kwargs)

Creates a builder forattr.int_list.

Args:
Returns:

IntList

attrb.Label(**kwargs)

Creates a builder forattr.label.

Args:
  • kwargs – The same asattr.label().

Returns:

Label

attrb.LabelKeyedStringDict(**kwargs)

Creates a builder forattr.label_keyed_string_dict.

Args:
Returns:

LabelKeyedStringDict

attrb.LabelList(**kwargs)

Creates a builder forattr.label_list.

Args:
Returns:

LabelList

attrb.Output(**kwargs)

Creates a builder forattr.output.

Args:
Returns:

Output

attrb.OutputList(**kwargs)

Creates a builder forattr.output_list.

Args:
Returns:

OutputList

attrb.String(**kwargs)

Creates a builder forattr.string.

Args:
Returns:

String

attrb.StringDict(**kwargs)

Creates a builder forattr.string_dict.

Args:
  • kwargs – The same args as forattr.string_dict.

Returns:

StringDict

attrb.StringKeyedLabelDict(**kwargs)

Creates a builder forattr.string_keyed_label_dict.

Args:
Returns:

StringKeyedLabelDict

attrb.StringList(**kwargs)

Creates a builder forattr.string_list.

Args:
Returns:

StringList

attrb.StringListDict(**kwargs)

Creates a builder forattr.string_list_dict.

Args:
Returns:

StringListDict

typedefattrb.WhichCfg

Values returned byAttrCfg.which_cfg

WhichCfg.TARGET

Indicates the target config is set.

WhichCfg.EXEC

Indicates the exec config is set.

WhichCfg.NONE

Indicates the “none” config is set (seeconfig.none).

WhichCfg.IMPL

Indicates a custom transition is set.