Cast function which serializes special magic string value which indicate "None" to None type.
(x)
| 79 | |
| 80 | |
| 81 | def _cast_none(x): |
| 82 | """ |
| 83 | Cast function which serializes special magic string value which indicate "None" to None type. |
| 84 | """ |
| 85 | if isinstance(x, six.string_types) and x == data.NONE_MAGIC_VALUE: |
| 86 | return None |
| 87 | |
| 88 | return x |
| 89 | |
| 90 | |
| 91 | # These types as they appear in json schema. |
no outgoing calls
no test coverage detected