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

Method _validated

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

Source from the content-addressed store, hash-verified

1029
1030 # override Number
1031 def _validated(self, value: typing.Any) -> int:
1032 if self.strict and not isinstance(value, numbers.Integral):
1033 raise self.make_error("invalid", input=value)
1034 return super()._validated(value)
1035
1036
1037class Float(Number[float]):

Callers

nothing calls this directly

Calls 2

make_errorMethod · 0.80
_validatedMethod · 0.45

Tested by

no test coverage detected