src/airflow_sync/utils.py
def merge(self, other: "SqlFile") -> "SqlFile":
        """Merges the given dependency tree with another metadata set for the same file

        This is typically used for updating the dependency and trigger information of a
        given sql file instance.

        :return: A new instance of the sql file with the given instance merged in
        :rtype: SqlFile
        """
        new_dependencies = tuple(self.dependencies) + other.dependants
        new_triggers = tuple(self.triggers) + other.triggers
        new_dependants = tuple(self.dependants) + other.dependants
        new_dependants = tuple(list(dedup(new_dependants)))
        new_dependencies = tuple(list(dedup(new_dependencies)))
        new_triggers = tuple(list(dedup(new_triggers)))
        return attr.evolve(
            self,
            dependencies=new_dependencies,
            dependants=new_dependants,
            triggers=new_triggers,
        )
Merges the given dependency tree with another metadata set for the same file

        This is typically used for updating the dependency and trigger information of a
        given sql file instance.

        :return: A new instance of the sql file with the given instance merged in
        :rtype: SqlFile
        
Merges the given dependency tree with another metadata set for the same file
This is typically used for updating the dependency and trigger information of a
given sql file instance.
Merges the given dependency tree with another metadata set for the same file This is typically used for updating the dependency and trigger information of a given sql file instance .
def merge(self, other: "SqlFile") -> "SqlFile":
        new_dependencies = tuple(self.dependencies) + other.dependants
        new_triggers = tuple(self.triggers) + other.triggers
        new_dependants = tuple(self.dependants) + other.dependants
        new_dependants = tuple(list(dedup(new_dependants)))
        new_dependencies = tuple(list(dedup(new_dependencies)))
        new_triggers = tuple(list(dedup(new_triggers)))
        return attr.evolve(
            self,
            dependencies=new_dependencies,
            dependants=new_dependants,
            triggers=new_triggers,
        )
def merge ( self , other : "SqlFile" ) -> "SqlFile" : new_dependencies = tuple ( self . dependencies ) + other . dependants new_triggers = tuple ( self . triggers ) + other . triggers new_dependants = tuple ( self . dependants ) + other . dependants new_dependants = tuple ( list ( dedup ( new_dependants ) ) ) new_dependencies = tuple ( list ( dedup ( new_dependencies ) ) ) new_triggers = tuple ( list ( dedup ( new_triggers ) ) ) return attr . evolve ( self , dependencies = new_dependencies , dependants = new_dependants , triggers = new_triggers , )
Merges the given dependency tree with another metadata set for the same file
This is typically used for updating the dependency and trigger information of a
given sql file instance.
Merges the given dependency tree with another metadata set for the same file This is typically used for updating the dependency and trigger information of a given sql file instance .
"""Merges the given dependency tree with another metadata set for the same file

        This is typically used for updating the dependency and trigger information of a
        given sql file instance.

        :return: A new instance of the sql file with the given instance merged in
        :rtype: SqlFile
        """
A new instance of the sql file with the given instance merged in
A new instance of the sql file with the given instance merged in
SqlFile
self
other
"SqlFile"