Representation of the BSON int64 type. This is necessary because every integral number is an :class:`int` in Python 3. Small integral numbers are encoded to BSON int32 by default, but Int64 numbers will always be encoded to BSON int64. :param value: the numeric value to represent
| 19 | |
| 20 | |
| 21 | class Int64(int): |
| 22 | """Representation of the BSON int64 type. |
| 23 | |
| 24 | This is necessary because every integral number is an :class:`int` in |
| 25 | Python 3. Small integral numbers are encoded to BSON int32 by default, |
| 26 | but Int64 numbers will always be encoded to BSON int64. |
| 27 | |
| 28 | :param value: the numeric value to represent |
| 29 | """ |
| 30 | |
| 31 | __slots__ = () |
| 32 | |
| 33 | _type_marker = 18 |
| 34 | |
| 35 | def __getstate__(self) -> Any: |
| 36 | return {} |
| 37 | |
| 38 | def __setstate__(self, state: Any) -> None: |
| 39 | pass |
no outgoing calls