Check if a value is a primitive type (str, int, float, bool, None, datetime, date). Args: value: Value to check Returns: True if primitive, False otherwise
(value: Any)
| 129 | |
| 130 | |
| 131 | def is_primitive(value: Any) -> bool: |
| 132 | """ |
| 133 | Check if a value is a primitive type (str, int, float, bool, None, datetime, date). |
| 134 | |
| 135 | Args: |
| 136 | value: Value to check |
| 137 | |
| 138 | Returns: |
| 139 | True if primitive, False otherwise |
| 140 | """ |
| 141 | return isinstance(value, (str, int, float, bool, type(None), datetime, date)) |
| 142 | |
| 143 | |
| 144 | def is_array_of_objects(value: Any) -> bool: |
no outgoing calls
no test coverage detected
searching dependent graphs…