def METHOD_NAME(self, other, **kwargs):
    # Gather incoming keys
    keys = []
    if hasattr(other, "keys"):
        keys += list(other.keys())
    else:
        keys += [k for k, v in other]
    keys += list(kwargs.keys())
    # Check validity of keys
    for key in keys:
        if key in self._forbidden_keys:
            raise ValueError(f"{key!r} is not a permitted attribute")
    dict.METHOD_NAME(self, other, **kwargs)