valid_types is accessed within __getattribute__, so don\'t call self.client until it is set up.