33c4a5a9b8c1ffb25baf2ece00faf4becb4d1832,src/python/pants/engine/target.py,StringSequenceField,compute_value,#Any#Any#,658

Before Change


        try:
            ensure_str_list(value_or_default)
        except ValueError:
            raise InvalidFieldTypeException(
                address,
                cls.alias,
                value_or_default,
                expected_type="an iterable of strings (e.g. a list of strings)",
            )
        return tuple(sorted(value_or_default))


class StringOrStringSequenceField(PrimitiveField, metaclass=ABCMeta):

After Change


        value_or_default = super().compute_value(raw_value, address=address)
        if value_or_default is None:
            return None
        invalid_type_exception = InvalidFieldTypeException(
            address,
            cls.alias,
            raw_value,
            expected_type="an iterable of strings (e.g. a list of strings)",
        )
        if isinstance(value_or_default, str):
            raise invalid_type_exception
        try:
            ensure_str_list(value_or_default)
        except ValueError:
            raise invalid_type_exception
        return tuple(value_or_default)


class StringOrStringSequenceField(PrimitiveField, metaclass=ABCMeta):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: pantsbuild/pants
Commit Name: 33c4a5a9b8c1ffb25baf2ece00faf4becb4d1832
Time: 2020-04-02
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/engine/target.py
Class Name: StringSequenceField
Method Name: compute_value


Project Name: pantsbuild/pants
Commit Name: 258ff63e57a15075b46d5bc26787babc6e572533
Time: 2020-04-03
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/engine/target.py
Class Name: StringSequenceField
Method Name: compute_value


Project Name: pantsbuild/pants
Commit Name: 95c2629cca0dbd84818f3c2d2f1ed1a82a750830
Time: 2020-04-02
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/engine/target.py
Class Name: Sources
Method Name: sanitize_raw_value