def allowTypes(self, *types):
        """
        SecurityOptions.allowTypes(typeString): Allow a particular type, by its
        name.
        """
        for typ in types:
            if isinstance(typ, unicode):
                typ = typ.encode('utf-8')
            if not isinstance(typ, bytes):
                typ = qual(typ)
            self.allowedTypes[typ] = 1

        SecurityOptions.allowTypes(typeString): Allow a particular type, by its
        name.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/spread/jelly.py