woodwork.type_sys.type_system.TypeSystem.update_relationship#

TypeSystem.update_relationship(logical_type, parent)[source]#

Add or update a relationship. If the specified LogicalType exists in the relationship graph, its parent will be updated. If the specified LogicalType does not exist in relationships, the relationship will be added.

Parameters:
  • logical_type (LogicalType) – The LogicalType for which to update the parent value.

  • parent (LogicalType) – The new parent to set for the specified LogicalType.