def __contains__(self, value): ''' Check if specific type is allowed ''' return (value in self.channel_types or BaseType.__contains__(self, value))
def __contains__(self, value): ''' Look up for type among supported channels. Child chlasses should overload this method to add new channels ''' return (value in self.input_types or BaseType.__contains__(self, value))