Changes between Version 40 and Version 41 of pyson
- Timestamp:
- 06/02/21 10:38:48 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pyson
v40 v41 57 57 WARNING: Using Decimal causes rounding errors. This is because pyson takes python's json representation format which contains floats for numbers. And floats can not represent all decimals accurately. 58 58 59 You can use Union[X, NoneType] if the object can also be None. We do not support Union[X,Y]where both X and Y are not NoneType.59 You can use {{{ Union[X, NoneType] }}} where {{{NoneType=type(None)}}} if the object can also be None. So for exmple you can use {{{reservationBid:Union[Bid,type(None)] = None}}}. Do not use the mypy.NoneType which is an entirely different class. We do not support {{{ Union[X,Y] }}} where both X and Y are not NoneType. 60 60 61 61 == Annotations