Changes between Version 40 and Version 41 of pyson


Ignore:
Timestamp:
06/02/21 10:38:48 (3 years ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pyson

    v40 v41  
    5757WARNING: 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.
    5858
    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.
     59You 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.
    6060
    6161== Annotations