def has_resources(tgt: Target) -> bool: return isinstance(tgt, Files) and tgt.has_sources()
def has_python_sources(tgt: Target) -> bool: return is_python_target(tgt) and tgt.has_sources()