(self, features: List[Union[Feature, str]])
Set the features this bus clients should serve.

        Features should be a list of: `rpcs`, `events`, `tasks`
Set the features this bus clients should serve.
Set the features this bus clients should serve .
def set_features(self, features: List[Union[Feature, str]]):
        """Set the features this bus clients should serve.

        Features should be a list of: `rpcs`, `events`, `tasks`
        """
        features = list(features)
        for i, feature in enumerate(features):
            try:
                features[i] = Feature(feature)
            except ValueError:
                features_str = ", ".join([f.value for f in Feature])
                raise UnsupportedUse(f"Feature '{feature}' is not one of: {features_str}\n")

        self.features = features
def set_features ( self , features : List [ Union [ Feature , str ] ] ) : features = list ( features ) for i , feature in enumerate ( features ) : try : features [ i ] = Feature ( feature ) except ValueError : features_str = ", " . join ( [ f . value for f in Feature ] ) raise UnsupportedUse ( f"Feature '{feature}' is not one of: {features_str}\n" ) self . features = features