(p)
type_annotations : '(' type_annotation_seq ')'
                        |
type_annotations : '(' type_annotation_seq ')'
                        |
type_annotations : ( type_annotation_seq ) |
def p_type_annotations(p):
    '''type_annotations : '(' type_annotation_seq ')'
                        |'''
    if len(p) == 4:
        p[0] = p[2]
    else:
        p[0] = None
def p_type_annotations ( p ) : if len ( p ) == 4 : p [ 0 ] = p [ 2 ] else : p [ 0 ] = None