woodwork.type_sys.type_system.TypeSystem.add_type¶
- TypeSystem.add_type(logical_type, inference_function=None, parent=None)[source]¶
Add a new LogicalType to the TypeSystem, optionally specifying the corresponding inference function and a parent type.
- Parameters
logical_type (LogicalType) – The new LogicalType to add.
inference_function (func, optional) – The inference function to use for inferring the given LogicalType. Defaults to None. If not specified, this LogicalType will never be inferred.
parent (LogicalType, optional) – The parent LogicalType, if applicable. Defaults to None. If not specified, this type will be considered a root type with no parent.