(src_dst: Union[DatasetReader, DatasetWriter, WarpedVRT])
return False
Check for alpha band or mask in source.
Check for alpha band or mask in source.
Check for alpha band or mask in source .
def has_alpha_band(src_dst: Union[DatasetReader, DatasetWriter, WarpedVRT]):
    """Check for alpha band or mask in source."""
    if (
        any([MaskFlags.alpha in flags for flags in src_dst.mask_flag_enums])
        or ColorInterp.alpha in src_dst.colorinterp
    ):
        return True
    return False
def has_alpha_band ( src_dst : Union [ DatasetReader , DatasetWriter , WarpedVRT ] ) : if ( any ( [ MaskFlags . alpha in flags for flags in src_dst . mask_flag_enums ] ) or ColorInterp . alpha in src_dst . colorinterp ) : return True return False