MCPcopy
hub / github.com/marshmallow-code/marshmallow / _deserialize

Method _deserialize

src/marshmallow/fields.py:438–457  ·  view source on GitHub ↗

Deserialize value. Concrete :class:`Field` classes should implement this method. :param value: The value to be deserialized. :param attr: The attribute/key in `data` to be deserialized. :param data: The raw input data passed to the `Schema.load `.

(
        self,
        value: typing.Any,
        attr: str | None,
        data: typing.Mapping[str, typing.Any] | None,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

436 return value
437
438 def _deserialize(
439 self,
440 value: typing.Any,
441 attr: str | None,
442 data: typing.Mapping[str, typing.Any] | None,
443 **kwargs,
444 ) -> _InternalT:
445 """Deserialize value. Concrete :class:`Field` classes should implement this method.
446
447 :param value: The value to be deserialized.
448 :param attr: The attribute/key in `data` to be deserialized.
449 :param data: The raw input data passed to the `Schema.load <marshmallow.Schema.load>`.
450 :param kwargs: Field-specific keyword arguments.
451 :raise ValidationError: In case of formatting or validation failure.
452 :return: The deserialized value.
453
454 .. versionchanged:: 3.0.0
455 Added ``**kwargs`` to signature.
456 """
457 return value
458
459 @staticmethod
460 def _normalize_processors(

Callers 1

deserializeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected