fcbcb3c73892ee31df710fcd6b48d06a3efdc143,src/python/pants/engine/target.py,StringSequenceField,compute_value,#Any#Any#,713

Before Change


        cls, raw_value: Optional[Iterable[str]], *, address: Address
    ) -> Optional[Tuple[str, ...]]:
        value_or_default = super().compute_value(raw_value, address=address)
        if value_or_default is None:
            return None
        try:
            ensure_str_list(value_or_default)
        except ValueError:
            raise InvalidFieldTypeException(
                address,
                cls.alias,
                raw_value,
                expected_type="an iterable of strings (e.g. a list of strings)",
            )
        return tuple(value_or_default)


class StringOrStringSequenceField(PrimitiveField, metaclass=ABCMeta):
    The raw_value may either be a string or be an iterable of strings.

After Change


    def compute_value(
        cls, raw_value: Optional[Iterable[str]], *, address: Address
    ) -> Optional[Tuple[str, ...]]:
        return super().compute_value(raw_value, address=address)


class StringOrStringSequenceField(SequenceField, metaclass=ABCMeta):
    The raw_value may either be a string or be an iterable of strings.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pantsbuild/pants
Commit Name: fcbcb3c73892ee31df710fcd6b48d06a3efdc143
Time: 2020-04-06
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:
Method Name: hydrate_sources


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