antimatter.fieldtype.infer
#
Module Contents#
Functions#
|
Convenience handler for inferring the FieldType from an instance of a data |
- antimatter.fieldtype.infer.infer_fieldtype(field: Any) antimatter.fieldtype.fieldtypes.FieldType #
Convenience handler for inferring the FieldType from an instance of a data field. Supported data types include scalar python values, decimal types, and datetime types
- Parameters:
field – a field data value
- Returns:
the FieldType inferred from the field