pytest_wdl/executors/__init__.py
def format_value(self, value: Any) -> Any:
        """
        Convert a primitive, DataFile, Sequence, or Dict to a JSON-serializable object.
        Currently, arbitrary objects can be serialized by implementing an `as_dict()`
        method, otherwise they are converted to strings.

        Args:
            value: The value to format.

        Returns:
            The serializable value.
        """
        if hasattr(value, "as_dict"):
            return value.as_dict()

        if isinstance(value, DataFile):
            return self._format_data_file(cast(DataFile, value))

        if isinstance(value, dict):
            return self._format_dict(cast(dict, value))

        if isinstance(value, Sequence) and not isinstance(value, str):
            return self._format_sequence(cast(Sequence, value))

        return value

        Convert a primitive, DataFile, Sequence, or Dict to a JSON-serializable object.
        Currently, arbitrary objects can be serialized by implementing an `as_dict()`
        method, otherwise they are converted to strings.

        Args:
            value: The value to format.

        Returns:
            The serializable value.
        
Convert a primitive, DataFile, Sequence, or Dict to a JSON-serializable object.
Currently, arbitrary objects can be serialized by implementing an `as_dict()`
method, otherwise they are converted to strings.
Convert a primitive DataFile Sequence or Dict to a JSON - serializable object . Currently arbitrary objects can be serialized by implementing an ` as_dict () ` method otherwise they are converted to strings .
def format_value(self, value: Any) -> Any:
        if hasattr(value, "as_dict"):
            return value.as_dict()
        if isinstance(value, DataFile):
            return self._format_data_file(cast(DataFile, value))
        if isinstance(value, dict):
            return self._format_dict(cast(dict, value))
        if isinstance(value, Sequence) and not isinstance(value, str):
            return self._format_sequence(cast(Sequence, value))
        return value
def format_value ( self , value : Any ) -> Any : if hasattr ( value , "as_dict" ) : return value . as_dict ( ) if isinstance ( value , DataFile ) : return self . _format_data_file ( cast ( DataFile , value ) ) if isinstance ( value , dict ) : return self . _format_dict ( cast ( dict , value ) ) if isinstance ( value , Sequence ) and not isinstance ( value , str ) : return self . _format_sequence ( cast ( Sequence , value ) ) return value
Convert a primitive, DataFile, Sequence, or Dict to a JSON-serializable object.
Convert a primitive DataFile Sequence or Dict to a JSON - serializable object .
"""
        Convert a primitive, DataFile, Sequence, or Dict to a JSON-serializable object.
        Currently, arbitrary objects can be serialized by implementing an `as_dict()`
        method, otherwise they are converted to strings.

        Args:
            value: The value to format.

        Returns:
            The serializable value.
        """
The serializable value.
The serializable value .
self
value
Any
The value to format.
The value to format .