Add allowReturnNone to skylark annotations
@@ -141,6 +141,7 @@ public abstract class ResourceContainer {
@SkylarkCallable(
name = "compiled_symbols",
doc = "Returns the compiled symbols generated by aapt2.",
+ allowReturnNones = true,
structField = true
)
public abstract Artifact getCompiledSymbols();
@@ -149,6 +150,7 @@ public abstract class ResourceContainer {
@SkylarkCallable(
name = "static_library",
doc = "Returns the static library created by aapt2.",
+ allowReturnNones = true,
structField = true
)
public abstract Artifact getStaticLibrary();
@@ -157,6 +159,7 @@ public abstract class ResourceContainer {
@SkylarkCallable(
name = "aapt2_r_txt",
doc = "Returns the R.txt generated by aapt2.",
+ allowReturnNones = true,
structField = true
)
public abstract Artifact getAapt2RTxt();
