#NEWLINE# def __add__( self , other ) : #NEWLINE# #INDENT# if isinstance ( other , timedelta ) : #NEWLINE# #INDENT# return date ( self . year , self . month , ( self . day + other . days ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise TypeError ( 'expected timedelta object' )