def _contains_chain_in_import_filter(node: LN, capture: Capture, filename: Filename) -> bool: if "module_import" in capture: return bool( "chain" in capture["module_import"].value ) and filename.startswith("./airflow/providers/google/") return False
def odbc_package_filter(node: LN, capture: Capture, filename: Filename) -> bool: return filename.startswith("./airflow/providers/odbc/")
def kubernetes_package_filter(node: LN, capture: Capture, filename: Filename) -> bool: return filename.startswith("./airflow/providers/cncf/kubernetes")
def elasticsearch_package_filter(node: LN, capture: Capture, filename: Filename) -> bool: return filename.startswith("./airflow/providers/elasticsearch/")
def is_not_k8spodop(node: LN, capture: Capture, filename: Filename) -> bool: return not filename.endswith("/kubernetes_pod.py")
def apache_beam_package_filter(node: LN, capture: Capture, filename: Filename) -> bool: return filename.startswith("./airflow/providers/apache/beam")