Instead of disabling the warnings it is probably better to just act on them - define `has_mask` and `mask_dict` to both default to None in the base class.