def __contains__(self, value): ''' Check if specific style is allowed ''' return (value in self.channel_styles or BaseStyle.__contains__(self, value))
def __init__(self, channel_style): ''' Initialize channel with specific style. Style can not be changed. ''' BaseStyle.__init__(self, channel_style, "channel_style")