use starlark_derive::starlark_module;
use crate as starlark;
use crate::environment::GlobalsBuilder;
use crate::environment::MethodsBuilder;
use crate::values::none::NoneType;
#[starlark_module]
fn test_other_attributes_in_globals(globals: &mut GlobalsBuilder) {
fn test_global(#[allow(unused_variables)] foo: u32) -> anyhow::Result<NoneType> {
Ok(NoneType)
}
}
#[starlark_module]
fn test_other_attributes_in_methods(methods: &mut MethodsBuilder) {
fn test_method(#[allow(unused_variables)] this: u32) -> anyhow::Result<NoneType> {
Ok(NoneType)
}
}
#[starlark_module]
fn test_other_attributes_in_atributes(methods: &mut MethodsBuilder) {
#[starlark(attribute)]
fn test_attribute(
#[allow(unused_variables)] this: u32,
) -> starlark::Result<NoneType> {
Ok(NoneType)
}
}