bazel: add call-time type check to attr.label(allow_files=...)
(Follow-up to discussion in commit 6cb560f7c0bbbbf2308d37f1cb24c5af691ba5db.)
@@ -268,6 +268,11 @@ public interface StarlarkAttrModuleApi extends StarlarkValue {
doc = EXECUTABLE_DOC),
@Param(
name = ALLOW_FILES_ARG,
+ allowedTypes = {
+ @ParamType(type = Boolean.class),
+ @ParamType(type = Sequence.class, generic1 = String.class),
+ @ParamType(type = NoneType.class),
+ },
defaultValue = "None",
named = true,
positional = false,
