As first thing in the method you should check that the passed stddev_types are valid, doing something like that:

        assert all(stddev_type in self.DEFINED_FOR_STANDARD_DEVIATION_TYPES
                   for stddev_type in stddev_types)