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

Method _test_collection

src/marshmallow/fields.py:632–635  ·  view source on GitHub ↗
(self, value: typing.Any)

Source from the content-addressed store, hash-verified

630 return schema.dump(nested_obj, many=many)
631
632 def _test_collection(self, value: typing.Any) -> None:
633 many = self.schema.many or self.many
634 if many and not utils.is_collection(value):
635 raise self.make_error("type", input=value, type=value.__class__.__name__)
636
637 def _load(
638 self,

Callers 2

_deserializeMethod · 0.95
_deserializeMethod · 0.80

Calls 1

make_errorMethod · 0.80

Tested by

no test coverage detected