MCPcopy Create free account
hub / github.com/aws/aws-cli / _handle_float

Method _handle_float

awscli/botocore/serialize.py:199–206  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

197 return shape.serialization.get('flattened')
198
199 def _handle_float(self, value):
200 if value == float("Infinity"):
201 value = "Infinity"
202 elif value == float("-Infinity"):
203 value = "-Infinity"
204 elif math.isnan(value):
205 value = "NaN"
206 return value
207
208 def _handle_query_compatible_trait(self, operation_model, serialized):
209 if operation_model.service_model.is_query_compatible:

Callers 5

_serialize_type_floatMethod · 0.45
_serialize_type_floatMethod · 0.45
_convert_header_valueMethod · 0.45
_serialize_type_floatMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected