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

Method __init__

mongoengine/fields.py:331–338  ·  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

329 """32-bit integer field."""
330
331 def __init__(self, min_value=None, max_value=None, **kwargs):
332 """
333 :param min_value: (optional) A min value that will be applied during validation
334 :param max_value: (optional) A max value that will be applied during validation
335 :param kwargs: Keyword arguments passed into the parent :class:`~mongoengine.BaseField`
336 """
337 self.min_value, self.max_value = min_value, max_value
338 super().__init__(**kwargs)
339
340 def to_python(self, value):
341 try:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected