def expand(self, obj): if not isinstance(obj, Options): raise ValueError("Argument must be an Options") return _Expander.expand(self, obj)