MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / __init__

Method __init__

mongoengine/fields.py:376–383  ·  view source on GitHub ↗

:param min_value: (optional) A min value that will be applied during validation :param max_value: (optional) A max value that will be applied during validation :param kwargs: Keyword arguments passed into the parent :class:`~mongoengine.BaseField`

(self, min_value=None, max_value=None, **kwargs)

Source from the content-addressed store, hash-verified

374 """Floating point number field."""
375
376 def __init__(self, min_value=None, max_value=None, **kwargs):
377 """
378 :param min_value: (optional) A min value that will be applied during validation
379 :param max_value: (optional) A max value that will be applied during validation
380 :param kwargs: Keyword arguments passed into the parent :class:`~mongoengine.BaseField`
381 """
382 self.min_value, self.max_value = min_value, max_value
383 super().__init__(**kwargs)
384
385 def to_python(self, value):
386 try:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected