def get_exons_in_cds(transcript: list, cds_start: int, cds_end: int) ->list:
    """Get exons in cds of a given transcript

    :param transcript:
    :type transcript: dict
    :param cds_start:
    :type cds_start: int
    :param cds_end:
    :type cds_end: int
    :return: list
    """
    exons_in_cds = []
    for exon in transcript:
        if exon['real_end'] <= cds_start:
            continue
        if exon['real_start'] >= cds_end:
            continue
        exon['in_cds_start'] = max(cds_start, exon['real_start'])
        exon['in_cds_end'] = min(cds_end, exon['real_end'])
        exon['in_cds_length'] = exon['in_cds_end'] - exon['in_cds_start'] + 1
        exons_in_cds.append(exon)
    return exons_in_cds
