f*ddlmZmZGddeZy)) Serializer SerialResultc4eZdZdZfdZdZdZdZxZS)ConvertingSerializerzDA serializer to convert value from other runtime into a Python valuec0t|d|_y)zConstruct new serializerN)super__init__value)self __class__s [/var/lib/jenkins/workspace/mettalog/venv/lib/python3.12/site-packages/hyperon/conversion.pyr zConvertingSerializer.__init__s  c0||_tjS)zAccept bool valuer rOKr vs r serialize_boolz#ConvertingSerializer.serialize_bool  rc0||_tjS)zAccept int valuerrs r serialize_intz"ConvertingSerializer.serialize_intrrc0||_tjS)zAccept float valuerrs r serialize_floatz$ConvertingSerializer.serialize_floatrr) __name__ __module__ __qualname____doc__r rrr __classcell__)r s@r rrsN   rrN)atomsrrrrr r!s+:r