def _set_exclude(self, exclude):
if exclude and (<EOL>(not isinstance(exclude, list))<EOL>or (<EOL>isinstance(exclude, list)<EOL>and any([not isinstance(item, str) for item in exclude])<EOL>)<EOL>):<EOL><INDENT>raise RuntimeError("<STR_LIT>")<EOL><DEDENT>self._exclude = exclude<EOL>
Exclude setter.