#NEWLINE# def __add__( self , other ) : #NEWLINE# #INDENT# if isinstance ( other , ( float , int ) ) : #NEWLINE# #INDENT# return Vec2 ( ( self . x + other ) , ( self . y + other ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return Vec2 ( ( self . x + other . x ) , ( self . y + other . y ) )